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") |
11 import("//build/config/pch.gni") | 11 import("//build/config/pch.gni") |
12 import("//build/config/sanitizers/sanitizers.gni") | 12 import("//build/config/sanitizers/sanitizers.gni") |
13 import("//build/config/ui.gni") | 13 import("//build/config/ui.gni") |
14 import("//build/toolchain/goma.gni") | 14 import("//build/toolchain/goma.gni") |
15 | 15 |
16 # One common error that happens is that GYP-generated headers within gen/ get | |
17 # included rather than the GN-generated ones within gen/ subdirectories. | |
18 # TODO(GYP_GONE): Remove once GYP is gone (as well as exec_script exception). | |
19 assert( | |
20 exec_script("//build/dir_exists.py", [ "obj.host" ], "string") == "False", | |
21 "GYP artifacts detected in $root_build_dir.$0x0A" + | |
22 "You must wipe this directory before building with GN.") | |
23 | |
24 declare_args() { | 16 declare_args() { |
25 # When set (the default) enables C++ iterator debugging in debug builds. | 17 # When set (the default) enables C++ iterator debugging in debug builds. |
26 # Iterator debugging is always off in release builds (technically, this flag | 18 # Iterator debugging is always off in release builds (technically, this flag |
27 # affects the "debug" config, which is always available but applied by | 19 # affects the "debug" config, which is always available but applied by |
28 # default only in debug builds). | 20 # default only in debug builds). |
29 # | 21 # |
30 # Iterator debugging is generally useful for catching bugs. But it can | 22 # Iterator debugging is generally useful for catching bugs. But it can |
31 # introduce extra locking to check the state of an iterator against the state | 23 # introduce extra locking to check the state of an iterator against the state |
32 # of the current object. For iterator- and thread-heavy code, this can | 24 # of the current object. For iterator- and thread-heavy code, this can |
33 # significantly slow execution. | 25 # significantly slow execution. |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 # | 382 # |
391 # TODO(sof): determine VS2015 status and retire the setting from all | 383 # TODO(sof): determine VS2015 status and retire the setting from all |
392 # precompiled configurations. | 384 # precompiled configurations. |
393 cflags_c = [ "/wd4206" ] | 385 cflags_c = [ "/wd4206" ] |
394 } else if (is_mac) { | 386 } else if (is_mac) { |
395 precompiled_header = "build/precompile.h" | 387 precompiled_header = "build/precompile.h" |
396 precompiled_source = "//build/precompile.h" | 388 precompiled_source = "//build/precompile.h" |
397 } | 389 } |
398 } | 390 } |
399 } | 391 } |
OLD | NEW |