aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2016-12-16 11:56:05 +1100
committerXidorn Quan <me@upsuper.org>2016-12-16 17:02:25 +1100
commit3633384f101c4ded3c5463cee3482952187fb869 (patch)
treedbf03d97a590b9bb12c77bd2b4d232086f114882 /python/servo/build_commands.py
parent6c952e12df34e5fe313bed624ac94192cd2e9e67 (diff)
downloadservo-3633384f101c4ded3c5463cee3482952187fb869.tar.gz
servo-3633384f101c4ded3c5463cee3482952187fb869.zip
Update atoms when build geckolib with gecko
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index ad81cbbbd55..54d8b158deb 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -416,6 +416,14 @@ class MachCommands(CommandBase):
if release:
opts += ["--release"]
+ if with_gecko is not None:
+ print("Generating atoms data...")
+ run_file = path.join(self.context.topdir, "components",
+ "style", "binding_tools", "regen_atoms.py")
+ run_globals = {"__file__": run_file}
+ execfile(run_file, run_globals)
+ run_globals["generate_atoms"](env["MOZ_DIST"])
+
build_start = time()
with cd(path.join("ports", "geckolib")):
ret = call(["cargo", "build"] + opts, env=env, verbose=verbose)