summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/schemas.gni
blob: 8fc28c2c1856d2c1e26dc8029d59e40938917300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/features.gni")
import("//build/config/ui.gni")

assert(enable_extensions)

gypi_values = exec_script("//build/gypi_to_gn.py",
                          [ rebase_path("schemas.gypi") ],
                          "scope",
                          [ "schemas.gypi" ])

# Common sources that are both bundled and compiled.
sources = gypi_values.main_schema_files
if (enable_task_manager) {
  sources += gypi_values.task_manager_dependent_schema_files
}
if (is_chromeos) {
  sources += gypi_values.chromeos_schema_files
} else if (is_linux || is_win) {
  sources += gypi_values.input_ime_schema_file
}
if (enable_service_discovery) {
  sources += gypi_values.service_discovery_schema_files
}
if (enable_webrtc) {
  sources += gypi_values.webrtc_schema_files
}

uncompiled_sources = gypi_values.main_non_compiled_schema_files

root_namespace = "extensions::api::%(namespace)s"
schema_include_rules = "extensions/common/api:extensions::api::%(namespace)s"
schema_dependencies = [ "//extensions/common/api" ]