self.packageRoot = "/tmp/qt-build" self.p4User = "******" self.p4Client = "qt-builder" self.startDir = os.getcwd() self.p4Resync = True self.buildMac = True self.buildWindows = True self.buildLinux = True self.build32 = True self.build64 = True options = Options() lgpl_header = pkgutil.readLicenseHeader(pkgutil.LICENSE_LGPL, options.startDir) gpl_header = pkgutil.readLicenseHeader(pkgutil.LICENSE_GPL, options.startDir) commercial_header = pkgutil.readLicenseHeader(pkgutil.LICENSE_COMMERCIAL, options.startDir) class BuildServer: def __init__(self, platform, arch): self.arch = arch self.platform = platform servers = [] def setupServers():
def __init__(self, platform, arch, license): self.done = False self.success = False self.license = license self.platform = platform self.arch = arch self.binary = False self.removeDirs = [ "ant", "autotestlib", "org/qtjambi/autotests", "org/qtjambi/bcc", "org/qtjambi/benchmarks", "org/qtjambi/extensions/awt", "org/qtjambi/extensions/jfc", "org/qtjambi/extensions/jython", "org/qtjambi/manualtests", "org/qtjambi/tests", "cpp", "dist", "doc/config", "doc/src", "eclipse", "ide", "launcher_launcher", "libbenchmark", "scripts", "tools", "whitepaper" ] self.removeFiles = [ "build_autotests.xml" ] self.removePatterns = [ re.compile("CRT"), re.compile("Makefile$"), re.compile("Makefile.Debug$"), re.compile("Makefile.Release$"), re.compile("\\.a$"), re.compile("\\.class$"), re.compile("\\.debug$"), re.compile("\\.exp$"), re.compile("\\.ilk$"), re.compile("\\.lib$"), re.compile("\\.log$"), re.compile("\\.manifest$"), re.compile("\\.o$"), re.compile("\\.obj$"), re.compile("\\.pch$"), re.compile("\\.pdb$"), re.compile("\\[\\/]debug$"), re.compile("\\[\\/]release$"), re.compile("\\_debuglib\\."), re.compile("com_trolltech.*\\.lib$"), re.compile("task(.bat)?$"), ] self.mkdirs = [] self.copyFiles = [ # text files for main directory... "dist/readme.html", "dist/install.html", "dist/changes-" + options.qtJambiVersion ] self.licenseHeader = pkgutil.readLicenseHeader(self.license, options.startDir) if self.license == pkgutil.LICENSE_COMMERCIAL: self.setCommercial() elif self.license == pkgutil.LICENSE_EVAL: self.setEval() elif self.license == pkgutil.LICENSE_GPL: self.setGpl() elif self.license == pkgutil.LICENSE_PREVIEW: self.setPreview() elif self.license == pkgutil.LICENSE_LGPL: self.setLgpl() else: raise "bad license type:" + self.license
else: self.packageRoot = "/tmp/qt-build" self.p4User = "******" self.p4Client = "qt-builder" self.startDir = os.getcwd() self.p4Resync = True self.buildMac = True self.buildWindows = True self.buildLinux = True self.build32 = True self.build64 = True options = Options() lgpl_header = pkgutil.readLicenseHeader(pkgutil.LICENSE_LGPL, options.startDir) gpl_header = pkgutil.readLicenseHeader(pkgutil.LICENSE_GPL, options.startDir) commercial_header = pkgutil.readLicenseHeader(pkgutil.LICENSE_COMMERCIAL, options.startDir) class BuildServer: def __init__(self, platform, arch): self.arch = arch self.platform = platform servers = [] def setupServers(): os.chdir(options.packageRoot)