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

Side by Side Diff: build/config/BUILD.gn

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Missing file Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | build/config/features.gni » ('j') | chrome/common/features.gni » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
8 import("//build/config/crypto.gni") 8 import("//build/config/crypto.gni")
9 import("//build/config/dcheck_always_on.gni") 9 import("//build/config/dcheck_always_on.gni")
10 import("//build/config/features.gni") 10 import("//build/config/features.gni")
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 if (enable_notifications) { 68 if (enable_notifications) {
69 defines += [ "ENABLE_NOTIFICATIONS" ] 69 defines += [ "ENABLE_NOTIFICATIONS" ]
70 } 70 }
71 if (enable_plugins) { 71 if (enable_plugins) {
72 defines += [ "ENABLE_PLUGINS=1" ] 72 defines += [ "ENABLE_PLUGINS=1" ]
73 } 73 }
74 if (enable_pdf) { 74 if (enable_pdf) {
75 defines += [ "ENABLE_PDF=1" ] 75 defines += [ "ENABLE_PDF=1" ]
76 } 76 }
77 if (enable_basic_printing || enable_print_preview) {
78 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW.
79 defines += [ "ENABLE_PRINTING=1" ]
80 if (enable_basic_printing) {
81 # Enable basic printing support and UI.
82 defines += [ "ENABLE_BASIC_PRINTING=1" ]
83 }
84 if (enable_print_preview) {
85 # Enable printing with print preview.
86 # Can be defined without ENABLE_BASIC_PRINTING.
87 defines += [ "ENABLE_PRINT_PREVIEW=1" ]
88 }
89 if ((enable_basic_printing && is_win) || enable_print_preview) {
90 # Windows basic printing or print preview requires pdf enabled.
91 assert(enable_pdf,
92 "Windows basic printing or print preview needs pdf: " +
93 "set enable_pdf=true.")
94 }
95 }
96 if (enable_spellcheck) { 77 if (enable_spellcheck) {
97 defines += [ "ENABLE_SPELLCHECK=1" ] 78 defines += [ "ENABLE_SPELLCHECK=1" ]
98 } 79 }
99 if (use_browser_spellchecker) { 80 if (use_browser_spellchecker) {
100 defines += [ "USE_BROWSER_SPELLCHECKER=1" ] 81 defines += [ "USE_BROWSER_SPELLCHECKER=1" ]
101 } 82 }
102 if (dcheck_always_on) { 83 if (dcheck_always_on) {
103 defines += [ "DCHECK_ALWAYS_ON=1" ] 84 defines += [ "DCHECK_ALWAYS_ON=1" ]
104 } 85 }
105 if (use_udev) { 86 if (use_udev) {
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 # file doesn't exist, no error will be generated (probably MS tested this 445 # file doesn't exist, no error will be generated (probably MS tested this
465 # case but forgot the other one?). To reproduce this error, do a build, 446 # case but forgot the other one?). To reproduce this error, do a build,
466 # then delete the precompile.c.obj file, then build again. 447 # then delete the precompile.c.obj file, then build again.
467 cflags_c = [ "/wd4206" ] 448 cflags_c = [ "/wd4206" ]
468 } else if (is_mac) { 449 } else if (is_mac) {
469 precompiled_header = "build/precompile.h" 450 precompiled_header = "build/precompile.h"
470 precompiled_source = "//build/precompile.h" 451 precompiled_source = "//build/precompile.h"
471 } 452 }
472 } 453 }
473 } 454 }
OLDNEW
« no previous file with comments | « no previous file | build/config/features.gni » ('j') | chrome/common/features.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698