| 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") |
| 11 import("//build/config/ui.gni") | 11 import("//build/config/ui.gni") |
| 12 import("//build/toolchain/goma.gni") | 12 import("//build/toolchain/goma.gni") |
| 13 | 13 |
| 14 # One common error that happens is that GYP-generated headers within gen/ get | |
| 15 # included rather than the GN-generated ones within gen/ subdirectories. | |
| 16 # TODO(agrieve): Remove once GYP is gone (as well as exec_script exception). | |
| 17 assert( | |
| 18 exec_script("//build/dir_exists.py", [ "obj.host" ], "string") == "False", | |
| 19 "GYP artifacts detected in $root_build_dir.$0x0A" + | |
| 20 "You must wipe this directory before building with GN.") | |
| 21 | |
| 22 declare_args() { | 14 declare_args() { |
| 23 # When set (the default) enables C++ iterator debugging in debug builds. | 15 # When set (the default) enables C++ iterator debugging in debug builds. |
| 24 # Iterator debugging is always off in release builds (technically, this flag | 16 # Iterator debugging is always off in release builds (technically, this flag |
| 25 # affects the "debug" config, which is always available but applied by | 17 # affects the "debug" config, which is always available but applied by |
| 26 # default only in debug builds). | 18 # default only in debug builds). |
| 27 # | 19 # |
| 28 # Iterator debugging is generally useful for catching bugs. But it can | 20 # Iterator debugging is generally useful for catching bugs. But it can |
| 29 # introduce extra locking to check the state of an iterator against the state | 21 # introduce extra locking to check the state of an iterator against the state |
| 30 # of the current object. For iterator- and thread-heavy code, this can | 22 # of the current object. For iterator- and thread-heavy code, this can |
| 31 # significantly slow execution. | 23 # significantly slow execution. |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 # This error doesn't happen every time. In VS2013, it seems if the .pch | 475 # This error doesn't happen every time. In VS2013, it seems if the .pch |
| 484 # file doesn't exist, no error will be generated (probably MS tested this | 476 # file doesn't exist, no error will be generated (probably MS tested this |
| 485 # case but forgot the other one?). To reproduce this error, do a build, | 477 # case but forgot the other one?). To reproduce this error, do a build, |
| 486 # then delete the precompile.c.obj file, then build again. | 478 # then delete the precompile.c.obj file, then build again. |
| 487 cflags_c = [ "/wd4206" ] | 479 cflags_c = [ "/wd4206" ] |
| 488 } else if (is_mac && !is_official_build && !use_goma) { | 480 } else if (is_mac && !is_official_build && !use_goma) { |
| 489 precompiled_header = "build/precompile.h" | 481 precompiled_header = "build/precompile.h" |
| 490 precompiled_source = "//build/precompile.h" | 482 precompiled_source = "//build/precompile.h" |
| 491 } | 483 } |
| 492 } | 484 } |
| OLD | NEW |