| 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 sources += rebase_path(gypi_values.chrome_browser_extensions_enabled_sources, |
| 21 ".", | 21 ".", |
| 22 "//chrome") | 22 "//chrome") |
| 23 | 23 |
| 24 configs += [ "//build/config:precompiled_headers" ] | |
| 25 defines = [] | 24 defines = [] |
| 26 | 25 |
| 27 # Since browser and browser_extensions actually depend on each other, | 26 # Since browser and browser_extensions actually depend on each other, |
| 28 # we must omit the dependency from browser_extensions to browser. | 27 # we must omit the dependency from browser_extensions to browser. |
| 29 # However, this means browser_extensions and browser should more or less | 28 # However, this means browser_extensions and browser should more or less |
| 30 # have the same dependencies. Once browser_extensions is untangled from | 29 # have the same dependencies. Once browser_extensions is untangled from |
| 31 # browser, then we can clean up these dependencies. | 30 # browser, then we can clean up these dependencies. |
| 32 public_deps = [ | 31 public_deps = [ |
| 33 "//chrome/common/extensions/api", | 32 "//chrome/common/extensions/api", |
| 34 "//content/public/browser", | 33 "//content/public/browser", |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 "//chrome") | 202 "//chrome") |
| 204 } | 203 } |
| 205 | 204 |
| 206 if (is_chromeos && use_ozone) { | 205 if (is_chromeos && use_ozone) { |
| 207 sources -= [ "global_shortcut_listener_chromeos.cc" ] | 206 sources -= [ "global_shortcut_listener_chromeos.cc" ] |
| 208 } | 207 } |
| 209 if (!use_ozone) { | 208 if (!use_ozone) { |
| 210 sources -= [ "global_shortcut_listener_ozone.cc" ] | 209 sources -= [ "global_shortcut_listener_ozone.cc" ] |
| 211 } | 210 } |
| 212 } | 211 } |
| OLD | NEW |