Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3017)

Unified Diff: build/android/package_resources_action.gypi

Issue 1133603004: Add create_density_splits option to java_apk.gypi / android_apk (gn) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split-abi
Patch Set: removed TELEMETRY_DEPS change Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/gyp/package_resources.py ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/package_resources_action.gypi
diff --git a/build/android/package_resources_action.gypi b/build/android/package_resources_action.gypi
index fe1645f8fcfc9ab1eed65912605d281cbfcfb501..cd6c59ca7741115f32f95581d89f0557521d45fc 100644
--- a/build/android/package_resources_action.gypi
+++ b/build/android/package_resources_action.gypi
@@ -12,6 +12,8 @@
# app_manifest_version_code - set the apps version number.
# Optional variables:
# asset_location - The directory where assets are located (if any).
+# create_density_splits - Whether to create density-based apk splits. Splits
+# are supported only for minSdkVersion >= 21.
# resource_zips - List of paths to resource zip files.
# shared_resources - Make a resource package that can be loaded by a different
# application at runtime to access the package's resources.
@@ -20,6 +22,7 @@
{
'variables': {
'asset_location%': '',
+ 'create_density_splits%': 0,
'resource_zips%': [],
'shared_resources%': 0,
'extensions_to_not_compress%': '',
@@ -61,6 +64,17 @@
'--asset-dir', '<(asset_location)',
],
}],
+ ['create_density_splits == 1', {
+ 'action': [
+ '--create-density-splits',
+ ],
+ 'outputs': [
+ '<(resource_packaged_apk_path)-hdpi',
+ '<(resource_packaged_apk_path)-xhdpi',
+ '<(resource_packaged_apk_path)-xxhdpi',
+ '<(resource_packaged_apk_path)-tvdpi',
+ ],
+ }],
['resource_zips != []', {
'action': [
'--resource-zips', '>(resource_zips)',
« no previous file with comments | « build/android/gyp/package_resources.py ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698