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