mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Move windowing code out of the compositor
This is mainly just moving code around, in preparation for further changes to the "windowing" API.
This commit is contained in:
parent
bfb81a5d10
commit
77d32ee447
23 changed files with 828 additions and 206 deletions
|
@ -46,20 +46,22 @@ class MachCommands(CommandBase):
|
|||
opts += ["--release"]
|
||||
if target:
|
||||
opts += ["--target", target]
|
||||
elif android:
|
||||
opts += ["--target", "arm-linux-androideabi"]
|
||||
if jobs is not None:
|
||||
opts += ["-j", jobs]
|
||||
if verbose:
|
||||
opts += ["-v"]
|
||||
|
||||
build_start = time()
|
||||
status = subprocess.call(
|
||||
["cargo", "build"] + opts,
|
||||
env=self.build_env())
|
||||
if android:
|
||||
status = status or subprocess.call(
|
||||
["make", "-C", "ports/android"],
|
||||
make_opts = []
|
||||
if opts:
|
||||
make_opts += ["CARGO_OPTS=" + " ".join(opts)]
|
||||
status = subprocess.call(
|
||||
["make", "-C", "ports/android"] + make_opts,
|
||||
env=self.build_env())
|
||||
else:
|
||||
status = subprocess.call(
|
||||
["cargo", "build"] + opts,
|
||||
env=self.build_env())
|
||||
elapsed = time() - build_start
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue