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

Side by Side 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 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/allocator.gni") 5 import("//build/config/allocator.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 if (enable_browser_cdms) { 63 if (enable_browser_cdms) {
64 # TODO(brettw) should probably be "=1" 64 # TODO(brettw) should probably be "=1"
65 defines += [ "ENABLE_BROWSER_CDMS" ] 65 defines += [ "ENABLE_BROWSER_CDMS" ]
66 } 66 }
67 if (enable_plugins) { 67 if (enable_plugins) {
68 defines += [ "ENABLE_PLUGINS=1" ] 68 defines += [ "ENABLE_PLUGINS=1" ]
69 } 69 }
70 if (enable_pdf) { 70 if (enable_pdf) {
71 defines += [ "ENABLE_PDF=1" ] 71 defines += [ "ENABLE_PDF=1" ]
72 } 72 }
73 if (is_android) {
74 if (android_java_ui) {
75 defines += [ "ANDROID_JAVA_UI=1" ]
76 }
77 }
73 if (enable_basic_printing || enable_print_preview) { 78 if (enable_basic_printing || enable_print_preview) {
74 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW. 79 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW.
75 defines += [ "ENABLE_PRINTING=1" ] 80 defines += [ "ENABLE_PRINTING=1" ]
76 if (enable_basic_printing) { 81 if (enable_basic_printing) {
77 # Enable basic printing support and UI. 82 # Enable basic printing support and UI.
78 defines += [ "ENABLE_BASIC_PRINTING=1" ] 83 defines += [ "ENABLE_BASIC_PRINTING=1" ]
79 } 84 }
80 if (enable_print_preview) { 85 if (enable_print_preview) {
81 # Enable printing with print preview. 86 # Enable printing with print preview.
82 # Can be defined without ENABLE_BASIC_PRINTING. 87 # Can be defined without ENABLE_BASIC_PRINTING.
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 # This error doesn't happen every time. In VS2013, it seems if the .pch 441 # This error doesn't happen every time. In VS2013, it seems if the .pch
437 # file doesn't exist, no error will be generated (probably MS tested this 442 # file doesn't exist, no error will be generated (probably MS tested this
438 # case but forgot the other one?). To reproduce this error, do a build, 443 # case but forgot the other one?). To reproduce this error, do a build,
439 # then delete the precompile.c.obj file, then build again. 444 # then delete the precompile.c.obj file, then build again.
440 cflags_c = [ "/wd4206" ] 445 cflags_c = [ "/wd4206" ]
441 } else if (is_mac && !is_official_build && !use_goma) { 446 } else if (is_mac && !is_official_build && !use_goma) {
442 precompiled_header = "build/precompile.h" 447 precompiled_header = "build/precompile.h"
443 precompiled_source = "//build/precompile.h" 448 precompiled_source = "//build/precompile.h"
444 } 449 }
445 } 450 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/config/android/config.gni » ('j') | chrome/android/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698