| OLD | NEW |
| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 defines = [ "V8_DEPRECATION_WARNINGS" ] | 64 defines = [ "V8_DEPRECATION_WARNINGS" ] |
| 65 if (enable_notifications) { | 65 if (enable_notifications) { |
| 66 defines += [ "ENABLE_NOTIFICATIONS" ] | 66 defines += [ "ENABLE_NOTIFICATIONS" ] |
| 67 } | 67 } |
| 68 if (enable_plugins) { | 68 if (enable_plugins) { |
| 69 defines += [ "ENABLE_PLUGINS=1" ] | 69 defines += [ "ENABLE_PLUGINS=1" ] |
| 70 } | 70 } |
| 71 if (enable_pdf) { | 71 if (enable_pdf) { |
| 72 defines += [ "ENABLE_PDF=1" ] | 72 defines += [ "ENABLE_PDF=1" ] |
| 73 } | 73 } |
| 74 if (enable_basic_printing || enable_print_preview) { | |
| 75 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW. | |
| 76 defines += [ "ENABLE_PRINTING=1" ] | |
| 77 if (enable_basic_printing) { | |
| 78 # Enable basic printing support and UI. | |
| 79 defines += [ "ENABLE_BASIC_PRINTING=1" ] | |
| 80 } | |
| 81 if (enable_print_preview) { | |
| 82 # Enable printing with print preview. | |
| 83 # Can be defined without ENABLE_BASIC_PRINTING. | |
| 84 defines += [ "ENABLE_PRINT_PREVIEW=1" ] | |
| 85 } | |
| 86 if ((enable_basic_printing && is_win) || enable_print_preview) { | |
| 87 # Windows basic printing or print preview requires pdf enabled. | |
| 88 assert(enable_pdf, | |
| 89 "Windows basic printing or print preview needs pdf: " + | |
| 90 "set enable_pdf=true.") | |
| 91 } | |
| 92 } | |
| 93 if (enable_spellcheck) { | 74 if (enable_spellcheck) { |
| 94 defines += [ "ENABLE_SPELLCHECK=1" ] | 75 defines += [ "ENABLE_SPELLCHECK=1" ] |
| 95 } | 76 } |
| 96 if (use_browser_spellchecker) { | 77 if (use_browser_spellchecker) { |
| 97 defines += [ "USE_BROWSER_SPELLCHECKER=1" ] | 78 defines += [ "USE_BROWSER_SPELLCHECKER=1" ] |
| 98 } | 79 } |
| 99 if (dcheck_always_on) { | 80 if (dcheck_always_on) { |
| 100 defines += [ "DCHECK_ALWAYS_ON=1" ] | 81 defines += [ "DCHECK_ALWAYS_ON=1" ] |
| 101 } | 82 } |
| 102 if (use_udev) { | 83 if (use_udev) { |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 # file doesn't exist, no error will be generated (probably MS tested this | 436 # file doesn't exist, no error will be generated (probably MS tested this |
| 456 # case but forgot the other one?). To reproduce this error, do a build, | 437 # case but forgot the other one?). To reproduce this error, do a build, |
| 457 # then delete the precompile.c.obj file, then build again. | 438 # then delete the precompile.c.obj file, then build again. |
| 458 cflags_c = [ "/wd4206" ] | 439 cflags_c = [ "/wd4206" ] |
| 459 } else if (is_mac) { | 440 } else if (is_mac) { |
| 460 precompiled_header = "build/precompile.h" | 441 precompiled_header = "build/precompile.h" |
| 461 precompiled_source = "//build/precompile.h" | 442 precompiled_source = "//build/precompile.h" |
| 462 } | 443 } |
| 463 } | 444 } |
| 464 } | 445 } |
| OLD | NEW |