Index: build/android/gyp/process_resources.py |
diff --git a/build/android/gyp/process_resources.py b/build/android/gyp/process_resources.py |
index 7a5fdf83e316bc95f0f7730add619a4c7b9ce345..4914189887916317dcbf09cf590830faaec859aa 100755 |
--- a/build/android/gyp/process_resources.py |
+++ b/build/android/gyp/process_resources.py |
@@ -73,6 +73,10 @@ def ParseArgs(args): |
help='Do not generate v14 resources. Instead, just verify that the ' |
'resources are already compatible with v14, i.e. they don\'t use ' |
'attributes that cause crashes on certain devices.') |
+ parser.add_option( |
+ '--v14-skip', |
+ action="store_true", |
+ help='Do not generate nor verify v14 resources') |
parser.add_option( |
'--extra-res-packages', |
@@ -319,11 +323,12 @@ def main(): |
input_resource_dirs = build_utils.ParseGypList(options.resource_dirs) |
- for resource_dir in input_resource_dirs: |
- generate_v14_compatible_resources.GenerateV14Resources( |
- resource_dir, |
- v14_dir, |
- options.v14_verify_only) |
+ if not options.v14_skip: |
+ for resource_dir in input_resource_dirs: |
+ generate_v14_compatible_resources.GenerateV14Resources( |
+ resource_dir, |
+ v14_dir, |
+ options.v14_verify_only) |
dep_zips = build_utils.ParseGypList(options.dependencies_res_zips) |
input_files += dep_zips |