Chromium Code Reviews| 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/features.gni") | 9 import("//build/config/features.gni") |
| 10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 } | 62 } |
| 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 } else { | |
| 73 assert(!is_win, "set enable_pdf=true on Windows.") | |
|
Lei Zhang
2016/05/18 21:43:37
I'd prefer we remove this check, and put all the c
Wei Li
2016/05/19 17:13:30
Done.
| |
| 72 } | 74 } |
| 73 if (enable_basic_printing || enable_print_preview) { | 75 if (enable_basic_printing || enable_print_preview) { |
| 74 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW. | 76 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW. |
| 75 defines += [ "ENABLE_PRINTING=1" ] | 77 defines += [ "ENABLE_PRINTING=1" ] |
| 76 if (enable_basic_printing) { | 78 if (enable_basic_printing) { |
| 77 # Enable basic printing support and UI. | 79 # Enable basic printing support and UI. |
| 78 defines += [ "ENABLE_BASIC_PRINTING=1" ] | 80 defines += [ "ENABLE_BASIC_PRINTING=1" ] |
| 79 } | 81 } |
| 80 if (enable_print_preview) { | 82 if (enable_print_preview) { |
| 81 # Enable printing with print preview. | 83 # Enable printing with print preview. |
| 82 # Can be defined without ENABLE_BASIC_PRINTING. | 84 # Can be defined without ENABLE_BASIC_PRINTING. |
| 83 defines += [ "ENABLE_PRINT_PREVIEW=1" ] | 85 defines += [ "ENABLE_PRINT_PREVIEW=1" ] |
| 86 assert(enable_pdf, | |
| 87 "Print preview depends on pdf module: set enable_pdf=true.") | |
| 84 } | 88 } |
| 85 } | 89 } |
| 86 if (enable_spellcheck) { | 90 if (enable_spellcheck) { |
| 87 defines += [ "ENABLE_SPELLCHECK=1" ] | 91 defines += [ "ENABLE_SPELLCHECK=1" ] |
| 88 } | 92 } |
| 89 if (use_browser_spellchecker) { | 93 if (use_browser_spellchecker) { |
| 90 defines += [ "USE_BROWSER_SPELLCHECKER=1" ] | 94 defines += [ "USE_BROWSER_SPELLCHECKER=1" ] |
| 91 } | 95 } |
| 92 if (dcheck_always_on) { | 96 if (dcheck_always_on) { |
| 93 defines += [ "DCHECK_ALWAYS_ON=1" ] | 97 defines += [ "DCHECK_ALWAYS_ON=1" ] |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 446 # file doesn't exist, no error will be generated (probably MS tested this | 450 # file doesn't exist, no error will be generated (probably MS tested this |
| 447 # case but forgot the other one?). To reproduce this error, do a build, | 451 # case but forgot the other one?). To reproduce this error, do a build, |
| 448 # then delete the precompile.c.obj file, then build again. | 452 # then delete the precompile.c.obj file, then build again. |
| 449 cflags_c = [ "/wd4206" ] | 453 cflags_c = [ "/wd4206" ] |
| 450 } else if (is_mac) { | 454 } else if (is_mac) { |
| 451 precompiled_header = "build/precompile.h" | 455 precompiled_header = "build/precompile.h" |
| 452 precompiled_source = "//build/precompile.h" | 456 precompiled_source = "//build/precompile.h" |
| 453 } | 457 } |
| 454 } | 458 } |
| 455 } | 459 } |
| OLD | NEW |