OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # This file contains UI-related build flags. It should theoretically be in the | 5 # This file contains UI-related build flags. It should theoretically be in the |
6 # src/ui directory and only things that depend on the ui module should get the | 6 # src/ui directory and only things that depend on the ui module should get the |
7 # definitions. | 7 # definitions. |
8 # | 8 # |
9 # However, today we have many "bad" dependencies on some of these flags from, | 9 # However, today we have many "bad" dependencies on some of these flags from, |
10 # e.g. base, so they need to be global. | 10 # e.g. base, so they need to be global. |
11 # | 11 # |
12 # See also build/config/ui.gni | 12 # See also build/config/ui.gni |
13 | 13 |
| 14 import("//build/config/chrome_build.gni") |
14 if (is_android) { | 15 if (is_android) { |
15 import("//build/config/android/config.gni") | 16 import("//build/config/android/config.gni") |
16 } | 17 } |
17 | 18 |
18 declare_args() { | 19 declare_args() { |
19 # Multicast DNS. | 20 # Multicast DNS. |
20 enable_mdns = is_win || is_linux | 21 enable_mdns = is_win || is_linux |
21 | 22 |
22 enable_plugins = !is_android && !is_ios | 23 enable_plugins = !is_android && !is_ios |
23 | 24 |
24 # Enables Native Client support. | 25 # Enables Native Client support. |
25 # TODO(GYP): Get NaCl linking on other platforms. | 26 # TODO(GYP): Get NaCl linking on other platforms. |
26 # Also, see if we can always get rid of enable_nacl_untrusted and | 27 # Also, see if we can always get rid of enable_nacl_untrusted and |
27 # enable_pnacl and always build them if enable_nacl is true. | 28 # enable_pnacl and always build them if enable_nacl is true. |
28 # The "is_nacl" part of the condition is needed to ensure that | 29 # The "is_nacl" part of the condition is needed to ensure that |
29 # the untrusted code is built properly; arguably it should be | 30 # the untrusted code is built properly; arguably it should be |
30 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but | 31 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but |
31 # this will go away when Mac and Win are working and we can just use | 32 # this will go away when Mac and Win are working and we can just use |
32 # the commented out logic. | 33 # the commented out logic. |
33 # Eventually we want this to be: | 34 # Eventually we want this to be: |
34 # enable_nacl = !is_ios && !is_android | 35 # enable_nacl = !is_ios && !is_android |
35 enable_nacl = | 36 enable_nacl = (is_linux && !is_chromeos && !is_component_build && |
36 (is_linux && !is_chromeos && !is_debug && current_cpu == "x64") || is_nacl | 37 current_cpu == "x64") || is_nacl |
37 enable_nacl_untrusted = enable_nacl | 38 enable_nacl_untrusted = enable_nacl |
38 enable_pnacl = enable_nacl_untrusted | 39 enable_pnacl = enable_nacl_untrusted |
39 | 40 |
40 # If debug_devtools is set to true, JavaScript files for DevTools are stored | 41 # If debug_devtools is set to true, JavaScript files for DevTools are stored |
41 # as is and loaded from disk. Otherwise, a concatenated file is stored in | 42 # as is and loaded from disk. Otherwise, a concatenated file is stored in |
42 # resources.pak. It is still possible to load JS files from disk by passing | 43 # resources.pak. It is still possible to load JS files from disk by passing |
43 # --debug-devtools cmdline switch. | 44 # --debug-devtools cmdline switch. |
44 debug_devtools = false | 45 debug_devtools = false |
45 | 46 |
46 # Enables WebRTC. | 47 # Enables WebRTC. |
(...skipping 30 matching lines...) Expand all Loading... |
77 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) | 78 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) |
78 | 79 |
79 enable_remoting = !is_ios && !is_android | 80 enable_remoting = !is_ios && !is_android |
80 | 81 |
81 # Enable hole punching for the protected video. | 82 # Enable hole punching for the protected video. |
82 enable_video_hole = is_android | 83 enable_video_hole = is_android |
83 | 84 |
84 # Enables browser side Content Decryption Modules. Required for embedders | 85 # Enables browser side Content Decryption Modules. Required for embedders |
85 # (e.g. Android and ChromeCast) that use a browser side CDM. | 86 # (e.g. Android and ChromeCast) that use a browser side CDM. |
86 enable_browser_cdms = is_android | 87 enable_browser_cdms = is_android |
| 88 |
| 89 # Variable safe_browsing is used to control the build time configuration for |
| 90 # safe browsing feature. Safe browsing can be compiled in 3 different levels: |
| 91 # 0 disables it, 1 enables it fully, and 2 enables only UI and reporting |
| 92 # features without enabling phishing and malware detection. This is useful to |
| 93 # integrate a third party phishing/malware detection to existing safe browsing |
| 94 # logic. |
| 95 if (is_android) { |
| 96 safe_browsing_mode = 2 |
| 97 } else if (is_ios) { |
| 98 safe_browsing_mode = 0 |
| 99 } else { |
| 100 safe_browsing_mode = 1 |
| 101 } |
87 } | 102 } |
88 | 103 |
89 # Additional dependent variables ----------------------------------------------- | 104 # Additional dependent variables ----------------------------------------------- |
90 | 105 |
91 # Set the version of CLD. | 106 # Set the version of CLD. |
92 # 0: Don't specify the version. This option is for the Finch testing. | 107 # 0: Don't specify the version. This option is for the Finch testing. |
93 # 1: Use only CLD1. | 108 # 1: Use only CLD1. |
94 # 2: Use only CLD2. | 109 # 2: Use only CLD2. |
95 if (is_android) { | 110 if (is_android) { |
96 cld_version = 1 | 111 cld_version = 1 |
(...skipping 29 matching lines...) Expand all Loading... |
126 | 141 |
127 # TODO(brettw) this should be moved to net and only dependents get this define. | 142 # TODO(brettw) this should be moved to net and only dependents get this define. |
128 disable_ftp_support = is_ios | 143 disable_ftp_support = is_ios |
129 | 144 |
130 enable_web_speech = !is_android && !is_ios | 145 enable_web_speech = !is_android && !is_ios |
131 | 146 |
132 use_dbus = is_linux | 147 use_dbus = is_linux |
133 | 148 |
134 enable_extensions = !is_android && !is_ios | 149 enable_extensions = !is_android && !is_ios |
135 | 150 |
136 # Variable safe_browsing is used to control the build time configuration for | |
137 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 0 | |
138 # disables it, 1 enables it fully, and 2 enables only UI and reporting features | |
139 # without enabling phishing and malware detection. This is useful to integrate | |
140 # a third party phishing/malware detection to existing safe browsing logic. | |
141 if (is_android) { | |
142 safe_browsing_mode = 2 | |
143 } else if (is_ios) { | |
144 safe_browsing_mode = 0 | |
145 } else { | |
146 safe_browsing_mode = 1 | |
147 } | |
148 | |
149 enable_task_manager = !is_ios && !is_android | 151 enable_task_manager = !is_ios && !is_android |
150 | 152 |
151 use_cups = is_desktop_linux || is_mac | 153 use_cups = is_desktop_linux || is_mac |
152 | 154 |
153 enable_themes = !is_android && !is_ios | 155 enable_themes = !is_android && !is_ios |
154 | 156 |
155 # TODO(scottmg) remove this when we've fixed printing. | 157 # TODO(scottmg) remove this when we've fixed printing. |
156 win_pdf_metafile_for_printing = true | 158 win_pdf_metafile_for_printing = true |
157 | 159 |
158 # Whether we are using the rlz library or not. Platforms like Android send | 160 # Whether we are using the rlz library or not. Platforms like Android send |
(...skipping 23 matching lines...) Expand all Loading... |
182 # TODO(GYP) also require !embedded to enable. | 184 # TODO(GYP) also require !embedded to enable. |
183 use_gconf = is_linux && !is_chromeos | 185 use_gconf = is_linux && !is_chromeos |
184 | 186 |
185 # Hangout services is an extension that adds extra features to Hangouts. | 187 # Hangout services is an extension that adds extra features to Hangouts. |
186 # For official GYP builds, this flag is set, it will likely need to be | 188 # For official GYP builds, this flag is set, it will likely need to be |
187 # parameterized in the future for a similar use. | 189 # parameterized in the future for a similar use. |
188 enable_hangout_services_extension = false | 190 enable_hangout_services_extension = false |
189 | 191 |
190 # Whether to back up data before sync. | 192 # Whether to back up data before sync. |
191 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) | 193 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) |
OLD | NEW |