Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1077)

Unified Diff: build/android/gyp/write_build_config.py

Issue 2460603004: [Do Not Submit] Rough draft enabling junit tests for android studio (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/gradle/generate_gradle.py ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'
« no previous file with comments | « build/android/gradle/generate_gradle.py ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698