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/crypto.gni") | 6 import("//build/config/crypto.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//build/module_args/v8.gni") | 9 import("//build/module_args/v8.gni") |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... | |
29 dcheck_always_on = false | 29 dcheck_always_on = false |
30 | 30 |
31 # Set to true to compile with the OpenGL ES 2.0 conformance tests. | 31 # Set to true to compile with the OpenGL ES 2.0 conformance tests. |
32 internal_gles2_conform_tests = false | 32 internal_gles2_conform_tests = false |
33 } | 33 } |
34 | 34 |
35 # TODO(brettw) Most of these should be removed. Instead of global feature | 35 # TODO(brettw) Most of these should be removed. Instead of global feature |
36 # flags, we should have more modular flags that apply only to a target and its | 36 # flags, we should have more modular flags that apply only to a target and its |
37 # dependents. For example, depending on the "x11" meta-target should define | 37 # dependents. For example, depending on the "x11" meta-target should define |
38 # USE_X11 for all dependents so that everything that could use X11 gets the | 38 # USE_X11 for all dependents so that everything that could use X11 gets the |
39 # define, but anything that doesn't depend on X11 doesn't see it. | 39 # define, but anything that doesn't depend on X11 doesn't see it. |
Nico
2015/04/07 20:32:35
Is this feasible for your feature? Or do you need
mark a. foltz
2015/04/07 21:27:04
It looks feasible. There are probably a half doze
| |
40 # | 40 # |
41 # For now we define these globally to match the current GYP build. | 41 # For now we define these globally to match the current GYP build. |
42 config("feature_flags") { | 42 config("feature_flags") { |
43 # TODO(brettw) most of these need to be parameterized. | 43 # TODO(brettw) most of these need to be parameterized. |
44 defines = [ | 44 defines = [ |
45 "CHROMIUM_BUILD", | 45 "CHROMIUM_BUILD", |
46 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. | 46 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. |
47 ] | 47 ] |
48 | 48 |
49 if (cld_version > 0) { | 49 if (cld_version > 0) { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 if (is_asan) { | 143 if (is_asan) { |
144 defines += [ | 144 defines += [ |
145 "ADDRESS_SANITIZER", | 145 "ADDRESS_SANITIZER", |
146 "MEMORY_TOOL_REPLACES_ALLOCATOR", | 146 "MEMORY_TOOL_REPLACES_ALLOCATOR", |
147 "MEMORY_SANITIZER_INITIAL_SIZE", | 147 "MEMORY_SANITIZER_INITIAL_SIZE", |
148 ] | 148 ] |
149 } | 149 } |
150 if (enable_webrtc) { | 150 if (enable_webrtc) { |
151 defines += [ "ENABLE_WEBRTC=1" ] | 151 defines += [ "ENABLE_WEBRTC=1" ] |
152 } | 152 } |
153 if (enable_media_router) { | |
154 defines += [ "ENABLE_MEDIA_ROUTER=1" ] | |
155 } | |
153 if (disable_ftp_support) { | 156 if (disable_ftp_support) { |
154 defines += [ "DISABLE_FTP_SUPPORT=1" ] | 157 defines += [ "DISABLE_FTP_SUPPORT=1" ] |
155 } | 158 } |
156 if (!enable_nacl) { | 159 if (!enable_nacl) { |
157 defines += [ "DISABLE_NACL" ] | 160 defines += [ "DISABLE_NACL" ] |
158 } | 161 } |
159 if (enable_extensions) { | 162 if (enable_extensions) { |
160 defines += [ "ENABLE_EXTENSIONS=1" ] | 163 defines += [ "ENABLE_EXTENSIONS=1" ] |
161 } | 164 } |
162 if (enable_configuration_policy) { | 165 if (enable_configuration_policy) { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
331 "CoreFoundation.framework", | 334 "CoreFoundation.framework", |
332 "CoreGraphics.framework", | 335 "CoreGraphics.framework", |
333 "CoreText.framework", | 336 "CoreText.framework", |
334 "Foundation.framework", | 337 "Foundation.framework", |
335 "UIKit.framework", | 338 "UIKit.framework", |
336 ] | 339 ] |
337 } else if (is_linux) { | 340 } else if (is_linux) { |
338 libs = [ "dl" ] | 341 libs = [ "dl" ] |
339 } | 342 } |
340 } | 343 } |
OLD | NEW |