pull/1/head
Timothy Pearson 13 years ago
parent b0b077a020
commit df035ca4b3

@ -567,19 +567,23 @@ class BuildKControlModule(Command):
qtdir = os.getenv("QTDIR") qtdir = os.getenv("QTDIR")
if qtdir != None: if qtdir != None:
canidatepaths.append(os.path.join(qtdir,"include")) canidatepaths.append(os.path.join(qtdir,"include"))
canidatepaths.append(os.path.join(install.prefix,"lib/qt3/include")) canidatepaths.append(os.path.join(install.prefix,"lib/tqt3/include"))
canidatepaths.append(os.path.join(install.prefix,"lib/qt3/include")) canidatepaths.append(os.path.join(install.prefix,"lib/qt3/include"))
canidatepaths.append(os.path.join(install.prefix,"include")) canidatepaths.append(os.path.join(install.prefix,"include"))
canidatepaths.append("/opt/qt3/include") canidatepaths.append("/opt/tqt3/include")
canidatepaths.append("/opt/qt/include") canidatepaths.append("/opt/qt/include")
canidatepaths.append("/opt/qt/lib/include") canidatepaths.append("/opt/qt/lib/include")
canidatepaths.append("/opt/qt3/lib/include") canidatepaths.append("/opt/qt3/lib/include")
canidatepaths.append("/usr/include/tqt3")
canidatepaths.append("/usr/include/qt3") canidatepaths.append("/usr/include/qt3")
self.qt_inc_dir = FindFileInPaths('ntqstring.h',canidatepaths)
if self.qt_inc_dir is None:
self.qt_inc_dir = FindFileInPaths('qstring.h',canidatepaths) self.qt_inc_dir = FindFileInPaths('qstring.h',canidatepaths)
if self.qt_inc_dir is None: if self.qt_inc_dir is None:
raise SystemExit,"Failed to find the Qt header file directory" raise SystemExit,"Failed to find the Qt header file directory"
if FindFileInPaths('qstring.h',[self.qt_inc_dir]) is None: if FindFileInPaths('ntqstring.h',[self.qt_inc_dir]) is None:
raise SystemExit, "Failed to find Qt header files in: %s" % self.qt_inc_dir if FindFileInPaths('qstring.h',[self.qt_inc_dir]) is None:
raise SystemExit, "Failed to find Qt header files in: %s" % self.qt_inc_dir
self.announce("Using %s for Qt header files" % self.qt_inc_dir) self.announce("Using %s for Qt header files" % self.qt_inc_dir)
# Qt lib dir # Qt lib dir
@ -601,10 +605,10 @@ class BuildKControlModule(Command):
qtdir = os.getenv("QTDIR") qtdir = os.getenv("QTDIR")
if qtdir != None: if qtdir != None:
canidatepaths.append(os.path.join(qtdir,get_libdir_name())) canidatepaths.append(os.path.join(qtdir,get_libdir_name()))
canidatepaths.append(os.path.join(install.prefix,"lib/qt3/"+get_libdir_name())) canidatepaths.append(os.path.join(install.prefix,"lib/tqt3/"+get_libdir_name()))
canidatepaths.append(os.path.join(install.prefix,"lib/qt3/"+get_libdir_name())) canidatepaths.append(os.path.join(install.prefix,"lib/qt3/"+get_libdir_name()))
canidatepaths.append(os.path.join(install.prefix,get_libdir_name())) canidatepaths.append(os.path.join(install.prefix,get_libdir_name()))
canidatepaths.append("/opt/qt3/"+get_libdir_name()) canidatepaths.append("/opt/tqt3/"+get_libdir_name())
canidatepaths.append("/opt/qt/"+get_libdir_name()) canidatepaths.append("/opt/qt/"+get_libdir_name())
canidatepaths.append("/opt/qt/lib/"+get_libdir_name()) canidatepaths.append("/opt/qt/lib/"+get_libdir_name())
canidatepaths.append("/opt/qt3/lib/"+get_libdir_name()) canidatepaths.append("/opt/qt3/lib/"+get_libdir_name())
@ -862,7 +866,7 @@ class BuildKControlModule(Command):
#include <klibloader.h> #include <klibloader.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <ksimpleconfig.h> #include <ksimpleconfig.h>
#include <qstring.h> #include <tqstring.h>
#include <sip.h> #include <sip.h>
#define MODULE_DIR "%(moduledir)s" #define MODULE_DIR "%(moduledir)s"
@ -1509,18 +1513,21 @@ class BuildKioslave(Command):
qtdir = os.getenv("QTDIR") qtdir = os.getenv("QTDIR")
if qtdir != None: if qtdir != None:
canidatepaths.append(os.path.join(qtdir,"include")) canidatepaths.append(os.path.join(qtdir,"include"))
canidatepaths.append(os.path.join(install.prefix,"lib/qt3/include")) canidatepaths.append(os.path.join(install.prefix,"lib/tqt3/include"))
canidatepaths.append(os.path.join(install.prefix,"lib/qt3/include")) canidatepaths.append(os.path.join(install.prefix,"lib/qt3/include"))
canidatepaths.append(os.path.join(install.prefix,"include")) canidatepaths.append(os.path.join(install.prefix,"include"))
canidatepaths.append("/opt/qt3/include") canidatepaths.append("/opt/tqt3/include")
canidatepaths.append("/opt/qt/include") canidatepaths.append("/opt/qt/include")
canidatepaths.append("/opt/qt/lib/include") canidatepaths.append("/opt/qt/lib/include")
canidatepaths.append("/opt/qt3/lib/include") canidatepaths.append("/opt/qt3/lib/include")
self.qt_inc_dir = FindFileInPaths('ntqstring.h',canidatepaths)
if self.qt_inc_dir is None:
self.qt_inc_dir = FindFileInPaths('qstring.h',canidatepaths) self.qt_inc_dir = FindFileInPaths('qstring.h',canidatepaths)
if self.qt_inc_dir is None: if self.qt_inc_dir is None:
raise SystemExit,"Failed to find the Qt header file directory" raise SystemExit,"Failed to find the Qt header file directory"
if FindFileInPaths('qstring.h',[self.qt_inc_dir]) is None: if FindFileInPaths('ntqstring.h',[self.qt_inc_dir]) is None:
raise SystemExit, "Failed to find Qt header files in: %s" % self.qt_inc_dir if FindFileInPaths('qstring.h',[self.qt_inc_dir]) is None:
raise SystemExit, "Failed to find Qt header files in: %s" % self.qt_inc_dir
self.announce("Using %s for Qt header files" % self.qt_inc_dir) self.announce("Using %s for Qt header files" % self.qt_inc_dir)
# Qt lib dir # Qt lib dir
@ -1542,10 +1549,10 @@ class BuildKioslave(Command):
qtdir = os.getenv("QTDIR") qtdir = os.getenv("QTDIR")
if qtdir != None: if qtdir != None:
canidatepaths.append(os.path.join(qtdir,get_libdir_name())) canidatepaths.append(os.path.join(qtdir,get_libdir_name()))
canidatepaths.append(os.path.join(install.prefix,"lib/qt3/"+get_libdir_name())) canidatepaths.append(os.path.join(install.prefix,"lib/tqt3/"+get_libdir_name()))
canidatepaths.append(os.path.join(install.prefix,"lib/qt3/"+get_libdir_name())) canidatepaths.append(os.path.join(install.prefix,"lib/qt3/"+get_libdir_name()))
canidatepaths.append(os.path.join(install.prefix,get_libdir_name())) canidatepaths.append(os.path.join(install.prefix,get_libdir_name()))
canidatepaths.append("/opt/qt3/"+get_libdir_name()) canidatepaths.append("/opt/tqt3/"+get_libdir_name())
canidatepaths.append("/opt/qt/"+get_libdir_name()) canidatepaths.append("/opt/qt/"+get_libdir_name())
canidatepaths.append("/opt/qt/lib/"+get_libdir_name()) canidatepaths.append("/opt/qt/lib/"+get_libdir_name())
canidatepaths.append("/opt/qt3/lib/"+get_libdir_name()) canidatepaths.append("/opt/qt3/lib/"+get_libdir_name())

Loading…
Cancel
Save