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

Unified Diff: build/java_apk.gypi

Issue 1140763002: Extract package_resources step into a .gypi & make assets & resource zips optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apkbuilder
Patch Set: rebased 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/config/android/internal_rules.gni ('k') | tools/telemetry/telemetry/TELEMETRY_DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/java_apk.gypi
diff --git a/build/java_apk.gypi b/build/java_apk.gypi
index cece2be5e4a11f5c30b825c5e076986c958968e1..40385f54e710c268448ee8d0acf7dc9c4ef773bd 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -128,10 +128,7 @@
'android_manifest_path%': '<(java_in_dir)/AndroidManifest.xml',
'push_stamp': '<(intermediate_dir)/push.stamp',
'link_stamp': '<(intermediate_dir)/link.stamp',
- 'package_resources_stamp': '<(intermediate_dir)/package_resources.stamp',
'resource_zip_path': '<(intermediate_dir)/<(_target_name).resources.zip',
- 'resource_packaged_apk_name': '<(apk_name)-resources.ap_',
- 'resource_packaged_apk_path': '<(intermediate_dir)/<(resource_packaged_apk_name)',
'shared_resources%': 0,
'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk',
'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk',
@@ -863,61 +860,20 @@
'includes': [ 'android/dex_action.gypi' ],
},
{
- 'action_name': 'package_resources',
- 'message': 'packaging resources for <(_target_name)',
'variables': {
- 'package_resources_options': [],
- 'package_resource_zip_input_paths': [
+ 'extra_inputs': ['<(codegen_stamp)'],
+ 'resource_zips': [
'<(resource_zip_path)',
- '>@(dependencies_res_zip_paths)',
],
'conditions': [
- ['shared_resources == 1', {
- 'package_resources_options+': ['--shared-resources']
+ ['is_test_apk == 0', {
+ 'resource_zips': [
+ '>@(dependencies_res_zip_paths)',
+ ],
}],
],
},
- 'conditions': [
- ['is_test_apk == 1', {
- 'variables': {
- 'dependencies_res_zip_paths=': [],
- 'additional_res_packages=': [],
- }
- }],
- ],
- 'inputs': [
- # TODO: This isn't always rerun correctly, http://crbug.com/351928
- '<(DEPTH)/build/android/gyp/util/build_utils.py',
- '<(DEPTH)/build/android/gyp/package_resources.py',
- '<(android_manifest_path)',
-
- '>@(package_resource_zip_input_paths)',
-
- '<(codegen_stamp)',
- ],
- 'outputs': [
- '<(resource_packaged_apk_path)',
- ],
- 'action': [
- 'python', '<(DEPTH)/build/android/gyp/package_resources.py',
- '--android-sdk', '<(android_sdk)',
- '--android-sdk-tools', '<(android_sdk_tools)',
-
- '--configuration-name', '<(CONFIGURATION_NAME)',
-
- '--android-manifest', '<(android_manifest_path)',
- '--version-code', '<(app_manifest_version_code)',
- '--version-name', '<(app_manifest_version_name)',
-
- '--asset-dir', '<(asset_location)',
- '--resource-zips', '>(package_resource_zip_input_paths)',
-
- '--no-compress', '<(extensions_to_not_compress)',
-
- '--apk-path', '<(resource_packaged_apk_path)',
-
- '<@(package_resources_options)',
- ],
+ 'includes': [ 'android/package_resources_action.gypi' ],
},
{
'action_name': 'ant_package_<(_target_name)',
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | tools/telemetry/telemetry/TELEMETRY_DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698