From f4f8ac034fa04404e2fcd5029ba050c537c07d7a Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 9 May 2011 19:45:27 +0000 Subject: 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 --- bksys/kde.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'bksys') 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 : ", -- cgit v1.2.1