Remove hardcoded 'include' directory locations

pull/1/head
Slávek Banko 11 years ago
parent 6d061b325b
commit edae246dc7

@ -551,8 +551,8 @@ class BuildKControlModule(Command):
if tdedir!=None: if tdedir!=None:
canidatepaths.append(os.path.join(tdedir,"include")) canidatepaths.append(os.path.join(tdedir,"include"))
canidatepaths.append(os.path.join(install.prefix,"include")) canidatepaths.append(os.path.join(install.prefix,"include"))
canidatepaths.append('/opt/trinity/include') canidatepaths.append(os.path.join(self.install_prefix,'include'))
canidatepaths.append('/opt/kde/include') canidatepaths.append(os.path.join(self.install_prefix,'include','tde'))
self.kde_inc_dir = FindFileInPaths('tdeapplication.h',canidatepaths) self.kde_inc_dir = FindFileInPaths('tdeapplication.h',canidatepaths)
if self.kde_inc_dir is None: if self.kde_inc_dir is None:
raise SystemExit, "Failed to find the KDE header file directory." raise SystemExit, "Failed to find the KDE header file directory."
@ -1503,8 +1503,8 @@ class BuildTdeioslave(Command):
if tdedir!=None: if tdedir!=None:
canidatepaths.append(os.path.join(tdedir,"include")) canidatepaths.append(os.path.join(tdedir,"include"))
canidatepaths.append(os.path.join(install.prefix,"include")) canidatepaths.append(os.path.join(install.prefix,"include"))
canidatepaths.append('/opt/trinity/include') canidatepaths.append(os.path.join(self.install_prefix,'include'))
canidatepaths.append('/opt/kde/include') canidatepaths.append(os.path.join(self.install_prefix,'include','tde'))
self.kde_inc_dir = FindFileInPaths('tdeapplication.h',canidatepaths) self.kde_inc_dir = FindFileInPaths('tdeapplication.h',canidatepaths)
if self.kde_inc_dir is None: if self.kde_inc_dir is None:
raise SystemExit, "Failed to find the KDE header file directory." raise SystemExit, "Failed to find the KDE header file directory."

Loading…
Cancel
Save