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/config/features.gni")
6 import("//extensions/generated_extensions_api.gni")
8 gypi_values = exec_script(
9 "//build/gypi_to_gn.py",
10 [ rebase_path("api.gyp") ],
14 # Common sources that are both bundled and compiled.
15 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api
16 generated_extensions_api("api") {
18 # Should be eliminated. See crbug.com/305852.
19 sources = gypi_values.android_schema_files
21 sources = gypi_values.main_schema_files
23 sources += gypi_values.chromeos_schema_files
24 if (is_chrome_branded) {
25 sources += gypi_values.chromeos_branded_schema_files
29 sources += gypi_values.webrtc_schema_files
34 uncompiled_sources = gypi_values.main_non_compiled_schema_files
37 impl_dir = "//chrome/browser/extensions/api"
38 root_namespace = "extensions::api::%(namespace)s"
42 # Different APIs include some headers from chrome/common that in turn
43 # include generated headers from these targets.
44 # TODO(brettw) this should be made unnecessary if possible.
45 "//components/metrics/proto",
47 "//content/public/browser",
52 # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO)GYP)