mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Scons: set default qt lib directory under cygwin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14286 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
34001ec175
commit
b0abcefcc0
@ -547,8 +547,14 @@ else:
|
|||||||
|
|
||||||
if env.has_key('qt_lib_path') and env['qt_lib_path']:
|
if env.has_key('qt_lib_path') and env['qt_lib_path']:
|
||||||
qt_lib_path = env.subst('$qt_lib_path')
|
qt_lib_path = env.subst('$qt_lib_path')
|
||||||
else:
|
elif os.path.isdir(os.path.join(env.subst('$QTDIR'), 'lib')):
|
||||||
qt_lib_path = env.subst('$QTDIR/lib')
|
qt_lib_path = env.subst('$QTDIR/lib')
|
||||||
|
# this is the path for cygwin.
|
||||||
|
elif os.path.idsir(os.path.join('/usr/lib/', frontend, 'lib')):
|
||||||
|
qt_lib_path = env.subst('/usr/lib/$frontend/lib')
|
||||||
|
else:
|
||||||
|
print "Qt library directory is not found. Please specify it using qt_lib_path"
|
||||||
|
Exit(1)
|
||||||
env.AppendUnique(LIBPATH = [qt_lib_path])
|
env.AppendUnique(LIBPATH = [qt_lib_path])
|
||||||
# qt4 seems to be using pkg_config
|
# qt4 seems to be using pkg_config
|
||||||
env.PrependENVPath('PKG_CONFIG_PATH', qt_lib_path)
|
env.PrependENVPath('PKG_CONFIG_PATH', qt_lib_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user