| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/json_schema_api.gni") | 5 import("//build/json_schema_api.gni") |
| 6 import("//build/json_features.gni") |
| 6 | 7 |
| 7 json_schema_api("api") { | 8 json_schema_api("api") { |
| 8 visibility = [ ":*" ] | 9 visibility = [ ":*" ] |
| 9 | 10 |
| 10 sources = [ | 11 sources = [ |
| 11 "additional_properties.json", | 12 "additional_properties.json", |
| 12 "any.json", | 13 "any.json", |
| 13 "arrays.json", | 14 "arrays.json", |
| 14 "callbacks.json", | 15 "callbacks.json", |
| 15 "choices.json", | 16 "choices.json", |
| 16 "crossref.json", | 17 "crossref.json", |
| 17 "enums.json", | 18 "enums.json", |
| 18 "error_generation.json", | 19 "error_generation.json", |
| 19 "functions_as_parameters.json", | 20 "functions_as_parameters.json", |
| 20 "functions_on_types.json", | 21 "functions_on_types.json", |
| 21 "idl_basics.idl", | 22 "idl_basics.idl", |
| 22 "idl_object_types.idl", | 23 "idl_object_types.idl", |
| 23 "idl_other_namespace.idl", | 24 "idl_other_namespace.idl", |
| 24 "idl_other_namespace_sub_namespace.idl", | 25 "idl_other_namespace_sub_namespace.idl", |
| 25 "objects.json", | 26 "objects.json", |
| 26 "objects_movable.idl", | 27 "objects_movable.idl", |
| 27 "objects_movable_json.json", | 28 "objects_movable_json.json", |
| 28 "simple_api.json", | 29 "simple_api.json", |
| 29 ] | 30 ] |
| 30 | 31 |
| 31 schemas = true | 32 schemas = true |
| 32 root_namespace = "test::api::%(namespace)s" | 33 root_namespace = "test::api::%(namespace)s" |
| 33 } | 34 } |
| 34 | 35 |
| 36 json_features("features_test") { |
| 37 feature_class = "APIFeature" |
| 38 provider_class = "TestAPIFeatureProvider" |
| 39 sources = [ |
| 40 "features_test.json", |
| 41 "features_test2.json", |
| 42 ] |
| 43 } |
| 44 |
| 35 source_set("test") { | 45 source_set("test") { |
| 36 testonly = true | 46 testonly = true |
| 37 sources = [ | 47 sources = [ |
| 38 "test_util.cc", | 48 "test_util.cc", |
| 39 "test_util.h", | 49 "test_util.h", |
| 40 ] | 50 ] |
| 41 | 51 |
| 42 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 52 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 43 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 53 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 44 | 54 |
| 45 public_deps = [ | 55 public_deps = [ |
| 46 ":api", | 56 ":api", |
| 57 ":features_test", |
| 47 "//base", | 58 "//base", |
| 48 ] | 59 ] |
| 49 } | 60 } |
| OLD | NEW |