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

Unified Diff: build/config/BUILD.gn

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: build/config/BUILD.gn
diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn
index bfb0de770dd7ede4c356fe677c93ffb8b108917b..483ee88ef4c9d032d3cad571d21e4c63a6e94b6e 100644
--- a/build/config/BUILD.gn
+++ b/build/config/BUILD.gn
@@ -70,6 +70,11 @@ config("feature_flags") {
if (enable_pdf) {
defines += [ "ENABLE_PDF=1" ]
}
+ if (is_android) {
+ if (android_java_ui) {
mfomitchev 2015/11/19 15:41:05 Why not just do && instead of nested ifs?
+ defines += [ "ANDROID_JAVA_UI=1" ]
+ }
+ }
if (enable_basic_printing || enable_print_preview) {
# Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW.
defines += [ "ENABLE_PRINTING=1" ]

Powered by Google App Engine
This is Rietveld 408576698