parser.add_option("-f", "--force", dest="force", action="store_true", default=False, help="Force runs even without source changes") (options, args) = parser.parse_args() if options.repo is None: print "Please provide the source repository to pull" exit() if not options.output.endswith("/"): options.output += "/" if options.config not in ["auto", "32bit", "64bit", "android", "android64"]: print "Please provide a valid config" exit() if options.config == "auto": options.config, _ = platform.architecture() if options.config == "64bit" and platform.architecture()[0] == "32bit": print "Cannot compile a 64bit binary on 32bit architecture" exit() puller = puller.getPuller(options.repo, options.output) puller.update(options.revision) builder = getBuilder(options.config, options.output) if options.force: builder.unlinkObjdir() builder.build(puller)
parser.add_option("-f", "--force", dest="force", action="store_true", default=False, help="Force runs even without source changes") (options, args) = parser.parse_args() if options.repo is None: print "Please provide the source repository to pull" exit() if not options.output.endswith("/"): options.output += "/" if options.config not in ["default", "32bit", "64bit"]: print "Please provide a valid config" exit() if options.config == "default": options.config, _ = platform.architecture() if options.config == "64bit" and platform.architecture()[0] == "32bit": print "Cannot compile a 64bit binary on 32bit architecture" exit() puller = puller.getPuller(options.repo, options.output) puller.update(options.revision) builder = getBuilder(options.config, options.output) if options.force: builder.unlinkObjdir() builder.build(puller)