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") |
| 6 |
5 gypi_values = exec_script("//build/gypi_to_gn.py", | 7 gypi_values = exec_script("//build/gypi_to_gn.py", |
6 [ rebase_path("schemas.gypi") ], | 8 [ rebase_path("schemas.gypi") ], |
7 "scope", | 9 "scope", |
8 [ "schemas.gypi" ]) | 10 [ "schemas.gypi" ]) |
9 | 11 |
10 sources = gypi_values.schema_files | 12 sources = gypi_values.schema_files |
11 if (is_chromeos) { | 13 if (use_cros_fe) { |
12 sources += gypi_values.chromeos_schema_files | 14 sources += gypi_values.chromeos_schema_files |
13 } | 15 } |
14 | 16 |
15 uncompiled_sources = gypi_values.non_compiled_schema_files | 17 uncompiled_sources = gypi_values.non_compiled_schema_files |
16 | 18 |
17 root_namespace = "extensions::api::%(namespace)s" | 19 root_namespace = "extensions::api::%(namespace)s" |
OLD | NEW |