Allow setting GST_DEBUG on Android through mach

This commit is contained in:
Fernando Jiménez Moreno 2019-10-14 17:27:29 +02:00
parent eee2c895f4
commit 11993bb8f5
7 changed files with 26 additions and 6 deletions

View file

@ -102,6 +102,9 @@ class PostBuildCommands(CommandBase):
rust_log = env.get("RUST_LOG", None)
if rust_log:
extra += " -e servolog " + rust_log
gst_debug = env.get("GST_DEBUG", None)
if gst_debug:
extra += " -e gstdebug " + gst_debug
script += [
"am start " + extra + " org.mozilla.servo/org.mozilla.servo.MainActivity",
"sleep 0.5",