|
|
@ -37,7 +37,7 @@ def detect_kde(env):
|
|
|
|
kdeincludes = env['ARGS'].get('kdeincludes', None)
|
|
|
|
kdeincludes = env['ARGS'].get('kdeincludes', None)
|
|
|
|
tdelibs = env['ARGS'].get('tdelibs', None)
|
|
|
|
tdelibs = env['ARGS'].get('tdelibs', None)
|
|
|
|
qtincludes = env['ARGS'].get('qtincludes', None)
|
|
|
|
qtincludes = env['ARGS'].get('qtincludes', None)
|
|
|
|
qtlibs = env['ARGS'].get('qtlibs', None)
|
|
|
|
tqtlibs = env['ARGS'].get('tqtlibs', None)
|
|
|
|
|
|
|
|
|
|
|
|
if libdir:
|
|
|
|
if libdir:
|
|
|
|
libdir = libdir+libsuffix
|
|
|
|
libdir = libdir+libsuffix
|
|
|
@ -71,7 +71,7 @@ def detect_kde(env):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
libdir = os.popen('tde-config --expandvars --install lib').read().strip()
|
|
|
|
libdir = os.popen('tde-config --expandvars --install lib').read().strip()
|
|
|
|
libtdeuiSO = libdir+'/'+getSOfromLA(libdir+'/libtdeui.la')
|
|
|
|
libtdeuiSO = libdir+'/'+getSOfromLA(libdir+'/libtdeui.la')
|
|
|
|
m = re.search('(.*)/lib/libqt.*', os.popen('ldd ' + libtdeuiSO + ' | grep libqt').read().strip().split()[2])
|
|
|
|
m = re.search('(.*)/lib/libtqt.*', os.popen('ldd ' + libtdeuiSO + ' | grep libtqt').read().strip().split()[2])
|
|
|
|
if m:
|
|
|
|
if m:
|
|
|
|
qtdir = m.group(1)
|
|
|
|
qtdir = m.group(1)
|
|
|
|
print YELLOW+"qt was found as "+m.group(1)+NORMAL
|
|
|
|
print YELLOW+"qt was found as "+m.group(1)+NORMAL
|
|
|
@ -199,9 +199,9 @@ def detect_kde(env):
|
|
|
|
|
|
|
|
|
|
|
|
## qt libs and includes
|
|
|
|
## qt libs and includes
|
|
|
|
env['QTINCLUDEPATH']=qtincludes
|
|
|
|
env['QTINCLUDEPATH']=qtincludes
|
|
|
|
if not qtlibs:
|
|
|
|
if not tqtlibs:
|
|
|
|
qtlibs=qtdir+"/lib"
|
|
|
|
tqtlibs=qtdir+"/lib"
|
|
|
|
env['QTLIBPATH']=qtlibs
|
|
|
|
env['TQTLIBPATH']=tqtlibs
|
|
|
|
|
|
|
|
|
|
|
|
def generate(env):
|
|
|
|
def generate(env):
|
|
|
|
""""Set up the qt and kde environment and builders - the moc part is difficult to understand """
|
|
|
|
""""Set up the qt and kde environment and builders - the moc part is difficult to understand """
|
|
|
@ -217,7 +217,7 @@ def generate(env):
|
|
|
|
"""+BOLD+"""* kdeincludes"""+NORMAL+""": path to the kde includes (/usr/include/tde on debian, ...)
|
|
|
|
"""+BOLD+"""* kdeincludes"""+NORMAL+""": path to the kde includes (/usr/include/tde on debian, ...)
|
|
|
|
"""+BOLD+"""* qtincludes """+NORMAL+""": same punishment, for qt includes (/usr/include/qt on debian, ...)
|
|
|
|
"""+BOLD+"""* qtincludes """+NORMAL+""": same punishment, for qt includes (/usr/include/qt on debian, ...)
|
|
|
|
"""+BOLD+"""* tdelibs """+NORMAL+""": path to the kde libs, for linking the programs
|
|
|
|
"""+BOLD+"""* tdelibs """+NORMAL+""": path to the kde libs, for linking the programs
|
|
|
|
"""+BOLD+"""* qtlibs """+NORMAL+""": same punishment, for qt libraries
|
|
|
|
"""+BOLD+"""* tqtlibs """+NORMAL+""": same punishment, for qt libraries
|
|
|
|
ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
|
|
|
|
ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
|
|
|
|
"""+NORMAL
|
|
|
|
"""+NORMAL
|
|
|
|
|
|
|
|
|
|
|
@ -366,7 +366,7 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
|
|
|
|
('PREFIX', 'root of the program installation'),
|
|
|
|
('PREFIX', 'root of the program installation'),
|
|
|
|
|
|
|
|
|
|
|
|
('QTDIR', 'root of qt directory'),
|
|
|
|
('QTDIR', 'root of qt directory'),
|
|
|
|
('QTLIBPATH', 'path to the qt libraries'),
|
|
|
|
('TQTLIBPATH', 'path to the qt libraries'),
|
|
|
|
('QTINCLUDEPATH', 'path to the qt includes'),
|
|
|
|
('QTINCLUDEPATH', 'path to the qt includes'),
|
|
|
|
('QT_UIC', 'moc directory'),
|
|
|
|
('QT_UIC', 'moc directory'),
|
|
|
|
('QT_MOC', 'moc executable command'),
|
|
|
|
('QT_MOC', 'moc executable command'),
|
|
|
@ -400,7 +400,7 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
|
|
|
|
|
|
|
|
|
|
|
|
## set default variables, one can override them in sconscript files
|
|
|
|
## set default variables, one can override them in sconscript files
|
|
|
|
env.Append(CXXFLAGS = ['-I'+env['KDEINCLUDEPATH'], '-I'+env['QTINCLUDEPATH'] ])
|
|
|
|
env.Append(CXXFLAGS = ['-I'+env['KDEINCLUDEPATH'], '-I'+env['QTINCLUDEPATH'] ])
|
|
|
|
env.Append(LIBPATH = [env['KDELIBPATH'], env['QTLIBPATH'] ])
|
|
|
|
env.Append(LIBPATH = [env['KDELIBPATH'], env['TQTLIBPATH'] ])
|
|
|
|
|
|
|
|
|
|
|
|
env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1
|
|
|
|
env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1
|
|
|
|
|
|
|
|
|
|
|
@ -823,7 +823,7 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
|
|
|
|
lenv.Append( CPPFLAGS = '-DQT_NO_TRANSLATION' )
|
|
|
|
lenv.Append( CPPFLAGS = '-DQT_NO_TRANSLATION' )
|
|
|
|
if 'rpath' in _flags:
|
|
|
|
if 'rpath' in _flags:
|
|
|
|
## Use this to set rpath - this may cause trouble if folders are moved (chrpath)
|
|
|
|
## Use this to set rpath - this may cause trouble if folders are moved (chrpath)
|
|
|
|
lenv.Append( RPATH = [env['QTLIBPATH'], env['KDELIBPATH'], env['KDEMODULE']] )
|
|
|
|
lenv.Append( RPATH = [env['TQTLIBPATH'], env['KDELIBPATH'], env['KDEMODULE']] )
|
|
|
|
if 'thread' in _flags:
|
|
|
|
if 'thread' in _flags:
|
|
|
|
## Uncomment the following if you need threading support
|
|
|
|
## Uncomment the following if you need threading support
|
|
|
|
lenv.KDEaddflags_cxx( ['-DTQT_THREAD_SUPPORT', '-D_REENTRANT'] )
|
|
|
|
lenv.KDEaddflags_cxx( ['-DTQT_THREAD_SUPPORT', '-D_REENTRANT'] )
|
|
|
|