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

Unified Diff: build/config/android/internal_rules.gni

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/gyp/write_build_config.py ('k') | third_party/robolectric/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/internal_rules.gni
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni
index f656ea6854a3aea061b680c6bad559bc2ce49831..187eae7b42e8fe6bd30ae9d5a1e0a265c79d9148 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -371,6 +371,9 @@ template("write_build_config") {
]
args += [ "--fail=$_msg" ]
}
+ if (defined(invoker.not_chromium_code) && invoker.not_chromium_code) {
+ args += [ "--not-chromium-code" ]
+ }
}
}
@@ -2275,6 +2278,13 @@ if (enable_java_templates) {
} else {
type = "java_library"
}
+ not_chromium_code = false
+
+ # If it's not chromium code then we don't support modifying it in
+ # android studio.
+ if (defined(invoker.chromium_code) && !invoker.chromium_code) {
+ not_chromium_code = true
+ }
if (defined(invoker.deps)) {
possible_config_deps = invoker.deps
}
« no previous file with comments | « build/android/gyp/write_build_config.py ('k') | third_party/robolectric/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698