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") |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 # flags, we should have more modular flags that apply only to a target and its | 44 # flags, we should have more modular flags that apply only to a target and its |
45 # dependents. For example, depending on the "x11" meta-target should define | 45 # dependents. For example, depending on the "x11" meta-target should define |
46 # USE_X11 for all dependents so that everything that could use X11 gets the | 46 # USE_X11 for all dependents so that everything that could use X11 gets the |
47 # define, but anything that doesn't depend on X11 doesn't see it. | 47 # define, but anything that doesn't depend on X11 doesn't see it. |
48 # | 48 # |
49 # For now we define these globally to match the current GYP build. | 49 # For now we define these globally to match the current GYP build. |
50 config("feature_flags") { | 50 config("feature_flags") { |
51 # TODO(brettw) this probably needs to be parameterized. | 51 # TODO(brettw) this probably needs to be parameterized. |
52 defines = [ | 52 defines = [ |
53 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. | 53 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. |
54 "CLD_VERSION=$cld_version", | |
55 ] | 54 ] |
56 if (enable_mdns) { | 55 if (enable_mdns) { |
57 defines += [ "ENABLE_MDNS=1" ] | 56 defines += [ "ENABLE_MDNS=1" ] |
58 } | 57 } |
59 if (enable_notifications) { | 58 if (enable_notifications) { |
60 defines += [ "ENABLE_NOTIFICATIONS" ] | 59 defines += [ "ENABLE_NOTIFICATIONS" ] |
61 } | 60 } |
62 if (enable_pepper_cdms) { | 61 if (enable_pepper_cdms) { |
63 # TODO(brettw) should probably be "=1" | 62 # TODO(brettw) should probably be "=1" |
64 defines += [ "ENABLE_PEPPER_CDMS" ] | 63 defines += [ "ENABLE_PEPPER_CDMS" ] |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 # file doesn't exist, no error will be generated (probably MS tested this | 461 # file doesn't exist, no error will be generated (probably MS tested this |
463 # case but forgot the other one?). To reproduce this error, do a build, | 462 # case but forgot the other one?). To reproduce this error, do a build, |
464 # then delete the precompile.c.obj file, then build again. | 463 # then delete the precompile.c.obj file, then build again. |
465 cflags_c = [ "/wd4206" ] | 464 cflags_c = [ "/wd4206" ] |
466 } else if (is_mac) { | 465 } else if (is_mac) { |
467 precompiled_header = "build/precompile.h" | 466 precompiled_header = "build/precompile.h" |
468 precompiled_source = "//build/precompile.h" | 467 precompiled_source = "//build/precompile.h" |
469 } | 468 } |
470 } | 469 } |
471 } | 470 } |
OLD | NEW |