| 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", |
| 11 [ rebase_path("../../chrome_browser_extensions.gypi") ], | 11 [ rebase_path("../../chrome_browser_extensions.gypi") ], |
| 12 "scope", | 12 "scope", |
| 13 [ "../../chrome_browser_extensions.gypi" ]) | 13 [ "../../chrome_browser_extensions.gypi" ]) |
| 14 | 14 |
| 15 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions | 15 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions |
| 16 static_library("extensions") { | 16 static_library("extensions") { |
| 17 sources = [] | 17 sources = [] |
| 18 sources += rebase_path( | 18 sources += rebase_path( |
| 19 gypi_values.chrome_browser_extensions_enabled_sources, | 19 gypi_values.chrome_browser_extensions_enabled_sources, |
| 20 ".", "//chrome") | 20 ".", "//chrome") |
| 21 | 21 |
| 22 defines = [] | 22 defines = [] |
| 23 | 23 |
| 24 # Since browser and browser_extensions actually depend on each other, | 24 # Since browser and browser_extensions actually depend on each other, |
| 25 # we must omit the dependency from browser_extensions to browser. | 25 # we must omit the dependency from browser_extensions to browser. |
| 26 # However, this means browser_extensions and browser should more or less | 26 # However, this means browser_extensions and browser should more or less |
| 27 # have the same dependencies. Once browser_extensions is untangled from | 27 # have the same dependencies. Once browser_extensions is untangled from |
| 28 # browser, then we can clean up these dependencies. | 28 # browser, then we can clean up these dependencies. |
| 29 public_deps = [ |
| 30 "//chrome/common/extensions/api", |
| 31 "//content/public/browser", |
| 32 ] |
| 29 deps = [ | 33 deps = [ |
| 30 "//chrome:extra_resources", | 34 "//chrome:extra_resources", |
| 31 "//chrome:resources", | 35 "//chrome:resources", |
| 32 "//chrome:strings", | 36 "//chrome:strings", |
| 33 "//chrome/app/resources:platform_locale_settings", | 37 "//chrome/app/resources:platform_locale_settings", |
| 34 "//chrome/app/theme:theme_resources", | 38 "//chrome/app/theme:theme_resources", |
| 35 "//chrome/browser/devtools", | 39 "//chrome/browser/devtools", |
| 36 "//chrome/browser/history:in_memory_url_index_cache_proto", | 40 "//chrome/browser/history:in_memory_url_index_cache_proto", |
| 37 "//chrome/common", | 41 "//chrome/common", |
| 38 "//chrome/common/extensions/api", | |
| 39 "//chrome/common/extensions/api:api_registration", | 42 "//chrome/common/extensions/api:api_registration", |
| 40 "//chrome/common/net", | 43 "//chrome/common/net", |
| 41 "//chrome/common/safe_browsing:proto", | 44 "//chrome/common/safe_browsing:proto", |
| 42 "//chrome/installer/util", | 45 "//chrome/installer/util", |
| 43 "//components/copresence", | 46 "//components/copresence", |
| 44 "//components/omaha_query_params", | 47 "//components/omaha_query_params", |
| 45 "//components/onc", | 48 "//components/onc", |
| 46 "//components/proximity_auth", | 49 "//components/proximity_auth", |
| 47 "//components/strings", | 50 "//components/strings", |
| 48 "//components/url_matcher", | 51 "//components/url_matcher", |
| 49 "//content/app/resources", | 52 "//content/app/resources", |
| 50 "//content/public/browser", | |
| 51 "//content/public/common", | 53 "//content/public/common", |
| 52 "//crypto", | 54 "//crypto", |
| 53 "//device/bluetooth", | 55 "//device/bluetooth", |
| 54 "//device/hid", | 56 "//device/hid", |
| 55 "//extensions/browser", | 57 "//extensions/browser", |
| 56 "//extensions/common/api", | 58 "//extensions/common/api", |
| 57 "//extensions/common/api:api_registration", | 59 "//extensions/common/api:api_registration", |
| 58 "//extensions/strings", | 60 "//extensions/strings", |
| 59 "//net", | 61 "//net", |
| 60 "//skia", | 62 "//skia", |
| 61 "//storage/common", | 63 "//storage/common", |
| 62 "//sync", | 64 "//sync", |
| 63 "//third_party/WebKit/public:resources", | 65 "//third_party/WebKit/public:resources", |
| 64 "//third_party/cacheinvalidation", | 66 "//third_party/cacheinvalidation", |
| 65 "//third_party/icu", | 67 "//third_party/icu", |
| 66 "//third_party/leveldatabase", | 68 "//third_party/leveldatabase", |
| 67 "//third_party/re2", | 69 "//third_party/re2", |
| 68 "//third_party/webrtc/modules/desktop_capture", | 70 "//third_party/webrtc/modules/desktop_capture", |
| 69 "//ui/accessibility:ax_gen", | 71 "//ui/accessibility:ax_gen", |
| 70 "//ui/base", | 72 "//ui/base", |
| 71 "//ui/gfx", | 73 "//ui/gfx", |
| 72 "//ui/gfx/geometry", | 74 "//ui/gfx/geometry", |
| 73 "//ui/resources", | 75 "//ui/resources", |
| 74 "//ui/strings", | 76 "//ui/strings", |
| 75 "//url", | 77 "//url", |
| 76 "//storage/browser", | 78 "//storage/browser", |
| 77 ] | 79 ] |
| 78 | 80 |
| 79 forward_dependent_configs_from = [ | |
| 80 "//chrome/common/extensions/api", | |
| 81 "//content/public/browser", | |
| 82 ] | |
| 83 | |
| 84 if (is_chromeos) { | 81 if (is_chromeos) { |
| 85 sources += rebase_path( | 82 sources += rebase_path( |
| 86 gypi_values.chrome_browser_extensions_chromeos_sources, | 83 gypi_values.chrome_browser_extensions_chromeos_sources, |
| 87 ".", "//chrome") | 84 ".", "//chrome") |
| 88 configs += [ "//build/config/linux:dbus" ] | 85 configs += [ "//build/config/linux:dbus" ] |
| 89 deps += [ | 86 deps += [ |
| 90 "//third_party/libevent", | 87 "//third_party/libevent", |
| 91 "//third_party/protobuf:protobuf_lite", | 88 "//third_party/protobuf:protobuf_lite", |
| 92 #'../chromeos/ime/input_method.gyp:gencode', TODO(GYP) | 89 #'../chromeos/ime/input_method.gyp:gencode', TODO(GYP) |
| 93 ] | 90 ] |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 gypi_values.chrome_browser_extensions_app_list_sources, | 200 gypi_values.chrome_browser_extensions_app_list_sources, |
| 204 ".", "//chrome") | 201 ".", "//chrome") |
| 205 } | 202 } |
| 206 | 203 |
| 207 if (!use_ozone) { | 204 if (!use_ozone) { |
| 208 sources -= [ | 205 sources -= [ |
| 209 "global_shortcut_listener_ozone.cc", | 206 "global_shortcut_listener_ozone.cc", |
| 210 ] | 207 ] |
| 211 } | 208 } |
| 212 } | 209 } |
| OLD | NEW |