| 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 | 7 |
| 8 assert(enable_extensions) | 8 assert(enable_extensions) |
| 9 | 9 |
| 10 gypi_values = | 10 gypi_values = |
| 11 exec_script("//build/gypi_to_gn.py", | 11 exec_script("//build/gypi_to_gn.py", |
| 12 [ rebase_path("../../chrome_browser_extensions.gypi") ], | 12 [ rebase_path("../../chrome_browser_extensions.gypi") ], |
| 13 "scope", | 13 "scope", |
| 14 [ "../../chrome_browser_extensions.gypi" ]) | 14 [ "../../chrome_browser_extensions.gypi" ]) |
| 15 | 15 |
| 16 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions | 16 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions |
| 17 source_set("extensions") { | 17 source_set("extensions") { |
| 18 sources = [] | 18 sources = [] |
| 19 sources += rebase_path(gypi_values.chrome_browser_extensions_enabled_sources, | 19 sources += rebase_path(gypi_values.chrome_browser_extensions_enabled_sources, |
| 20 ".", | 20 ".", |
| 21 "//chrome") | 21 "//chrome") |
| 22 | 22 |
| 23 configs += [ "//build/config:precompiled_headers" ] | 23 configs += [ |
| 24 "//build/config:precompiled_headers", |
| 25 "//build/config/compiler:wexit_time_destructors", |
| 26 ] |
| 24 defines = [] | 27 defines = [] |
| 25 | 28 |
| 26 # Since browser and browser_extensions actually depend on each other, | 29 # Since browser and browser_extensions actually depend on each other, |
| 27 # we must omit the dependency from browser_extensions to browser. | 30 # we must omit the dependency from browser_extensions to browser. |
| 28 # However, this means browser_extensions and browser should more or less | 31 # However, this means browser_extensions and browser should more or less |
| 29 # have the same dependencies. Once browser_extensions is untangled from | 32 # have the same dependencies. Once browser_extensions is untangled from |
| 30 # browser, then we can clean up these dependencies. | 33 # browser, then we can clean up these dependencies. |
| 31 public_deps = [ | 34 public_deps = [ |
| 32 "//chrome/common/extensions/api", | 35 "//chrome/common/extensions/api", |
| 33 "//content/public/browser", | 36 "//content/public/browser", |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 "//chrome") | 225 "//chrome") |
| 223 } | 226 } |
| 224 | 227 |
| 225 if (is_chromeos && use_ozone) { | 228 if (is_chromeos && use_ozone) { |
| 226 sources -= [ "global_shortcut_listener_chromeos.cc" ] | 229 sources -= [ "global_shortcut_listener_chromeos.cc" ] |
| 227 } | 230 } |
| 228 if (!use_ozone) { | 231 if (!use_ozone) { |
| 229 sources -= [ "global_shortcut_listener_ozone.cc" ] | 232 sources -= [ "global_shortcut_listener_ozone.cc" ] |
| 230 } | 233 } |
| 231 } | 234 } |
| OLD | NEW |