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 | 9 |
10 declare_args() { | 10 declare_args() { |
(...skipping 14 matching lines...) Expand all Loading... |
25 # dependents. For example, depending on the "x11" meta-target should define | 25 # dependents. For example, depending on the "x11" meta-target should define |
26 # USE_X11 for all dependents so that everything that could use X11 gets the | 26 # USE_X11 for all dependents so that everything that could use X11 gets the |
27 # define, but anything that doesn't depend on X11 doesn't see it. | 27 # define, but anything that doesn't depend on X11 doesn't see it. |
28 # | 28 # |
29 # For now we define these globally to match the current GYP build. | 29 # For now we define these globally to match the current GYP build. |
30 config("feature_flags") { | 30 config("feature_flags") { |
31 # TODO(brettw) most of these need to be parameterized. | 31 # TODO(brettw) most of these need to be parameterized. |
32 defines = [ | 32 defines = [ |
33 "CHROMIUM_BUILD", | 33 "CHROMIUM_BUILD", |
34 "ENABLE_EGLIMAGE=1", | 34 "ENABLE_EGLIMAGE=1", |
35 "ENABLE_BACKGROUND=1", | |
36 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. | 35 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. |
37 ] | 36 ] |
38 | 37 |
39 if (cld_version > 0) { | 38 if (cld_version > 0) { |
40 defines += [ "CLD_VERSION=$cld_version" ] | 39 defines += [ "CLD_VERSION=$cld_version" ] |
41 } | 40 } |
42 if (enable_mdns) { | 41 if (enable_mdns) { |
43 defines += [ "ENABLE_MDNS=1" ] | 42 defines += [ "ENABLE_MDNS=1" ] |
44 } | 43 } |
45 if (enable_notifications) { | 44 if (enable_notifications) { |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 184 } |
186 if (enable_one_click_signin) { | 185 if (enable_one_click_signin) { |
187 defines += [ "ENABLE_ONE_CLICK_SIGNIN" ] | 186 defines += [ "ENABLE_ONE_CLICK_SIGNIN" ] |
188 } | 187 } |
189 if (use_athena) { | 188 if (use_athena) { |
190 defines += [ "USE_ATHENA=1" ] | 189 defines += [ "USE_ATHENA=1" ] |
191 } | 190 } |
192 if (enable_hidpi) { | 191 if (enable_hidpi) { |
193 defines += [ "ENABLE_HIDPI=1" ] | 192 defines += [ "ENABLE_HIDPI=1" ] |
194 } | 193 } |
| 194 if (proprietary_codecs) { |
| 195 defines += [ "USE_PROPRIETARY_CODECS" ] |
| 196 } |
195 } | 197 } |
196 | 198 |
197 # Debug/release ---------------------------------------------------------------- | 199 # Debug/release ---------------------------------------------------------------- |
198 | 200 |
199 config("debug") { | 201 config("debug") { |
200 defines = [ | 202 defines = [ |
201 "_DEBUG", | 203 "_DEBUG", |
202 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 204 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
203 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 205 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
204 ] | 206 ] |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 "CoreText.framework", | 293 "CoreText.framework", |
292 "Foundation.framework", | 294 "Foundation.framework", |
293 "UIKit.framework", | 295 "UIKit.framework", |
294 ] | 296 ] |
295 } else if (is_linux) { | 297 } else if (is_linux) { |
296 libs = [ | 298 libs = [ |
297 "dl", | 299 "dl", |
298 ] | 300 ] |
299 } | 301 } |
300 } | 302 } |
OLD | NEW |