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
3 # found in the LICENSE file.
5 import("//build/json_schema_api.gni")
8 assert(enable_extensions)
10 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api
11 json_schema_api("api") {
14 configs = [ "//build/config:precompiled_headers" ]
15 bundle_name = "Chrome"
17 deps = schema_dependencies
20 # GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration
21 json_schema_api("api_registration") {
22 impl_dir = "//chrome/browser/extensions/api"
23 bundle_registration = true
24 configs = [ "//build/config:precompiled_headers" ]
25 bundle_name = "Chrome"
28 # Different APIs include headers from these targets.
29 "//content/public/browser",
30 "//extensions/browser",
32 # Different APIs include some headers from chrome/common that in turn
33 # include generated headers from these targets.
34 # TODO(brettw) this should be made unnecessary if possible.
36 "//components/copresence/proto",
37 "//components/metrics/proto",
40 "//ui/accessibility:ax_gen",
43 # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO(GYP)
45 deps += schema_dependencies
47 # This must be a static library because the generated schemas have
48 # dependencies into both the browser and child processes, and this won't link
49 # in the multi DLL build. In the child DLL, only some files are needed, and
50 # these have no dependencies into the browser, so a static library solves the
52 generate_static_library = true