| Index: build/java.gypi
|
| diff --git a/build/java.gypi b/build/java.gypi
|
| index fdcbe576652a7438bd60734f59797f7e171c5215..9d5bb685836295ddfb5f5428e72ddc4d51c6b87b 100644
|
| --- a/build/java.gypi
|
| +++ b/build/java.gypi
|
| @@ -83,6 +83,7 @@
|
| 'variables': {
|
| 'res_dir': '<(java_in_dir)/res',
|
| 'res_crunched_dir': '<(intermediate_dir)/res_crunched',
|
| + 'res_mirrored_dir': '<(intermediate_dir)/res_mirrored',
|
| 'res_input_dirs': ['<(res_dir)', '<@(res_extra_dirs)'],
|
| 'resource_input_paths': ['<!@(find <(res_dir) -type f)'],
|
| 'R_dir': '<(intermediate_dir)/java_R',
|
| @@ -105,7 +106,9 @@
|
| # Dependent APKs include this target's resources via
|
| # additional_res_dirs, additional_res_packages, and
|
| # additional_R_text_files.
|
| - 'additional_res_dirs': ['<(res_crunched_dir)', '<@(res_input_dirs)'],
|
| + 'additional_res_dirs': ['<(res_crunched_dir)',
|
| + '<(res_mirrored_dir)',
|
| + '<@(res_input_dirs)'],
|
| 'additional_res_packages': ['<(R_package)'],
|
| 'additional_R_text_files': ['<(R_text_file)'],
|
| },
|
| @@ -148,6 +151,7 @@
|
| '<(DEPTH)/build/android/gyp/process_resources.py',
|
| '>@(resource_input_paths)',
|
| '>@(dependencies_res_files)',
|
| + '<(res_mirrored_dir)',
|
| ],
|
| 'outputs': [
|
| '<(R_stamp)',
|
| @@ -171,6 +175,24 @@
|
| '--ignore=>!(echo \'>(_inputs)\' | md5sum)',
|
| ],
|
| },
|
| + # Generate API 14 resources.
|
| + {
|
| + 'action_name': 'generate_api_14_resources_<(_target_name)',
|
| + 'message': 'Generating Android API 14 resources <(_target_name)',
|
| + 'inputs': [
|
| + '<(DEPTH)/build/android/gyp/util/build_utils.py',
|
| + '<(DEPTH)/build/android/gyp/mirror_resources.py',
|
| + '>@(resource_input_paths)',
|
| + ],
|
| + 'outputs': [
|
| + '<(res_mirrored_dir)',
|
| + ],
|
| + 'action': [
|
| + 'python', '<(DEPTH)/build/android/gyp/mirror_resources.py',
|
| + '--res-dir=<(res_dir)',
|
| + '--res-mirrored-dir=<(res_mirrored_dir)',
|
| + ]
|
| + },
|
| ],
|
| }],
|
| ],
|
|
|