def main(): (options, args) = parser.parse_args() disabled= tools.split(open("data/build_info/disabled", "r").read(), "\n") if options.name in disabled: print options.name, "is disabled" write_no_ok(options.name) tools.rmdir(os.path.join("module_bin", options.name)) tools.rmdir(os.path.join("benchmark", options.name)) if options.scons=="yes": sys.exit(0) else: sys.exit(1) if setup_module(options.name, options.source, options.datapath): make_header(options) make_cpp(options) make_version_check(options) link_bin(options) link_benchmark(options) sys.exit(0) else: tools.rmdir(os.path.join("module_bin", options.name)) tools.rmdir(os.path.join("benchmark", options.name)) if options.scons=="yes": sys.exit(0) sys.exit(1)
def main(): (options, args) = parser.parse_args() disabled = tools.split(open("data/build_info/disabled", "r").read(), "\n") if options.name in disabled: print options.name, "is disabled" write_no_ok(options.name) tools.rmdir(os.path.join("module_bin", options.name)) tools.rmdir(os.path.join("benchmark", options.name)) sys.exit(1) success, modules = setup_module( options.name, options.source, options.datapath) if success: make_header(options) make_doxygen(options, modules) make_overview(options) link_bin(options) link_benchmark(options) sys.exit(0) else: tools.rmdir(os.path.join("module_bin", options.name)) tools.rmdir(os.path.join("benchmark", options.name)) sys.exit(1)
def main(): (options, apps) = parser.parse_args() disabled = tools.split(open("data/build_info/disabled", "r").read(), "\n") if options.name in disabled: print("%s is disabled" % options.name) write_no_ok(options.name) tools.rmdir(os.path.join("module_bin", options.name)) tools.rmdir(os.path.join("benchmark", options.name)) tools.rmdir(os.path.join("lib", "IMP", options.name)) sys.exit(1) success, modules = setup_module( options.name, options.source, options.datapath) if success: make_header(options) make_doxygen(options, modules) make_overview(options, apps) link_bin(options) link_py_apps(options) link_benchmark(options) sys.exit(0) else: tools.rmdir(os.path.join("module_bin", options.name)) tools.rmdir(os.path.join("benchmark", options.name)) tools.rmdir(os.path.join("lib", "IMP", options.name)) sys.exit(1)
def main(): options, apps = parser.parse_args() disabled = tools.split(open("build_info/disabled", "r").read(), "\n") if options.name in disabled: print("%s is disabled" % options.name) write_no_ok(options.name) tools.rmdir(os.path.join("module_bin", options.name)) tools.rmdir(os.path.join("benchmark", options.name)) tools.rmdir(os.path.join("lib", "IMP", options.name)) sys.exit(1) mf = tools.ModulesFinder(source_dir=options.source, external_dir=options.build_dir, module_name=options.name) module = mf[options.name] success, modules = setup_module(module, mf) if success: make_header(options, module) make_doxygen(options, module, modules, mf) make_overview(module, apps) link_bin(options, module) link_py_apps(module) link_benchmark(options, module) sys.exit(0) else: tools.rmdir(os.path.join("module_bin", options.name)) tools.rmdir(os.path.join("benchmark", options.name)) tools.rmdir(os.path.join("lib", "IMP", options.name)) sys.exit(1)