mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Added support for using --features argument with --android
This commit is contained in:
parent
4ad6eba69b
commit
03bf082fb3
1 changed files with 6 additions and 2 deletions
|
@ -137,6 +137,10 @@ class MachCommands(CommandBase):
|
|||
@CommandArgument('--jobs', '-j',
|
||||
default=None,
|
||||
help='Number of jobs to run in parallel')
|
||||
@CommandArgument('--features',
|
||||
default=None,
|
||||
help='Space-separated list of features to also build',
|
||||
nargs='+')
|
||||
@CommandArgument('--android',
|
||||
default=None,
|
||||
action='store_true',
|
||||
|
@ -151,12 +155,12 @@ class MachCommands(CommandBase):
|
|||
@CommandArgument('params', nargs='...',
|
||||
help="Command-line arguments to be passed through to Cargo")
|
||||
def build(self, target=None, release=False, dev=False, jobs=None,
|
||||
android=None, verbose=False, debug_mozjs=False, params=None):
|
||||
features=None, android=None, verbose=False, debug_mozjs=False, params=None):
|
||||
if android is None:
|
||||
android = self.config["build"]["android"]
|
||||
features = features or []
|
||||
|
||||
opts = params or []
|
||||
features = []
|
||||
|
||||
base_path = self.get_target_dir()
|
||||
release_path = path.join(base_path, "release", "servo")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue