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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 # TODO(brettw) Most of these should be removed. Instead of global feature | 43 # TODO(brettw) Most of these should be removed. Instead of global feature |
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 = [ "V8_DEPRECATION_WARNINGS" ] # Don't use deprecated V8 APIs anywhe
re. |
53 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. | |
54 ] | |
55 if (enable_mdns) { | 53 if (enable_mdns) { |
56 defines += [ "ENABLE_MDNS=1" ] | 54 defines += [ "ENABLE_MDNS=1" ] |
57 } | 55 } |
58 if (enable_notifications) { | 56 if (enable_notifications) { |
59 defines += [ "ENABLE_NOTIFICATIONS" ] | 57 defines += [ "ENABLE_NOTIFICATIONS" ] |
60 } | 58 } |
61 if (enable_pepper_cdms) { | 59 if (enable_pepper_cdms) { |
62 # TODO(brettw) should probably be "=1" | 60 # TODO(brettw) should probably be "=1" |
63 defines += [ "ENABLE_PEPPER_CDMS" ] | 61 defines += [ "ENABLE_PEPPER_CDMS" ] |
64 } | 62 } |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 196 } |
199 if (enable_settings_app) { | 197 if (enable_settings_app) { |
200 defines += [ "ENABLE_SETTINGS_APP=1" ] | 198 defines += [ "ENABLE_SETTINGS_APP=1" ] |
201 } | 199 } |
202 if (enable_supervised_users) { | 200 if (enable_supervised_users) { |
203 defines += [ "ENABLE_SUPERVISED_USERS=1" ] | 201 defines += [ "ENABLE_SUPERVISED_USERS=1" ] |
204 } | 202 } |
205 if (enable_service_discovery) { | 203 if (enable_service_discovery) { |
206 defines += [ "ENABLE_SERVICE_DISCOVERY=1" ] | 204 defines += [ "ENABLE_SERVICE_DISCOVERY=1" ] |
207 } | 205 } |
208 if (enable_autofill_dialog) { | |
209 defines += [ "ENABLE_AUTOFILL_DIALOG=1" ] | |
210 } | |
211 if (enable_image_loader_extension) { | 206 if (enable_image_loader_extension) { |
212 defines += [ "IMAGE_LOADER_EXTENSION=1" ] | 207 defines += [ "IMAGE_LOADER_EXTENSION=1" ] |
213 } | 208 } |
214 if (enable_topchrome_md) { | 209 if (enable_topchrome_md) { |
215 defines += [ "ENABLE_TOPCHROME_MD=1" ] | 210 defines += [ "ENABLE_TOPCHROME_MD=1" ] |
216 } | 211 } |
217 if (enable_wayland_server) { | 212 if (enable_wayland_server) { |
218 defines += [ "ENABLE_WAYLAND_SERVER=1" ] | 213 defines += [ "ENABLE_WAYLAND_SERVER=1" ] |
219 } | 214 } |
220 if (enable_wifi_display) { | 215 if (enable_wifi_display) { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 # file doesn't exist, no error will be generated (probably MS tested this | 448 # file doesn't exist, no error will be generated (probably MS tested this |
454 # case but forgot the other one?). To reproduce this error, do a build, | 449 # case but forgot the other one?). To reproduce this error, do a build, |
455 # then delete the precompile.c.obj file, then build again. | 450 # then delete the precompile.c.obj file, then build again. |
456 cflags_c = [ "/wd4206" ] | 451 cflags_c = [ "/wd4206" ] |
457 } else if (is_mac) { | 452 } else if (is_mac) { |
458 precompiled_header = "build/precompile.h" | 453 precompiled_header = "build/precompile.h" |
459 precompiled_source = "//build/precompile.h" | 454 precompiled_source = "//build/precompile.h" |
460 } | 455 } |
461 } | 456 } |
462 } | 457 } |
OLD | NEW |