summaryrefslogtreecommitdiffstats
path: root/build/java.gypi
diff options
context:
space:
mode:
authorcjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-07 08:28:03 +0000
committercjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-07 08:28:03 +0000
commit5fc01f31043d20344360c33321c5cfe9fc0a2281 (patch)
tree418fcc4ee64593269a69a4fbe35619a3c56fd0f7 /build/java.gypi
parent7ac2831f036bad31d7e6356f2b40fab4681654db (diff)
downloadchromium_src-5fc01f31043d20344360c33321c5cfe9fc0a2281.zip
chromium_src-5fc01f31043d20344360c33321c5cfe9fc0a2281.tar.gz
chromium_src-5fc01f31043d20344360c33321c5cfe9fc0a2281.tar.bz2
[Second try] Add creation of v14 compatible resources to process_resources.py
There are a lot of steps in processing resources and preparing them for packaging. It will be easier if these are all done by the same script. BUG=375431,359249 Review URL: https://codereview.chromium.org/310313005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275645 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/java.gypi')
-rw-r--r--build/java.gypi48
1 files changed, 12 insertions, 36 deletions
diff --git a/build/java.gypi b/build/java.gypi
index d392206..a67c836 100644
--- a/build/java.gypi
+++ b/build/java.gypi
@@ -111,7 +111,6 @@
'variables': {
'res_dir': '<(java_in_dir)/res',
'res_crunched_dir': '<(intermediate_dir)/res_crunched',
- 'res_v14_compatibility_stamp': '<(intermediate_dir)/res_v14_compatibility.stamp',
'res_v14_compatibility_dir': '<(intermediate_dir)/res_v14_compatibility',
'res_input_dirs': ['<(res_dir)', '<@(res_extra_dirs)'],
'resource_input_paths': ['<!@(find <(res_dir) -type f)'],
@@ -119,8 +118,7 @@
'R_text_file': '<(R_dir)/R.txt',
'R_stamp': '<(intermediate_dir)/resources.stamp',
'generated_src_dirs': ['<(R_dir)'],
- 'additional_input_paths': ['<(R_stamp)',
- '<(res_v14_compatibility_stamp)',],
+ 'additional_input_paths': ['<(R_stamp)', ],
'additional_res_dirs': [],
'dependencies_res_input_dirs': [],
'dependencies_res_files': [],
@@ -131,8 +129,7 @@
# generated_R_dirs and include its resources via
# dependencies_res_files.
'generated_R_dirs': ['<(R_dir)'],
- 'additional_input_paths': ['<(R_stamp)',
- '<(res_v14_compatibility_stamp)',],
+ 'additional_input_paths': ['<(R_stamp)', ],
'dependencies_res_files': ['<@(resource_input_paths)'],
'dependencies_res_input_dirs': ['<@(res_input_dirs)'],
@@ -165,11 +162,18 @@
'>@(dependencies_res_input_dirs)',],
# Write the inputs list to a file, so that its mtime is updated when
# the list of inputs changes.
- 'inputs_list_file': '>|(java_resources.<(_target_name).gypcmd >@(resource_input_paths) >@(dependencies_res_files))'
+ 'inputs_list_file': '>|(java_resources.<(_target_name).gypcmd >@(resource_input_paths) >@(dependencies_res_files))',
+ 'process_resources_options': [],
+ 'conditions': [
+ ['res_v14_verify_only == 1', {
+ 'process_resources_options': ['--v14-verify-only']
+ }],
+ ],
},
'inputs': [
'<(DEPTH)/build/android/gyp/util/build_utils.py',
'<(DEPTH)/build/android/gyp/process_resources.py',
+ '<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py',
'>@(resource_input_paths)',
'>@(dependencies_res_files)',
'>(inputs_list_file)',
@@ -184,43 +188,15 @@
'--R-dir', '<(R_dir)',
'--dependencies-res-dirs', '>(dependencies_res_dirs)',
'--resource-dir', '<(res_dir)',
+ '--res-v14-compatibility-dir', '<(res_v14_compatibility_dir)',
'--crunch-output-dir', '<(res_crunched_dir)',
'--android-manifest', '<(android_manifest)',
'--non-constant-id',
'--custom-package', '<(R_package)',
'--stamp', '<(R_stamp)',
+ '<@(process_resources_options)',
],
},
- # Generate API 14 resources.
- {
- 'action_name': 'generate_api_14_resources_<(_target_name)',
- 'message': 'Generating Android API 14 resources <(_target_name)',
- 'variables' : {
- 'res_v14_additional_options': [],
- },
- 'conditions': [
- ['res_v14_verify_only == 1', {
- 'variables': {
- 'res_v14_additional_options': ['--verify-only']
- },
- }],
- ],
- 'inputs': [
- '<(DEPTH)/build/android/gyp/util/build_utils.py',
- '<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py',
- '>@(resource_input_paths)',
- ],
- 'outputs': [
- '<(res_v14_compatibility_stamp)',
- ],
- 'action': [
- 'python', '<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py',
- '--res-dir=<(res_dir)',
- '--res-v14-compatibility-dir=<(res_v14_compatibility_dir)',
- '--stamp', '<(res_v14_compatibility_stamp)',
- '<@(res_v14_additional_options)',
- ]
- },
],
}],
['proguard_preprocess == 1', {