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 assert(enable_extensions) | 9 assert(enable_extensions) |
10 | 10 |
11 gypi_values = | 11 gypi_values = |
12 exec_script("//build/gypi_to_gn.py", | 12 exec_script("//build/gypi_to_gn.py", |
13 [ rebase_path("../../chrome_browser_extensions.gypi") ], | 13 [ rebase_path("../../chrome_browser_extensions.gypi") ], |
14 "scope", | 14 "scope", |
15 [ "../../chrome_browser_extensions.gypi" ]) | 15 [ "../../chrome_browser_extensions.gypi" ]) |
16 | 16 |
17 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions | 17 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions |
18 source_set("extensions") { | 18 source_set("extensions") { |
19 sources = [] | 19 sources = [] |
20 sources += rebase_path(gypi_values.chrome_browser_extensions_enabled_sources, | 20 if (!is_android || enable_extensions) { |
21 ".", | 21 sources += rebase_path(gypi_values.chrome_browser_extensions_enabled_sources
, |
22 "//chrome") | 22 ".", |
| 23 "//chrome") |
| 24 } |
23 | 25 |
24 configs += [ "//build/config:precompiled_headers" ] | 26 configs += [ "//build/config:precompiled_headers" ] |
25 defines = [] | 27 defines = [] |
26 | 28 |
27 # Since browser and browser_extensions actually depend on each other, | 29 # Since browser and browser_extensions actually depend on each other, |
28 # we must omit the dependency from browser_extensions to browser. | 30 # we must omit the dependency from browser_extensions to browser. |
29 # However, this means browser_extensions and browser should more or less | 31 # However, this means browser_extensions and browser should more or less |
30 # have the same dependencies. Once browser_extensions is untangled from | 32 # have the same dependencies. Once browser_extensions is untangled from |
31 # browser, then we can clean up these dependencies. | 33 # browser, then we can clean up these dependencies. |
32 public_deps = [ | 34 public_deps = [ |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 if (enable_app_list) { | 201 if (enable_app_list) { |
200 sources += | 202 sources += |
201 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources, | 203 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources, |
202 ".", | 204 ".", |
203 "//chrome") | 205 "//chrome") |
204 } | 206 } |
205 | 207 |
206 if (is_chromeos && use_ozone) { | 208 if (is_chromeos && use_ozone) { |
207 sources -= [ "global_shortcut_listener_chromeos.cc" ] | 209 sources -= [ "global_shortcut_listener_chromeos.cc" ] |
208 } | 210 } |
209 if (!use_ozone) { | 211 if (!use_ozone && !is_android) { |
210 sources -= [ "global_shortcut_listener_ozone.cc" ] | 212 sources -= [ "global_shortcut_listener_ozone.cc" ] |
211 } | 213 } |
| 214 |
| 215 if (is_android && use_aura) { |
| 216 sources -= [ |
| 217 "api/gcd_private/gcd_private_api.cc", |
| 218 "api/gcd_private/gcd_private_api.h", |
| 219 "api/launcher_page/launcher_page_api.cc", |
| 220 "api/launcher_page/launcher_page_api.h", |
| 221 "api/mdns/dns_sd_delegate.cc", |
| 222 "api/mdns/dns_sd_delegate.h", |
| 223 "api/mdns/dns_sd_device_lister.cc", |
| 224 "api/mdns/dns_sd_device_lister.h", |
| 225 "api/mdns/dns_sd_registry.cc", |
| 226 "api/mdns/dns_sd_registry.h", |
| 227 "api/mdns/mdns_api.cc", |
| 228 "api/mdns/mdns_api.h", |
| 229 ] |
| 230 sources += [ |
| 231 "../web_applications/web_app_chromeos.cc", |
| 232 ] |
| 233 } |
212 } | 234 } |
OLD | NEW |