diff options
author | Jose <jose@zeroc.com> | 2014-10-31 22:20:36 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-10-31 22:20:36 +0100 |
commit | 75a9005812b4db96540bc5f470286a2993e7cfba (patch) | |
tree | 3ff4f2e0e3c39282bbca437ba37f398cf3d674b1 /distribution/lib/DistUtils.py | |
parent | Added removal of InitializationData's stringConverter and wstringConverter (diff) | |
download | ice-75a9005812b4db96540bc5f470286a2993e7cfba.tar.bz2 ice-75a9005812b4db96540bc5f470286a2993e7cfba.tar.xz ice-75a9005812b4db96540bc5f470286a2993e7cfba.zip |
makebindist fixes
Diffstat (limited to 'distribution/lib/DistUtils.py')
-rw-r--r-- | distribution/lib/DistUtils.py | 109 |
1 files changed, 10 insertions, 99 deletions
diff --git a/distribution/lib/DistUtils.py b/distribution/lib/DistUtils.py index 9cf8a2256a0..650f0519e8b 100644 --- a/distribution/lib/DistUtils.py +++ b/distribution/lib/DistUtils.py @@ -16,8 +16,8 @@ from stat import * # languages = { \ 'SunOS' : ['cpp', 'cpp-64', 'java'], \ - 'Darwin' : ['cpp', 'cpp-11', 'java', 'py'], \ - 'Linux' : ['cpp', 'java', 'cs', 'py', 'rb', 'php'], \ + 'Darwin' : ['cpp', 'java', 'py'], \ + 'Linux' : ['cpp', 'cpp-11', 'java', 'cs', 'py', 'rb', 'php'], \ } # @@ -28,7 +28,7 @@ bzip2 = { \ } berkeleydb = { \ - 'Darwin' : '/opt/db', \ + 'Darwin' : '/Library/Developer/Ice-3.6b-ThirdParty', \ 'SunOS' : '/opt/db', \ } @@ -44,30 +44,12 @@ iconv = {\ mcpp = { 'SunOS' : '/opt/mcpp', \ - 'Darwin' : '/opt/mcpp' + 'Darwin' : '/Library/Developer/Ice-3.6b-ThirdParty' } openssl = { \ } -jgoodies_looks = { \ - 'SunOS' : '/opt/jgoodies/jgoodies-looks-2.5.2.jar', \ - 'Darwin' : '/opt/jgoodies-looks-2.5.2/jgoodies-looks-2.5.2.jar', \ - 'Linux' : '/opt/jgoodies-looks-2.5.2/jgoodies-looks-2.5.2.jar', \ -} - -jgoodies_forms = { \ - 'SunOS' : '/opt/jgoodies/jgoodies-forms-1.6.0.jar', \ - 'Darwin' : '/opt/jgoodies-forms-1.6.0/jgoodies-forms-1.6.0.jar', \ - 'Linux' : '/opt/jgoodies-forms-1.6.0/jgoodies-forms-1.6.0.jar', \ -} - -jgoodies_common = { \ - 'SunOS' : '/opt/jgoodies/jgoodies-common-1.4.0.jar', \ - 'Darwin' : '/opt/jgoodies-common-1.4.0/jgoodies-common-1.4.0.jar', \ - 'Linux' : '/opt/jgoodies-common-1.4.0/jgoodies-common-1.4.0.jar', \ -} - proguard = { \ 'SunOS' : '/opt/proguard/lib/proguard.jar', \ 'Darwin' : '/opt/proguard/lib/proguard.jar', \ @@ -725,10 +707,6 @@ class ThirdParty : if language in self.languages and not os.environ.has_key(self.buildEnv) and self.location: return self.buildEnv + "=" + self.location - def getAntOption(self): - if "java" in self.languages and self.buildOption and self.location: - return "-D" + self.buildOption + "=" + self.location - def getJar(self): if "java" in self.languages and self.location and self.location.endswith(".jar"): return self.location @@ -746,8 +724,9 @@ class ThirdParty : return files def includeInDistribution(self): - # Only copy third party files installed in /opt - return self.defaultLocation and self.defaultLocation.startswith("/opt") + # Only copy third party files installed in /opt or /Library/Developer + return self.defaultLocation and (self.defaultLocation.startswith("/opt") or + self.defaultLocation.startswith("/Library/Developer")) def copyToDistribution(self, platform, buildDir): if not self.location: @@ -819,12 +798,9 @@ class Platform: return string.join(envs, " ") - def getAntEnv(self): + def getJavaEnv(self): return "CLASSPATH=" + string.join([t.getJar() for t in self.thirdParties if t.getJar()], os.pathsep) - def getAntOptions(self): - return string.join([t.getAntOption() for t in self.thirdParties if t.getAntOption()], " ") - def getSharedLibraryFiles(self, root, path, extension = None): if not extension: extension = self.shlibExtension @@ -859,27 +835,6 @@ class Platform: else: return ("%s-" + version + "-bin-" + self.pkgPlatform) % prefix - def getJGoodiesCommon(self): - for t in self.thirdParties: - if t.__str__() == "JGoodiesCommon": - return t.getJar() - print("Unable to find JGoodiesCommon") - sys.exit(1) - - def getJGoodiesForms(self): - for t in self.thirdParties: - if t.__str__() == "JGoodiesForms": - return t.getJar() - print("Unable to find JGoodiesForms") - sys.exit(1) - - def getJGoodiesLooks(self): - for t in self.thirdParties: - if t.__str__() == "JGoodiesLooks": - return t.getJar() - print("Unable to find JGoodiesLooks") - sys.exit(1) - def getMakeOptions(self): return "" @@ -919,13 +874,10 @@ class Darwin(Platform): envs += " CXXARCHFLAGS=\"-arch i386 -arch x86_64\""; envs += " embedded_runpath_prefix=\"/Library/Developer/Ice-" + mmversion + "\"" - if language == "cpp-11": - envs += " CPP11=yes" - return envs def getMakeOptions(self): - return "-j 8" + return "-j8" def completeDistribution(self, buildDir, version): @@ -1031,17 +983,7 @@ class SunOS(Platform): class BerkeleyDB(ThirdParty): def __init__(self, platform): global berkeleydb, berkeleydbjar - ThirdParty.__init__(self, platform, "BerkeleyDB", berkeleydb, ["cpp", "cpp-11", "cpp-64", "java"], None, "DB_HOME") - if not self.location: # BerkeleyDB is installed with the system (Linux) - self.languages = ["java"] - self.location = berkeleydbjar.get(str(platform), None) - - def getJar(self): - if self.location: - if self.location.endswith(".jar"): - return self.location - else: - return os.path.join(self.location, "lib", "db.jar") + ThirdParty.__init__(self, platform, "BerkeleyDB", berkeleydb, ["cpp", "cpp-64"], None, "DB_HOME") def getFilesFromSubDirs(self, platform, bindir, libdir, x64): files = [ os.path.join(bindir, "db*") ] @@ -1084,22 +1026,6 @@ class Mcpp(ThirdParty): global mcpp ThirdParty.__init__(self, platform, "Mcpp", mcpp, ["cpp", "cpp-64"]) -class Qt(ThirdParty): - def __init__(self, platform): - global qt - if platform.pkgArch == "sparc": - ThirdParty.__init__(self, platform, "Qt", qt, ["cpp"]) - else: - ThirdParty.__init__(self, platform, "Qt", qt, ["cpp", "cpp-64"]) - - def getFilesFromSubDirs(self, platform, bindir, libdir, x64): - files = platform.getSharedLibraryFiles(self.location, os.path.join(libdir, "libQtCore*")) - files += platform.getSharedLibraryFiles(self.location, os.path.join(libdir, "libQtSql*")) - # We also need some symbolic links - files += [os.path.join(self.location, os.path.join(libdir, "libQtCore." + platform.shlibExtension + ".4")), - os.path.join(self.location, os.path.join(libdir, "libQtSql." + platform.shlibExtension + ".4"))] - return files - class Iconv(ThirdParty): def __init__(self, platform): global iconv @@ -1112,21 +1038,6 @@ class Iconv(ThirdParty): os.path.join(self.location, os.path.join(libdir, "libiconv." + platform.shlibExtension))] return files -class JGoodiesLooks(ThirdParty): - def __init__(self, platform): - global jgoodies_looks - ThirdParty.__init__(self, platform, "JGoodiesLooks", jgoodies_looks, ["java"]) - -class JGoodiesForms(ThirdParty): - def __init__(self, platform): - global jgoodies_forms - ThirdParty.__init__(self, platform, "JGoodiesForms", jgoodies_forms, ["java"]) - -class JGoodiesCommon(ThirdParty): - def __init__(self, platform): - global jgoodies_common - ThirdParty.__init__(self, platform, "JGoodiesCommon", jgoodies_common, ["java"]) - class Proguard(ThirdParty): def __init__(self, platform): global proguard |