summaryrefslogtreecommitdiffstats
path: root/bksys
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
commitf4f8ac034fa04404e2fcd5029ba050c537c07d7a (patch)
tree0daa81b0533ce203c33d5571dcb842257dba4cd0 /bksys
parent4488b6112c4e22493ed88c68035b980a5b42228d (diff)
downloadabakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.tar.gz
abakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.zip
TQt4 port Abakus
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/abakus@1231045 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'bksys')
-rw-r--r--bksys/kde.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/bksys/kde.py b/bksys/kde.py
index 7d5ae2b..1f435da 100644
--- a/bksys/kde.py
+++ b/bksys/kde.py
@@ -166,25 +166,26 @@ def detect_kde(env):
env.Exit(1)
env['QT_MOC'] = moc
- ## check for the tqt and kde includes
- print "Checking for the tqt includes : ",
- if qtincludes and os.path.isfile(qtincludes + "/tqt.h"):
+ ## check for the qt and kde includes
+ print "Checking for the qt includes : ",
+ if qtincludes and os.path.isfile(qtincludes + "/qlayout.h"):
# The user told where to look for and it looks valid
print GREEN + "ok " + qtincludes + NORMAL
else:
- if os.path.isfile(qtdir + "/include/tqt.h"):
+ if os.path.isfile(qtdir + "/include/qlayout.h"):
# Automatic detection
print GREEN + "ok " + qtdir + "/include/ " + NORMAL
qtincludes = qtdir + "/include/"
- elif os.path.isfile("/usr/include/tqt.h"):
- print YELLOW + "the tqt headers were found in /usr/include/ " + NORMAL
- qtincludes = "/usr/include"
- elif os.path.isfile("/usr/include/tqt/tqt.h"):
+ elif os.path.isfile("/usr/include/qt3/qlayout.h"):
# Debian probably
- print YELLOW + "the tqt headers were found in /usr/include/tqt/ " + NORMAL
- qtincludes = "/usr/include/tqt"
+ print YELLOW + "the qt headers were found in /usr/include/qt3/ " + NORMAL
+ qtincludes = "/usr/include/qt3"
+ elif os.path.isfile("/usr/include/qt4/Qt/qglobal.h"):
+ # Debian probably
+ print YELLOW + "the qt headers were found in /usr/include/qt4/ " + NORMAL
+ qtincludes = "/usr/include/qt4"
else:
- print RED + "the tqt headers were not found" + NORMAL
+ print RED + "the qt headers were not found" + NORMAL
env.Exit(1)
print "Checking for the kde includes : ",