| OLD | NEW |
| (Empty) |
| 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("//build/gypi_to_gn.py", | |
| 11 [ rebase_path("schemas.gypi") ], | |
| 12 "scope", | |
| 13 [ "schemas.gypi" ]) | |
| 14 | |
| 15 # Common sources that are both bundled and compiled. | |
| 16 schema_sources = gypi_values.main_schema_files | |
| 17 if (enable_task_manager) { | |
| 18 schema_sources += gypi_values.task_manager_dependent_schema_files | |
| 19 } | |
| 20 if (is_chromeos) { | |
| 21 schema_sources += gypi_values.chromeos_schema_files | |
| 22 } else if (is_linux || is_win) { | |
| 23 schema_sources += gypi_values.input_ime_schema_file | |
| 24 } | |
| 25 if (enable_service_discovery) { | |
| 26 schema_sources += gypi_values.service_discovery_schema_files | |
| 27 } | |
| 28 if (enable_webrtc) { | |
| 29 schema_sources += gypi_values.webrtc_schema_files | |
| 30 } | |
| 31 if (enable_app_list) { | |
| 32 schema_sources += gypi_values.app_list_schema_files | |
| 33 } | |
| 34 | |
| 35 uncompiled_sources = gypi_values.main_non_compiled_schema_files | |
| 36 if (is_chromeos) { | |
| 37 uncompiled_sources += gypi_values.chromeos_non_compiled_schema_files | |
| 38 } | |
| 39 | |
| 40 uncompiled_bundle_schema_sources = gypi_values.non_compiled_bundle_schema_files | |
| 41 if (!is_chromeos) { | |
| 42 uncompiled_bundle_schema_sources += | |
| 43 gypi_values.non_chromeos_non_compiled_bundle_schema_files | |
| 44 } | |
| 45 | |
| 46 root_namespace = "extensions::api::%(namespace)s" | |
| 47 schema_include_rules = "extensions/common/api:extensions::api::%(namespace)s" | |
| 48 schema_dependencies = [ "//extensions/common/api" ] | |
| OLD | NEW |