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 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 | 8 |
9 gypi_values = exec_script( | 9 gypi_values = exec_script( |
10 "//build/gypi_to_gn.py", | 10 "//build/gypi_to_gn.py", |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 if (use_x11) { | 163 if (use_x11) { |
164 configs += [ | 164 configs += [ |
165 "//build/config/linux:x11", | 165 "//build/config/linux:x11", |
166 ] | 166 ] |
167 deps += [ | 167 deps += [ |
168 "//ui/events/platform", | 168 "//ui/events/platform", |
169 "//ui/events/platform/x11", | 169 "//ui/events/platform/x11", |
170 ] | 170 ] |
171 } | 171 } |
172 } | 172 } |
| 173 if (!use_x11) { |
| 174 sources -= [ |
| 175 "global_shortcut_listener_x11.cc", |
| 176 "global_shortcut_listener_x11.h", |
| 177 ] |
| 178 } |
173 | 179 |
174 if (safe_browsing_mode == 1) { | 180 if (safe_browsing_mode == 1) { |
175 defines += [ "FULL_SAFE_BROWSING" ] | 181 defines += [ "FULL_SAFE_BROWSING" ] |
176 } | 182 } |
177 if (safe_browsing_mode == 2) { | 183 if (safe_browsing_mode == 2) { |
178 defines += [ "MOBILE_SAFE_BROWSING" ] | 184 defines += [ "MOBILE_SAFE_BROWSING" ] |
179 } | 185 } |
180 | 186 |
181 if (enable_configuration_policy) { | 187 if (enable_configuration_policy) { |
182 deps += [ "//components/policy" ] | 188 deps += [ "//components/policy" ] |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 ".", "//chrome") | 222 ".", "//chrome") |
217 } | 223 } |
218 | 224 |
219 if (enable_app_list) { | 225 if (enable_app_list) { |
220 sources += rebase_path( | 226 sources += rebase_path( |
221 gypi_values.chrome_browser_extensions_app_list_sources, | 227 gypi_values.chrome_browser_extensions_app_list_sources, |
222 ".", "//chrome") | 228 ".", "//chrome") |
223 } | 229 } |
224 } | 230 } |
225 } | 231 } |
OLD | NEW |