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/crypto.gni") | 7 import("//build/config/crypto.gni") |
| 8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
| 9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 # TODO(brettw) Most of these should be removed. Instead of global feature | 38 # TODO(brettw) Most of these should be removed. Instead of global feature |
| 39 # flags, we should have more modular flags that apply only to a target and its | 39 # flags, we should have more modular flags that apply only to a target and its |
| 40 # dependents. For example, depending on the "x11" meta-target should define | 40 # dependents. For example, depending on the "x11" meta-target should define |
| 41 # USE_X11 for all dependents so that everything that could use X11 gets the | 41 # USE_X11 for all dependents so that everything that could use X11 gets the |
| 42 # define, but anything that doesn't depend on X11 doesn't see it. | 42 # define, but anything that doesn't depend on X11 doesn't see it. |
| 43 # | 43 # |
| 44 # For now we define these globally to match the current GYP build. | 44 # For now we define these globally to match the current GYP build. |
| 45 config("feature_flags") { | 45 config("feature_flags") { |
| 46 # TODO(brettw) this probably needs to be parameterized. | 46 # TODO(brettw) this probably needs to be parameterized. |
| 47 defines = [ "V8_DEPRECATION_WARNINGS" ] # Don't use deprecated V8 APIs anywhe re. | 47 defines = [ "V8_DEPRECATION_WARNINGS" ] # Don't use deprecated V8 APIs anywhe re. |
| 48 | 48 defines += [ "CLD_VERSION=$cld_version" ] |
|
Takashi Toyoshima
2015/07/30 08:41:05
defines = [
"V8...", # ...
"CLD_..."
]
may be
hajimehoshi
2015/07/30 08:51:29
Done.
| |
| 49 if (cld_version > 0) { | |
| 50 defines += [ "CLD_VERSION=$cld_version" ] | |
| 51 } | |
| 52 if (enable_mdns) { | 49 if (enable_mdns) { |
| 53 defines += [ "ENABLE_MDNS=1" ] | 50 defines += [ "ENABLE_MDNS=1" ] |
| 54 } | 51 } |
| 55 if (enable_notifications) { | 52 if (enable_notifications) { |
| 56 defines += [ "ENABLE_NOTIFICATIONS" ] | 53 defines += [ "ENABLE_NOTIFICATIONS" ] |
| 57 } | 54 } |
| 58 if (enable_pepper_cdms) { | 55 if (enable_pepper_cdms) { |
| 59 # TODO(brettw) should probably be "=1" | 56 # TODO(brettw) should probably be "=1" |
| 60 defines += [ "ENABLE_PEPPER_CDMS" ] | 57 defines += [ "ENABLE_PEPPER_CDMS" ] |
| 61 } | 58 } |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 438 # with precompiled headers since the source file that's "compiled" for | 435 # with precompiled headers since the source file that's "compiled" for |
| 439 # making the precompiled header is empty. | 436 # making the precompiled header is empty. |
| 440 # | 437 # |
| 441 # This error doesn't happen every time. In VS2013, it seems if the .pch | 438 # This error doesn't happen every time. In VS2013, it seems if the .pch |
| 442 # file doesn't exist, no error will be generated (probably MS tested this | 439 # file doesn't exist, no error will be generated (probably MS tested this |
| 443 # case but forgot the other one?). To reproduce this error, do a build, | 440 # case but forgot the other one?). To reproduce this error, do a build, |
| 444 # then delete the precompile.c.obj file, then build again. | 441 # then delete the precompile.c.obj file, then build again. |
| 445 cflags_c = [ "/wd4206" ] | 442 cflags_c = [ "/wd4206" ] |
| 446 } | 443 } |
| 447 } | 444 } |
| OLD | NEW |