mirror of
https://github.com/servo/servo.git
synced 2025-06-30 12:03:38 +01:00
Android: run ./mach package implicitly after ./mach build by default
The result of `./mach build` for Android is a `.so` file that cannot be used on its own, so running build without package is presumably never useful.
This commit is contained in:
parent
a6f403c5f2
commit
6ef56dac2b
2 changed files with 9 additions and 2 deletions
|
@ -23,6 +23,7 @@ from mach.decorators import (
|
|||
CommandProvider,
|
||||
Command,
|
||||
)
|
||||
from mach.registrar import Registrar
|
||||
|
||||
from servo.command_base import CommandBase, cd, call, check_call, BIN_SUFFIX
|
||||
from servo.util import host_triple
|
||||
|
@ -160,6 +161,9 @@ class MachCommands(CommandBase):
|
|||
default=None,
|
||||
action='store_true',
|
||||
help='Build for Android')
|
||||
@CommandArgument('--no-package',
|
||||
action='store_true',
|
||||
help='For Android, disable packaging into a .apk after building')
|
||||
@CommandArgument('--debug-mozjs',
|
||||
default=None,
|
||||
action='store_true',
|
||||
|
@ -177,7 +181,7 @@ class MachCommands(CommandBase):
|
|||
action='store_true',
|
||||
help='Enable debug assertions in release')
|
||||
def build(self, target=None, release=False, dev=False, jobs=None,
|
||||
features=None, android=None, verbose=False, very_verbose=False,
|
||||
features=None, android=None, no_package=False, verbose=False, very_verbose=False,
|
||||
debug_mozjs=False, params=None, with_debug_assertions=False):
|
||||
|
||||
opts = params or []
|
||||
|
@ -357,6 +361,10 @@ class MachCommands(CommandBase):
|
|||
|
||||
# Do some additional things if the build succeeded
|
||||
if status == 0:
|
||||
if android and not no_package:
|
||||
Registrar.dispatch("package", context=self.context,
|
||||
release=release, dev=dev, target=target)
|
||||
|
||||
if sys.platform == "win32":
|
||||
servo_exe_dir = path.join(base_path, "debug" if dev else "release")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue