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/crypto.gni") |
| 6 import("//build/config/features.gni") |
5 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
6 | 8 |
7 declare_args() { | 9 declare_args() { |
8 # When set, turns off the (normally-on) iterator debugging and related stuff | 10 # When set, turns off the (normally-on) iterator debugging and related stuff |
9 # that is normally turned on for Debug builds. These are generally useful for | 11 # that is normally turned on for Debug builds. These are generally useful for |
10 # catching bugs but in some cases may cause conflicts or excessive slowness. | 12 # catching bugs but in some cases may cause conflicts or excessive slowness. |
11 disable_iterator_debugging = false | 13 disable_iterator_debugging = false |
12 } | 14 } |
13 | 15 |
14 # TODO(brettw) Most of these should be removed. Instead of global feature | 16 # TODO(brettw) Most of these should be removed. Instead of global feature |
(...skipping 11 matching lines...) Expand all Loading... |
26 "ENABLE_ONE_CLICK_SIGNIN", | 28 "ENABLE_ONE_CLICK_SIGNIN", |
27 "ENABLE_REMOTING=1", | 29 "ENABLE_REMOTING=1", |
28 "ENABLE_WEBRTC=1", | 30 "ENABLE_WEBRTC=1", |
29 "ENABLE_CONFIGURATION_POLICY", | 31 "ENABLE_CONFIGURATION_POLICY", |
30 "ENABLE_INPUT_SPEECH", | 32 "ENABLE_INPUT_SPEECH", |
31 "ENABLE_NOTIFICATIONS", | 33 "ENABLE_NOTIFICATIONS", |
32 "ENABLE_EGLIMAGE=1", | 34 "ENABLE_EGLIMAGE=1", |
33 "ENABLE_TASK_MANAGER=1", | 35 "ENABLE_TASK_MANAGER=1", |
34 "ENABLE_EXTENSIONS=1", | 36 "ENABLE_EXTENSIONS=1", |
35 "ENABLE_PLUGIN_INSTALLATION=1", | 37 "ENABLE_PLUGIN_INSTALLATION=1", |
36 "ENABLE_PLUGINS=1", | |
37 "ENABLE_SESSION_SERVICE=1", | 38 "ENABLE_SESSION_SERVICE=1", |
38 "ENABLE_THEMES=1", | 39 "ENABLE_THEMES=1", |
39 "ENABLE_AUTOFILL_DIALOG=1", | 40 "ENABLE_AUTOFILL_DIALOG=1", |
40 "ENABLE_BACKGROUND=1", | 41 "ENABLE_BACKGROUND=1", |
41 "ENABLE_AUTOMATION=1", | 42 "ENABLE_AUTOMATION=1", |
42 "ENABLE_GOOGLE_NOW=1", | 43 "ENABLE_GOOGLE_NOW=1", |
43 "ENABLE_PRINTING=1", | |
44 "ENABLE_CAPTIVE_PORTAL_DETECTION=1", | 44 "ENABLE_CAPTIVE_PORTAL_DETECTION=1", |
45 "ENABLE_APP_LIST=1", | 45 "ENABLE_APP_LIST=1", |
46 "ENABLE_MESSAGE_CENTER=1", | |
47 "ENABLE_SETTINGS_APP=1", | 46 "ENABLE_SETTINGS_APP=1", |
48 "ENABLE_MANAGED_USERS=1", | 47 "ENABLE_MANAGED_USERS=1", |
| 48 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. |
49 ] | 49 ] |
50 | 50 |
| 51 if (cld_version > 0) { |
| 52 defines += [ "CLD_VERSION=$cld_version" ] |
| 53 } |
| 54 if (enable_mdns) { |
| 55 defines += [ "ENABLE_MDNS=1" ] |
| 56 } |
| 57 if (enable_pepper_cdms) { |
| 58 # TODO(brettw) should probably be "=1" |
| 59 defines += [ "ENABLE_PEPPER_CDMS" ] |
| 60 } |
| 61 if (enable_plugins) { |
| 62 defines += [ "ENABLE_PLUGINS=1" ] |
| 63 } |
| 64 if (enable_printing > 0) { |
| 65 defines += [ "ENABLE_PRINTING=1" ] |
| 66 if (enable_printing < 2) { |
| 67 defines += [ "ENABLE_FULL_PRINTING=1" ] |
| 68 } |
| 69 } |
| 70 if (enable_spellcheck) { |
| 71 defines += [ "ENABLE_SPELLCHECK=1" ] |
| 72 } |
| 73 if (use_udev) { |
| 74 # TODO(brettw) should probably be "=1". |
| 75 defines += [ "USE_UDEV" ] |
| 76 } |
51 if (toolkit_views) { | 77 if (toolkit_views) { |
52 defines += [ "TOOLKIT_VIEWS=1" ] | 78 defines += [ "TOOLKIT_VIEWS=1" ] |
53 } | 79 } |
| 80 if (ui_compositor_image_transport) { |
| 81 # TODO(brettw) should probably be "=1". |
| 82 defines += [ "UI_COMPOSITOR_IMAGE_TRANSPORT" ] |
| 83 } |
54 if (use_ash) { | 84 if (use_ash) { |
55 defines += [ "USE_ASH=1" ] | 85 defines += [ "USE_ASH=1" ] |
56 } | 86 } |
57 if (use_aura) { | 87 if (use_aura) { |
58 defines += [ "USE_AURA=1" ] | 88 defines += [ "USE_AURA=1" ] |
59 } | 89 } |
| 90 if (use_cairo) { |
| 91 defines += [ "USE_CAIRO=1" ] |
| 92 } |
| 93 if (use_clipboard_aurax11) { |
| 94 defines += [ "USE_CLIPBOARD_AURAX11=1" ] |
| 95 } |
| 96 if (use_default_render_theme) { |
| 97 defines += [ "USE_DEFAULT_RENDER_THEME=1" ] |
| 98 } |
60 if (use_glib) { | 99 if (use_glib) { |
61 defines += [ "USE_GLIB=1" ] | 100 defines += [ "USE_GLIB=1" ] |
62 } | 101 } |
| 102 if (use_nss) { |
| 103 defines += [ "USE_NSS=1" ] |
| 104 } |
| 105 if (use_openssl) { |
| 106 defines += [ "USE_OPENSSL=1" ] |
| 107 } |
63 if (use_ozone) { | 108 if (use_ozone) { |
64 defines += [ "USE_OZONE=1" ] | 109 defines += [ "USE_OZONE=1" ] |
65 } | 110 } |
66 if (use_x11) { | 111 if (use_x11) { |
67 defines += [ "USE_X11=1" ] | 112 defines += [ "USE_X11=1" ] |
| 113 if (use_xi2_mt > 0) { |
| 114 defines += [ "USE_XI2_MT=$use_xi2_mt" ] |
| 115 } |
68 } | 116 } |
69 } | 117 } |
70 | 118 |
71 # Debug/release ---------------------------------------------------------------- | 119 # Debug/release ---------------------------------------------------------------- |
72 | 120 |
73 config("debug") { | 121 config("debug") { |
74 defines = [ | 122 defines = [ |
75 "_DEBUG", | 123 "_DEBUG", |
76 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 124 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
77 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 125 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 "CoreText.framework", | 206 "CoreText.framework", |
159 "Foundation.framework", | 207 "Foundation.framework", |
160 "UIKit.framework", | 208 "UIKit.framework", |
161 ] | 209 ] |
162 } else if (is_linux) { | 210 } else if (is_linux) { |
163 libs = [ | 211 libs = [ |
164 "dl", | 212 "dl", |
165 ] | 213 ] |
166 } | 214 } |
167 } | 215 } |
OLD | NEW |