summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/test/BUILD.gn
blob: 33e6219e0ac70ce9105d64a9a78c308725d17f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/json_schema_api.gni")

json_schema_api("api") {
  visibility = [ ":*" ]

  sources = [
    "additional_properties.json",
    "any.json",
    "arrays.json",
    "callbacks.json",
    "choices.json",
    "crossref.json",
    "enums.json",
    "error_generation.json",
    "functions_as_parameters.json",
    "functions_on_types.json",
    "idl_basics.idl",
    "idl_object_types.idl",
    "idl_other_namespace.idl",
    "idl_other_namespace_sub_namespace.idl",
    "objects.json",
    "simple_api.json",
  ]

  schemas = true
  root_namespace = "test::api::%(namespace)s"
}

source_set("test") {
  testonly = true
  sources = [
    "test_util.cc",
    "test_util.h",
  ]

  # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
  configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]

  public_deps = [
    ":api",
    "//base",
  ]
}