Index: build/android/gyp/write_build_config.py |
diff --git a/build/android/gyp/write_build_config.py b/build/android/gyp/write_build_config.py |
index d26e6d394e23a401775f5f793d7e3343b12362ac..bef11c4755f27c0327c7864d346d6ca0582cca43 100755 |
--- a/build/android/gyp/write_build_config.py |
+++ b/build/android/gyp/write_build_config.py |
@@ -78,6 +78,8 @@ def main(argv): |
help='Whether this library supports running on the Android platform.') |
parser.add_option('--requires-android', action='store_true', |
help='Whether this library requires running on the Android platform.') |
+ parser.add_option('--bypass-platform-checks', action='store_true', |
+ help='Bypass checks for support/require Android platform.') |
# android library options |
parser.add_option('--dex-path', help='Path to target\'s dex output.') |
@@ -149,7 +151,7 @@ def main(argv): |
deps_info = config['deps_info'] |
- if options.type == 'java_library': |
+ if options.type == 'java_library' and not options.bypass_platform_checks: |
deps_info['requires_android'] = options.requires_android |
newt (away)
2014/11/21 19:38:46
Looks like --bypass-platform-checks allows the cur
cjhopman
2014/11/21 23:11:36
Done. Also, changed the checks to look at all depe
|
deps_info['supports_android'] = options.supports_android |