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 | 6 |
7 json_schema_api("api") { | 7 json_schema_api("api") { |
8 visibility = [ ":*" ] | 8 visibility = [ ":*" ] |
9 | 9 |
10 sources = [ | 10 sources = [ |
11 "additional_properties.json", | 11 "additional_properties.json", |
12 "any.json", | 12 "any.json", |
13 "arrays.json", | 13 "arrays.json", |
14 "callbacks.json", | 14 "callbacks.json", |
15 "choices.json", | 15 "choices.json", |
16 "crossref.json", | 16 "crossref.json", |
17 "enums.json", | 17 "enums.json", |
| 18 "error_generation.json", |
18 "functions_as_parameters.json", | 19 "functions_as_parameters.json", |
19 "functions_on_types.json", | 20 "functions_on_types.json", |
20 "idl_basics.idl", | 21 "idl_basics.idl", |
| 22 "idl_object_types.idl", |
21 "idl_other_namespace.idl", | 23 "idl_other_namespace.idl", |
22 "idl_other_namespace_sub_namespace.idl", | 24 "idl_other_namespace_sub_namespace.idl", |
23 "idl_object_types.idl", | |
24 "objects.json", | 25 "objects.json", |
25 "simple_api.json", | 26 "simple_api.json", |
26 "error_generation.json", | |
27 ] | 27 ] |
28 | 28 |
29 schemas = true | 29 schemas = true |
30 root_namespace = "test::api::%(namespace)s" | 30 root_namespace = "test::api::%(namespace)s" |
31 } | 31 } |
32 | 32 |
33 source_set("test") { | 33 source_set("test") { |
34 testonly = true | 34 testonly = true |
35 sources = [ | 35 sources = [ |
36 "test_util.cc", | 36 "test_util.cc", |
37 "test_util.h", | 37 "test_util.h", |
38 ] | 38 ] |
39 | 39 |
40 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 40 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
41 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 41 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
42 | 42 |
43 public_deps = [ | 43 public_deps = [ |
44 ":api", | 44 ":api", |
45 "//base", | 45 "//base", |
46 ] | 46 ] |
47 } | 47 } |
OLD | NEW |