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/c++/c++.gni") | 6 import("//build/config/c++/c++.gni") |
7 import("//build/config/chrome_build.gni") | 7 import("//build/config/chrome_build.gni") |
8 import("//build/config/chromecast_build.gni") | 8 import("//build/config/chromecast_build.gni") |
9 import("//build/config/crypto.gni") | 9 import("//build/config/crypto.gni") |
10 import("//build/config/dcheck_always_on.gni") | 10 import("//build/config/dcheck_always_on.gni") |
| 11 import("//build/config/dvlog_always_on.gni") |
11 import("//build/config/features.gni") | 12 import("//build/config/features.gni") |
12 import("//build/config/pch.gni") | 13 import("//build/config/pch.gni") |
13 import("//build/config/sanitizers/sanitizers.gni") | 14 import("//build/config/sanitizers/sanitizers.gni") |
14 import("//build/config/ui.gni") | 15 import("//build/config/ui.gni") |
15 import("//build/toolchain/goma.gni") | 16 import("//build/toolchain/goma.gni") |
16 | 17 |
17 declare_args() { | 18 declare_args() { |
18 # When set (the default) enables C++ iterator debugging in debug builds. | 19 # When set (the default) enables C++ iterator debugging in debug builds. |
19 # Iterator debugging is always off in release builds (technically, this flag | 20 # Iterator debugging is always off in release builds (technically, this flag |
20 # affects the "debug" config, which is always available but applied by | 21 # affects the "debug" config, which is always available but applied by |
(...skipping 26 matching lines...) Expand all Loading... |
47 # This will also allow you to scope your build flag to a BUILD.gn file (or a | 48 # This will also allow you to scope your build flag to a BUILD.gn file (or a |
48 # .gni file if you need it from more than one place) rather than making global | 49 # .gni file if you need it from more than one place) rather than making global |
49 # flags. See //build/config/BUILDCONFIG.gn for advice on where to define | 50 # flags. See //build/config/BUILDCONFIG.gn for advice on where to define |
50 # build flags. | 51 # build flags. |
51 config("feature_flags") { | 52 config("feature_flags") { |
52 # Don't use deprecated V8 APIs anywhere. | 53 # Don't use deprecated V8 APIs anywhere. |
53 defines = [ "V8_DEPRECATION_WARNINGS" ] | 54 defines = [ "V8_DEPRECATION_WARNINGS" ] |
54 if (dcheck_always_on) { | 55 if (dcheck_always_on) { |
55 defines += [ "DCHECK_ALWAYS_ON=1" ] | 56 defines += [ "DCHECK_ALWAYS_ON=1" ] |
56 } | 57 } |
| 58 if (dvlog_always_on) { |
| 59 defines += [ "DVLOG_ALWAYS_ON=1" ] |
| 60 } |
57 if (use_udev) { | 61 if (use_udev) { |
58 # TODO(brettw) should probably be "=1". | 62 # TODO(brettw) should probably be "=1". |
59 defines += [ "USE_UDEV" ] | 63 defines += [ "USE_UDEV" ] |
60 } | 64 } |
61 if (use_ash) { | 65 if (use_ash) { |
62 defines += [ "USE_ASH=1" ] | 66 defines += [ "USE_ASH=1" ] |
63 } | 67 } |
64 if (use_aura) { | 68 if (use_aura) { |
65 defines += [ "USE_AURA=1" ] | 69 defines += [ "USE_AURA=1" ] |
66 } | 70 } |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 # variant for each language used in the target). | 380 # variant for each language used in the target). |
377 precompiled_source = "//build/precompile.cc" | 381 precompiled_source = "//build/precompile.cc" |
378 | 382 |
379 # Force include the header. | 383 # Force include the header. |
380 cflags = [ "/FI$precompiled_header" ] | 384 cflags = [ "/FI$precompiled_header" ] |
381 } else if (is_mac) { | 385 } else if (is_mac) { |
382 precompiled_source = "//build/precompile.h" | 386 precompiled_source = "//build/precompile.h" |
383 } | 387 } |
384 } | 388 } |
385 } | 389 } |
OLD | NEW |