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