aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Duong <joshuaduong@google.com>2023-11-10 07:32:21 -0800
committerJoshua Duong <joshuaduong@google.com>2023-11-10 08:31:16 -0800
commiteffb9f2f8009a899310c2293188f12bebb031df8 (patch)
tree728ea5a2f68654a4e2e465e4421fa3b9d0404acd
parent081d5de4cd45fed2a6e5374c91ce84ac8bcbc32c (diff)
downloadbuildSrc-emu-34-dev.tar.gz
This option will build emulator prebuilts (e.g. Qt6). Bug: 299464843 Test: tools/buildSrc/servers/build_tools.py --prebuilts Change-Id: Ic8a1200ba5dab100034097c32ac5431de55382d7
-rwxr-xr-xservers/build_tools.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/servers/build_tools.py b/servers/build_tools.py
index 9dbe28e..0c6ad00 100755
--- a/servers/build_tools.py
+++ b/servers/build_tools.py
@@ -88,6 +88,13 @@ def main(argv):
help="Build the emulator with the gfxstream libraries",
)
parser.add_argument(
+ "--prebuilts",
+ dest="prebuilts",
+ action="store",
+ nargs="*",
+ help="Builds the specified prebuilts (i.e. --prebuilts qt ffmpeg), or all prebuilts if no argument is provided",
+ )
+ parser.add_argument(
"--enable_system_rust",
action="store_true",
help="Build the emulator with the System Rust on the host machine",
@@ -152,6 +159,8 @@ def main(argv):
cmd = cmd + ["--feature", "enable_system_rust"]
if args.with_debug:
cmd = cmd + ["--config", "debug"]
+ if args.prebuilts is not None:
+ cmd = cmd + ["--prebuilts"] + args.prebuilts
# Make sure the dist directory exists.
os.makedirs(args.dist_dir, exist_ok=True)