summaryrefslogtreecommitdiffstats
path: root/kde.py
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-09-27 14:19:28 +0900
committerMichele Calgaro <[email protected]>2018-09-27 14:19:28 +0900
commitf666158f1e923d79d6c13657506f1dd64b115679 (patch)
tree193b54adc4e8c94dbc4a408f8d6b9d2d9824706a /kde.py
parent7da5708a171c3c95f0b088f9e5f69da3b73e5628 (diff)
downloadkstreamripper-f666158f1e923d79d6c13657506f1dd64b115679.tar.gz
kstreamripper-f666158f1e923d79d6c13657506f1dd64b115679.zip
qt -> tqt conversion:
qtlib -> tqtlib libqt -> libtqt QTLIB -> TQTLIB LIBQT -> LIBTQT Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kde.py')
-rw-r--r--kde.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/kde.py b/kde.py
index 589cffa..94a3bb7 100644
--- a/kde.py
+++ b/kde.py
@@ -38,7 +38,7 @@ def detect_kde(env):
tdelibs = env['ARGS'].get('tdelibs', None)
qtincludes = env['ARGS'].get('qtincludes', None)
tqtincludes = env['ARGS'].get('tqtincludes', None)
- qtlibs = env['ARGS'].get('qtlibs', None)
+ tqtlibs = env['ARGS'].get('tqtlibs', None)
tdedir = env['ARGS'].get('tdedir', None)
if libdir:
@@ -93,7 +93,7 @@ def detect_kde(env):
libdir = os.popen(kde_config + ' --expandvars --install lib').read().strip()
libtdeuiSO = libdir+'/'+getSOfromLA(libdir+'/libtdeui.la')
try:
- 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])
except:
m = re.search('(.*)/lib/libtqt.*', os.popen('ldd ' + libtdeuiSO + ' | grep libtqt').read().strip().split()[2])
pass
@@ -250,9 +250,9 @@ def detect_kde(env):
## qt libs and includes
env['QTINCLUDEPATH']=qtincludes
env['TQTINCLUDEPATH']=tqtincludes
- if not qtlibs:
- qtlibs=qtdir+"/lib"
- env['QTLIBPATH']=qtlibs
+ if not tqtlibs:
+ tqtlibs=qtdir+"/lib"
+ env['TQTLIBPATH']=tqtlibs
def generate(env):
""""Set up the qt and kde environment and builders - the moc part is difficult to understand """
@@ -270,7 +270,7 @@ def generate(env):
"""+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+"""* 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
"""+NORMAL)
@@ -419,7 +419,7 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
('PREFIX', 'root of the program installation'),
('QTDIR', 'root of qt directory'),
- ('QTLIBPATH', 'path to the qt libraries'),
+ ('TQTLIBPATH', 'path to the qt libraries'),
('QTINCLUDEPATH', 'path to the qt includes'),
('TQTINCLUDEPATH', 'path to the tqt includes'),
('QT_UIC', 'moc directory'),
@@ -457,7 +457,7 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
## set default variables, one can override them in sconscript files
env.Append(CXXFLAGS = ['-I'+env['KDEINCLUDEPATH'], '-I'+env['QTINCLUDEPATH'], '-I'+env['TQTINCLUDEPATH'], '-include', 'tqt.h' ])
- env.Append(LIBPATH = [env['KDELIBPATH'], env['QTLIBPATH'] ])
+ env.Append(LIBPATH = [env['KDELIBPATH'], env['TQTLIBPATH'] ])
env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1