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/build_metadata.gni") | |
7 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
8 import("//build/config/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
9 import("//build/config/crypto.gni") | 8 import("//build/config/crypto.gni") |
10 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
11 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
12 import("//build/config/ui.gni") | 11 import("//build/config/ui.gni") |
13 import("//build/toolchain/goma.gni") | 12 import("//build/toolchain/goma.gni") |
14 | 13 |
15 declare_args() { | 14 declare_args() { |
16 # When set (the default) enables C++ iterator debugging in debug builds. | 15 # When set (the default) enables C++ iterator debugging in debug builds. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 # Can be defined without ENABLE_BASIC_PRINTING. | 72 # Can be defined without ENABLE_BASIC_PRINTING. |
74 defines += [ "ENABLE_PRINT_PREVIEW=1" ] | 73 defines += [ "ENABLE_PRINT_PREVIEW=1" ] |
75 } | 74 } |
76 } | 75 } |
77 if (enable_spellcheck) { | 76 if (enable_spellcheck) { |
78 defines += [ "ENABLE_SPELLCHECK=1" ] | 77 defines += [ "ENABLE_SPELLCHECK=1" ] |
79 } | 78 } |
80 if (use_browser_spellchecker) { | 79 if (use_browser_spellchecker) { |
81 defines += [ "USE_BROWSER_SPELLCHECKER=1" ] | 80 defines += [ "USE_BROWSER_SPELLCHECKER=1" ] |
82 } | 81 } |
83 if (dont_embed_build_metadata) { | |
84 defines += [ "DONT_EMBED_BUILD_METADATA" ] | |
85 } | |
86 if (dcheck_always_on) { | 82 if (dcheck_always_on) { |
87 defines += [ "DCHECK_ALWAYS_ON=1" ] | 83 defines += [ "DCHECK_ALWAYS_ON=1" ] |
88 } | 84 } |
89 if (use_udev) { | 85 if (use_udev) { |
90 # TODO(brettw) should probably be "=1". | 86 # TODO(brettw) should probably be "=1". |
91 defines += [ "USE_UDEV" ] | 87 defines += [ "USE_UDEV" ] |
92 } | 88 } |
93 if (ui_compositor_image_transport) { | 89 if (ui_compositor_image_transport) { |
94 # TODO(brettw) should probably be "=1". | 90 # TODO(brettw) should probably be "=1". |
95 defines += [ "UI_COMPOSITOR_IMAGE_TRANSPORT" ] | 91 defines += [ "UI_COMPOSITOR_IMAGE_TRANSPORT" ] |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 # This error doesn't happen every time. In VS2013, it seems if the .pch | 461 # This error doesn't happen every time. In VS2013, it seems if the .pch |
466 # file doesn't exist, no error will be generated (probably MS tested this | 462 # file doesn't exist, no error will be generated (probably MS tested this |
467 # case but forgot the other one?). To reproduce this error, do a build, | 463 # case but forgot the other one?). To reproduce this error, do a build, |
468 # then delete the precompile.c.obj file, then build again. | 464 # then delete the precompile.c.obj file, then build again. |
469 cflags_c = [ "/wd4206" ] | 465 cflags_c = [ "/wd4206" ] |
470 } else if (is_mac && !is_official_build && !use_goma) { | 466 } else if (is_mac && !is_official_build && !use_goma) { |
471 precompiled_header = "build/precompile.h" | 467 precompiled_header = "build/precompile.h" |
472 precompiled_source = "//build/precompile.h" | 468 precompiled_source = "//build/precompile.h" |
473 } | 469 } |
474 } | 470 } |
OLD | NEW |