|
|
@ -35,7 +35,7 @@ def detect_kde(env):
|
|
|
|
libdir = env['ARGS'].get('libdir', None)
|
|
|
|
libdir = env['ARGS'].get('libdir', None)
|
|
|
|
libsuffix = env['ARGS'].get('libsuffix', '')
|
|
|
|
libsuffix = env['ARGS'].get('libsuffix', '')
|
|
|
|
kdeincludes = env['ARGS'].get('kdeincludes', None)
|
|
|
|
kdeincludes = env['ARGS'].get('kdeincludes', None)
|
|
|
|
kdelibs = env['ARGS'].get('kdelibs', 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)
|
|
|
|
qtlibs = env['ARGS'].get('qtlibs', None)
|
|
|
|
|
|
|
|
|
|
|
@ -50,7 +50,7 @@ def detect_kde(env):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
print RED+"kde-config was NOT found in your PATH"+NORMAL
|
|
|
|
print RED+"kde-config was NOT found in your PATH"+NORMAL
|
|
|
|
print "Make sure kde is installed properly"
|
|
|
|
print "Make sure kde is installed properly"
|
|
|
|
print "(missing package kdebase-devel?)"
|
|
|
|
print "(missing package tdebase-devel?)"
|
|
|
|
env.Exit(1)
|
|
|
|
env.Exit(1)
|
|
|
|
env['KDEDIR'] = os.popen('kde-config -prefix').read().strip()
|
|
|
|
env['KDEDIR'] = os.popen('kde-config -prefix').read().strip()
|
|
|
|
|
|
|
|
|
|
|
@ -209,9 +209,9 @@ def detect_kde(env):
|
|
|
|
|
|
|
|
|
|
|
|
## kde libs and includes
|
|
|
|
## kde libs and includes
|
|
|
|
env['KDEINCLUDEPATH']=kdeincludes
|
|
|
|
env['KDEINCLUDEPATH']=kdeincludes
|
|
|
|
if not kdelibs:
|
|
|
|
if not tdelibs:
|
|
|
|
kdelibs=os.popen('kde-config --expandvars --install lib').read().strip()
|
|
|
|
tdelibs=os.popen('kde-config --expandvars --install lib').read().strip()
|
|
|
|
env['KDELIBPATH']=kdelibs
|
|
|
|
env['KDELIBPATH']=tdelibs
|
|
|
|
|
|
|
|
|
|
|
|
## qt libs and includes
|
|
|
|
## qt libs and includes
|
|
|
|
env['QTINCLUDEPATH']=qtincludes
|
|
|
|
env['QTINCLUDEPATH']=qtincludes
|
|
|
@ -233,7 +233,7 @@ def generate(env):
|
|
|
|
"""+BOLD+"""* libsuffix """+NORMAL+""": suffix of libraries on amd64, ie: 64, 32
|
|
|
|
"""+BOLD+"""* libsuffix """+NORMAL+""": suffix of libraries on amd64, ie: 64, 32
|
|
|
|
"""+BOLD+"""* kdeincludes"""+NORMAL+""": path to the kde includes (/usr/include/kde on debian, ...)
|
|
|
|
"""+BOLD+"""* kdeincludes"""+NORMAL+""": path to the kde includes (/usr/include/kde 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+"""* kdelibs """+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+"""* qtlibs """+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)
|
|
|
|