diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2016-01-04 10:52:06 -0800 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2016-01-04 10:52:06 -0800 |
commit | b9fc84ddccdb789e65326f3f196e1b7253039db6 (patch) | |
tree | 8b8d5ca33bf0c2677fcf93260771ca3666c8cb56 /python/servo/post_build_commands.py | |
parent | d7ba536ad6ffa1a8d0c7c0d4e17f4d31bdac8e08 (diff) | |
download | servo-b9fc84ddccdb789e65326f3f196e1b7253039db6.tar.gz servo-b9fc84ddccdb789e65326f3f196e1b7253039db6.zip |
Use build.android config in mach run
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r-- | python/servo/post_build_commands.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index af290fea111..418217ba23a 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -41,7 +41,7 @@ class PostBuildCommands(CommandBase): help='Run the release build') @CommandArgument('--dev', '-d', action='store_true', help='Run the dev build') - @CommandArgument('--android', action='store_true', + @CommandArgument('--android', action='store_true', default=None, help='Run on an Android device through `adb shell`') @CommandArgument('--debug', action='store_true', help='Enable the debugger. Not specifying a ' @@ -53,10 +53,13 @@ class PostBuildCommands(CommandBase): @CommandArgument( 'params', nargs='...', help="Command-line arguments to be passed through to Servo") - def run(self, params, release=False, dev=False, android=False, debug=False, debugger=None): + def run(self, params, release=False, dev=False, android=None, debug=False, debugger=None): env = self.build_env() env["RUST_BACKTRACE"] = "1" + if android is None: + android = self.config["build"]["android"] + if android: if debug: print("Android on-device debugging is not supported by mach yet. See") |