aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorJonathan Schwender <55576758+jschwe@users.noreply.github.com>2024-09-26 08:58:30 +0200
committerGitHub <noreply@github.com>2024-09-26 06:58:30 +0000
commit7fdaccde5501283708503e9a64efa578ac9ae7f7 (patch)
tree40cf4ad30bd49dc5b91ac97ea889270b478f5458 /python/servo/command_base.py
parenta97afebdcc7a06201638c45a9c7e4b7aab25203a (diff)
downloadservo-7fdaccde5501283708503e9a64efa578ac9ae7f7.tar.gz
servo-7fdaccde5501283708503e9a64efa578ac9ae7f7.zip
ohos: Support product flavors (#33512)
* ohos: Support product flavors Support different product flavors (e.g. with different signing configurations) by supporting --flavor on ohos. The flavor influences the package path for OH packages, so allow the flavor parameter on build + package + install Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Fix smoketest Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 6513a1b150a..1436aa41379 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -531,7 +531,11 @@ class CommandBase(object):
help='Build in release mode without debug assertions'),
CommandArgument('--profile', group="Build Type",
help='Build with custom Cargo profile'),
- CommandArgument('--with-asan', action='store_true', help="Build with AddressSanitizer")
+ CommandArgument('--with-asan', action='store_true', help="Build with AddressSanitizer"),
+ CommandArgument(
+ '--flavor', default=None, group="Build Type",
+ help='Product flavor to be used when packaging with Gradle/Hvigor (android/ohos).'
+ ),
]
if build_configuration: