From cca8146fc939b564256237eb4fda8e47132673de Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 06 Feb 2013 14:40:44 +0000 Subject: Add b2g --- (limited to 'devbot/build.py') diff --git a/devbot/build.py b/devbot/build.py index 694c478..d4ed2b6 100644 --- a/devbot/build.py +++ b/devbot/build.py @@ -133,10 +133,8 @@ def _build_autotools(module, log): aclocal_path = os.path.join(config.share_dir, "aclocal") utils.ensure_dir(aclocal_path) - makefile_path = os.path.join(module.get_build_dir(), "Makefile") - source_dir = module.get_source_dir() - if not os.path.exists(makefile_path): + if not os.path.exists("Makefile"): configure = os.path.join(source_dir, "autogen.sh") if not os.path.exists(configure): configure = os.path.join(source_dir, "configure") @@ -180,6 +178,19 @@ def _build_node(module, log): _builders["node"] = _build_node +def _build_mozilla(module, log): + obj_dir = "obj-%s" % module.name + dist_bin_dir = os.path.join(obj_dir, "dist", "bin") + install_dir = os.path.join(config.lib_dir, module.name) + + with open("mozconfig", "w") as f: + f.write("ac_add_options --enable-application=%s\n" % module.name) + f.write("mk_add_options MOZ_OBJDIR=%s" % obj_dir) + + #command.run(["make", "-f", "client.mk"], log) + command.run(["cp", "-vRL", "%s/" % dist_bin_dir, install_dir], log) + +_builders["mozilla"] = _build_mozilla def _distribute_autotools(module): makefile = parse_makefile("Makefile") -- cgit v0.9.1