Use proper TQt headers

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/13/head
Michele Calgaro 6 months ago
parent 5ef0392a27
commit cedb73e812
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -573,14 +573,11 @@ class BuildKControlModule(Command):
canidatepaths.append(os.path.join(install.prefix,"include"))
canidatepaths.append("/opt/tqt3/include")
canidatepaths.append("/usr/include/tqt3")
self.tqt_inc_dir = FindFileInPaths('ntqstring.h',canidatepaths)
if self.tqt_inc_dir is None:
self.tqt_inc_dir = FindFileInPaths('tqstring.h',canidatepaths)
if self.tqt_inc_dir is None:
raise SystemExit("Failed to find the TQt header file directory")
if FindFileInPaths('ntqstring.h',[self.tqt_inc_dir]) is None:
if FindFileInPaths('tqstring.h',[self.tqt_inc_dir]) is None:
raise SystemExit("Failed to find TQt header files in: %s" % self.tqt_inc_dir)
if FindFileInPaths('tqstring.h',[self.tqt_inc_dir]) is None:
raise SystemExit("Failed to find TQt header files in: %s" % self.tqt_inc_dir)
self.announce("Using %s for TQt header files" % self.tqt_inc_dir)
# TQt lib dir
@ -1522,12 +1519,10 @@ class BuildTdeioslave(Command):
canidatepaths.append(os.path.join(install.prefix,"include"))
canidatepaths.append("/opt/tqt3/include")
canidatepaths.append("/opt/tqt3/lib/include")
self.tqt_inc_dir = FindFileInPaths('ntqstring.h',canidatepaths)
if self.tqt_inc_dir is None:
self.tqt_inc_dir = FindFileInPaths('tqstring.h',canidatepaths)
if self.tqt_inc_dir is None:
raise SystemExit("Failed to find the TQt header file directory")
if FindFileInPaths('ntqstring.h',[self.tqt_inc_dir]) is None:
if FindFileInPaths('tqstring.h',[self.tqt_inc_dir]) is None:
if FindFileInPaths('tqstring.h',[self.tqt_inc_dir]) is None:
raise SystemExit("Failed to find TQt header files in: %s" % self.tqt_inc_dir)
self.announce("Using %s for TQt header files" % self.tqt_inc_dir)

Loading…
Cancel
Save