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/json_schema_api.gni") | 5 import("//build/json_schema_api.gni") |
6 import("schemas.gni") | 6 import("schemas.gni") |
7 | 7 |
8 assert(enable_extensions) | 8 assert(enable_extensions) |
9 | 9 |
10 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api | 10 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api |
11 json_schema_api("api") { | 11 json_schema_api("api") { |
12 schemas = true | 12 schemas = true |
13 bundle = true | 13 bundle = true |
14 | 14 |
15 deps = schema_dependencies | 15 deps = schema_dependencies |
16 } | 16 } |
17 | 17 |
18 # GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration | 18 # GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration |
19 json_schema_api("api_registration") { | 19 json_schema_api("api_registration") { |
20 impl_dir = "//chrome/browser/extensions/api" | 20 impl_dir = "//chrome/browser/extensions/api" |
21 bundle_registration = true | 21 bundle_registration = true |
22 | 22 |
23 deps = [ | 23 deps = [ |
| 24 # Different APIs include headers from these targets. |
| 25 "//content/public/browser", |
| 26 "//extensions/browser", |
| 27 |
24 # Different APIs include some headers from chrome/common that in turn | 28 # Different APIs include some headers from chrome/common that in turn |
25 # include generated headers from these targets. | 29 # include generated headers from these targets. |
26 # TODO(brettw) this should be made unnecessary if possible. | 30 # TODO(brettw) this should be made unnecessary if possible. |
27 ":api", | 31 ":api", |
28 "//components/copresence/proto", | 32 "//components/copresence/proto", |
29 "//components/metrics/proto", | 33 "//components/metrics/proto", |
30 "//skia", | 34 "//skia", |
31 "//sync", | 35 "//sync", |
32 "//ui/accessibility:ax_gen", | 36 "//ui/accessibility:ax_gen", |
33 ] | 37 ] |
34 if (is_chromeos) { | 38 if (is_chromeos) { |
35 # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO(GYP) | 39 # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO(GYP) |
36 } | 40 } |
37 deps += schema_dependencies | 41 deps += schema_dependencies |
38 } | 42 } |
OLD | NEW |