OLD | NEW |
| (Empty) |
1 # Copyright (c) 2012 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 { | |
6 'targets': [ | |
7 { | |
8 # GN version: //tools/json_schema_compiler:test | |
9 'target_name': 'json_schema_compiler_tests', | |
10 'type': 'static_library', | |
11 'variables': { | |
12 'chromium_code': 1, | |
13 'schema_files': [ | |
14 'additional_properties.json', | |
15 'any.json', | |
16 'arrays.json', | |
17 'callbacks.json', | |
18 'choices.json', | |
19 'crossref.json', | |
20 'enums.json', | |
21 'functions_as_parameters.json', | |
22 'functions_on_types.json', | |
23 'idl_basics.idl', | |
24 'idl_other_namespace.idl', | |
25 'idl_other_namespace_sub_namespace.idl', | |
26 'idl_object_types.idl', | |
27 'objects.json', | |
28 'objects_movable.idl', | |
29 'objects_movable_json.json', | |
30 'simple_api.json', | |
31 'error_generation.json' | |
32 ], | |
33 'cc_dir': 'tools/json_schema_compiler/test', | |
34 'root_namespace': 'test::api::%(namespace)s', | |
35 }, | |
36 'inputs': [ | |
37 '<@(schema_files)', | |
38 ], | |
39 'sources': [ | |
40 '<@(schema_files)', | |
41 'test_util.cc', | |
42 'test_util.h', | |
43 ], | |
44 'includes': ['../../../build/json_schema_compile.gypi'], | |
45 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
46 'msvs_disabled_warnings': [4267, ], | |
47 }, | |
48 { | |
49 'target_name': 'feature_compiler_tests', | |
50 'type': 'static_library', | |
51 'variables': { | |
52 'feature_class': 'APIFeature', | |
53 'provider_class': 'CompilerTestFeatureProvider', | |
54 'out_dir': 'tools/json_schema_compiler/test', | |
55 'out_base_filename': 'features_compiler_test', | |
56 'in_files': [ | |
57 'tools/json_schema_compiler/test/features_test.json', | |
58 'tools/json_schema_compiler/test/features_test2.json', | |
59 ], | |
60 }, | |
61 'inputs': ['<@(in_files)'], | |
62 'sources': ['<@(in_files)'], | |
63 'includes': ['../json_features.gypi'], | |
64 }, | |
65 ], | |
66 } | |
OLD | NEW |