aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2017-04-14 17:40:11 +0800
committerXidorn Quan <me@upsuper.org>2017-05-08 14:19:03 +1000
commit35dc68c234f27d3906c70918575f37348f4f4ac8 (patch)
tree7f9af030414c2efadda29a93421f96094366444a /python/servo/build_commands.py
parent1d6ede324580f12de42398f8a04511e51e27fa58 (diff)
downloadservo-35dc68c234f27d3906c70918575f37348f4f4ac8.tar.gz
servo-35dc68c234f27d3906c70918575f37348f4f4ac8.zip
Stop touching in-tree files from build-geckolib.
This stops: * generating atom helper files from regen_atoms.py * copying generated binding files to in-tree
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index 792b6071145..3a33f5f3b0d 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -24,7 +24,7 @@ from mach.decorators import (
Command,
)
-from servo.command_base import CommandBase, cd, call, BIN_SUFFIX, find_dep_path_newest
+from servo.command_base import CommandBase, cd, call, BIN_SUFFIX
from servo.util import host_triple
@@ -413,7 +413,6 @@ class MachCommands(CommandBase):
self.ensure_bootstrapped()
env = self.build_env(is_build=True, geckolib=True)
- geckolib_build_path = path.join(self.context.topdir, "target", "geckolib").encode("UTF-8")
ret = None
opts = []
@@ -433,14 +432,6 @@ class MachCommands(CommandBase):
if features:
opts += ["--features", ' '.join(features)]
- 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)
@@ -451,15 +442,6 @@ class MachCommands(CommandBase):
print("GeckoLib build completed in %s" % format_duration(elapsed))
- if with_gecko is not None:
- print("Copying binding files to style/gecko_bindings...")
- build_path = path.join(geckolib_build_path, "release" if release else "debug", "")
- target_style_path = find_dep_path_newest("style", build_path)
- out_gecko_path = path.join(target_style_path, "out", "gecko")
- bindings_path = path.join(self.context.topdir, "components", "style", "gecko_bindings")
- for f in ["bindings.rs", "structs_debug.rs", "structs_release.rs"]:
- shutil.copy(path.join(out_gecko_path, f), bindings_path)
-
return ret
@Command('clean',