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

Side by Side Diff: chrome/common/extensions/api/BUILD.gn

Issue 506253003: Revert "Split bundle generation steps so that API registration is generated in browser, not common." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//extensions/generated_extensions_api.gni") 6 import("//extensions/generated_extensions_api.gni")
6 import("schemas.gni")
7 7
8 gypi_values = exec_script(
9 "//build/gypi_to_gn.py",
10 [ rebase_path("api.gyp") ],
11 "scope",
12 [ "api.gyp" ])
13
14 # Common sources that are both bundled and compiled.
8 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api 15 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api
9 generated_extensions_api("api") { 16 generated_extensions_api("api") {
10 schemas = true 17 if (is_android) {
18 # Should be eliminated. See crbug.com/305852.
19 sources = gypi_values.android_schema_files
20 } else {
21 sources = gypi_values.main_schema_files
22 if (is_chromeos) {
23 sources += gypi_values.chromeos_schema_files
24 if (is_chrome_branded) {
25 sources += gypi_values.chromeos_branded_schema_files
26 }
27 }
28 if (enable_webrtc) {
29 sources += gypi_values.webrtc_schema_files
30 }
31 }
32
33 if (!is_android) {
34 uncompiled_sources = gypi_values.main_non_compiled_schema_files
35 }
36
37 impl_dir = "//chrome/browser/extensions/api"
38 root_namespace = "extensions::api::%(namespace)s"
11 bundle = true 39 bundle = true
12 }
13
14 # GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration
15 generated_extensions_api("api_registration") {
16 impl_dir = "//chrome/browser/extensions/api"
17 bundle_registration = true
18 40
19 deps = [ 41 deps = [
20 # Different APIs include some headers from chrome/common that in turn 42 # Different APIs include some headers from chrome/common that in turn
21 # include generated headers from these targets. 43 # include generated headers from these targets.
22 # TODO(brettw) this should be made unnecessary if possible. 44 # TODO(brettw) this should be made unnecessary if possible.
23 "//components/metrics/proto", 45 "//components/metrics/proto",
46
47 "//content/public/browser",
24 "//skia", 48 "//skia",
25 "//sync", 49 "//sync",
26 "//ui/accessibility:ax_gen",
27 ] 50 ]
28 if (!is_ios && !is_android) {
29 deps += ["//components/copresence/proto"]
30 }
31 if (is_chromeos) { 51 if (is_chromeos) {
32 # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO(GYP) 52 # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO)GYP)
33 } 53 }
34 } 54 }
OLDNEW
« 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