From fe3fa42b08116996a91bcfcd56076033e50531ca Mon Sep 17 00:00:00 2001 From: "kkimlabs@chromium.org" Date: Tue, 9 Jul 2013 14:07:51 +0000 Subject: [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 --- build/java.gypi | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build/java.gypi') 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)', ] }, ], -- cgit v1.1