diff options
author | kkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-09 14:07:51 +0000 |
---|---|---|
committer | kkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-09 14:07:51 +0000 |
commit | fe3fa42b08116996a91bcfcd56076033e50531ca (patch) | |
tree | 62e831315ceff724b4b1c129ec6a715c635c0630 /build/java.gypi | |
parent | 4efe8f28015c34dadde83fd4e7de7d3788668cee (diff) | |
download | chromium_src-fe3fa42b08116996a91bcfcd56076033e50531ca.zip chromium_src-fe3fa42b08116996a91bcfcd56076033e50531ca.tar.gz chromium_src-fe3fa42b08116996a91bcfcd56076033e50531ca.tar.bz2 |
[Android] Add an gyp option to disable generating v14 resources script.
Currently, we are generating v14 layout and style resources from v17
resources by replacing Start and End attributes to Left and Right
attributes. However, it is not necessary for all cases, so make an
option to disable generate_v14_compatible_resources.py script and
only verify that there is no RTL attributes in the pre-v17 resources.
BUG=247049
Review URL: https://chromiumcodereview.appspot.com/18653002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210555 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/java.gypi')
-rw-r--r-- | build/java.gypi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build/java.gypi b/build/java.gypi index 3fd6429..0e41ab3 100644 --- a/build/java.gypi +++ b/build/java.gypi @@ -65,6 +65,7 @@ 'java_strings_grd%': '', 'res_extra_dirs': [], 'res_extra_files': [], + 'res_v14_verify_only%': 0, 'resource_input_paths': ['>@(res_extra_files)'], 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 'classes_dir': '<(intermediate_dir)/classes', @@ -185,6 +186,16 @@ { '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', @@ -198,6 +209,7 @@ '--res-dir=<(res_dir)', '--res-v14-compatibility-dir=<(res_v14_compatibility_dir)', '--stamp', '<(res_v14_compatibility_stamp)', + '<@(res_v14_additional_options)', ] }, ], |