Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(982)

Unified Diff: chrome/common/extensions/api/BUILD.gn

Issue 513633002: Reland 596ff54335b2a1b393af10657bc4945114f3beed - Split API bundle generation steps (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chrome/common/extensions/api/api.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/BUILD.gn
diff --git a/chrome/common/extensions/api/BUILD.gn b/chrome/common/extensions/api/BUILD.gn
index d4362fb78091c036805a18b9617a50fe8e11445e..758cc0fe21ae85056a6d2410d0b690db8f265535 100644
--- a/chrome/common/extensions/api/BUILD.gn
+++ b/chrome/common/extensions/api/BUILD.gn
@@ -2,53 +2,33 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//build/config/features.gni")
import("//extensions/generated_extensions_api.gni")
+import("schemas.gni")
-gypi_values = exec_script(
- "//build/gypi_to_gn.py",
- [ rebase_path("api.gyp") ],
- "scope",
- [ "api.gyp" ])
-
-# Common sources that are both bundled and compiled.
# GYP version: chrome/common/extensions/api/api.gyp:chrome_api
generated_extensions_api("api") {
- if (is_android) {
- # Should be eliminated. See crbug.com/305852.
- sources = gypi_values.android_schema_files
- } else {
- sources = gypi_values.main_schema_files
- if (is_chromeos) {
- sources += gypi_values.chromeos_schema_files
- if (is_chrome_branded) {
- sources += gypi_values.chromeos_branded_schema_files
- }
- }
- if (enable_webrtc) {
- sources += gypi_values.webrtc_schema_files
- }
- }
-
- if (!is_android) {
- uncompiled_sources = gypi_values.main_non_compiled_schema_files
- }
+ schemas = true
+ bundle = true
+}
+# GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration
+generated_extensions_api("api_registration") {
impl_dir = "//chrome/browser/extensions/api"
- root_namespace = "extensions::api::%(namespace)s"
- bundle = true
+ bundle_registration = true
deps = [
# Different APIs include some headers from chrome/common that in turn
# include generated headers from these targets.
# TODO(brettw) this should be made unnecessary if possible.
"//components/metrics/proto",
-
- "//content/public/browser",
"//skia",
"//sync",
+ "//ui/accessibility:ax_gen",
]
+ if (!is_ios && !is_android) {
+ deps += ["//components/copresence/proto"]
+ }
if (is_chromeos) {
- # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO)GYP)
+ # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO(GYP)
}
}
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chrome/common/extensions/api/api.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698