summaryrefslogtreecommitdiff
path: root/chromium/build/android/apk_operations.py
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/build/android/apk_operations.py
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/build/android/apk_operations.py')
-rwxr-xr-xchromium/build/android/apk_operations.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/chromium/build/android/apk_operations.py b/chromium/build/android/apk_operations.py
index a09fae9e787..d2798147a0b 100755
--- a/chromium/build/android/apk_operations.py
+++ b/chromium/build/android/apk_operations.py
@@ -96,7 +96,8 @@ def _GenerateBundleApks(info,
output_path=None,
minimal=False,
minimal_sdk_version=None,
- mode=None):
+ mode=None,
+ optimize_for=None):
"""Generate an .apks archive from a bundle on demand.
Args:
@@ -105,6 +106,8 @@ def _GenerateBundleApks(info,
minimal: Create the minimal set of apks possible (english-only).
minimal_sdk_version: When minimal=True, use this sdkVersion.
mode: Build mode, either None, or one of app_bundle_utils.BUILD_APKS_MODES.
+ optimize_for: Override split config, either None, or one of
+ app_bundle_utils.OPTIMIZE_FOR_OPTIONS.
"""
logging.info('Generating .apks file')
app_bundle_utils.GenerateBundleApks(
@@ -118,7 +121,8 @@ def _GenerateBundleApks(info,
system_image_locales=info.system_image_locales,
mode=mode,
minimal=minimal,
- minimal_sdk_version=minimal_sdk_version)
+ minimal_sdk_version=minimal_sdk_version,
+ optimize_for=optimize_for)
def _InstallBundle(devices, apk_helper_instance, package_name,
@@ -1732,6 +1736,10 @@ class _BuildBundleApks(_Command):
'single universal APK, "system" generates an archive with a system '
'image APK, while "system_compressed" generates a compressed system '
'APK, with an additional stub APK for the system image.')
+ group.add_argument(
+ '--optimize-for',
+ choices=app_bundle_utils.OPTIMIZE_FOR_OPTIONS,
+ help='Override split configuration.')
def Run(self):
_GenerateBundleApks(
@@ -1739,7 +1747,8 @@ class _BuildBundleApks(_Command):
output_path=self.args.output_apks,
minimal=self.args.minimal,
minimal_sdk_version=self.args.sdk_version,
- mode=self.args.build_mode)
+ mode=self.args.build_mode,
+ optimize_for=self.args.optimize_for)
class _ManifestCommand(_Command):