| 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 8f4580eaa6d113fd86683fbd2a8dcdda9aabacf8..211597c52325a307ce7172d3181b3999cffc75da 100755
|
| --- a/build/android/gyp/write_build_config.py
|
| +++ b/build/android/gyp/write_build_config.py
|
| @@ -268,6 +268,8 @@ def main(argv):
|
| parser.add_option('--extra-classpath-jars',
|
| help='GYP-list of .jar files to include on the classpath when compiling, '
|
| 'but not to include in the final binary.')
|
| + parser.add_option('--not-chromium-code', action='store_true',
|
| + help='Whether this library is chromium code or not.')
|
|
|
| # android library options
|
| parser.add_option('--dex-path', help='Path to target\'s dex output.')
|
| @@ -325,7 +327,8 @@ def main(argv):
|
| build_utils.CheckOptions(options, parser, required_options)
|
|
|
| # Java prebuilts are the same as libraries except for in gradle files.
|
| - is_java_prebuilt = options.type == 'java_prebuilt'
|
| + is_java_prebuilt = (
|
| + options.type == 'java_prebuilt' or options.not_chromium_code)
|
| if is_java_prebuilt:
|
| options.type = 'java_library'
|
|
|
|
|