Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / schemas.gni
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.
4
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7
8 assert(enable_extensions)
9
10 gypi_values = exec_script(
11     "//build/gypi_to_gn.py",
12     [ rebase_path("schemas.gypi") ],
13     "scope",
14     [ "schemas.gypi" ])
15
16 # Common sources that are both bundled and compiled.
17 sources = gypi_values.main_schema_files
18 if (is_chromeos) {
19   sources += gypi_values.chromeos_schema_files
20   if (!use_athena) {
21     sources += gypi_values.chromeos_non_athena_schema_files
22   }
23 }
24 if (enable_webrtc) {
25   sources += gypi_values.webrtc_schema_files
26 }
27
28
29 uncompiled_sources = gypi_values.main_non_compiled_schema_files
30
31 root_namespace = "extensions::api::%(namespace)s"
32 schema_include_rules =
33     "extensions/common/api:extensions::core_api::%(namespace)s"
34 schema_dependencies = [ "//extensions/common/api" ]