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("../../../tools/bindings/mojom.gni") | 5 import("../../../tools/bindings/mojom.gni") |
6 | 6 |
7 test_interfaces_mojom = [ | |
8 "math_calculator.mojom", | |
9 "no_module.mojom", | |
10 "ping_service.mojom", | |
11 "rect.mojom", | |
12 "regression_tests.mojom", | |
13 "sample_factory.mojom", | |
14 "sample_import.mojom", | |
15 "sample_import2.mojom", | |
16 "sample_interfaces.mojom", | |
17 "sample_service.mojom", | |
18 "scoping.mojom", | |
19 "serialization_test_structs.mojom", | |
20 "test_constants.mojom", | |
21 "test_native_types.mojom", | |
22 "test_structs.mojom", | |
23 "test_sync_methods.mojom", | |
24 "validation_test_interfaces.mojom", | |
25 ] | |
26 | |
27 mojom("test_interfaces") { | 7 mojom("test_interfaces") { |
28 testonly = true | 8 testonly = true |
29 sources = test_interfaces_mojom | 9 sources = [ |
| 10 "math_calculator.mojom", |
| 11 "no_module.mojom", |
| 12 "ping_service.mojom", |
| 13 "rect.mojom", |
| 14 "regression_tests.mojom", |
| 15 "sample_factory.mojom", |
| 16 "sample_interfaces.mojom", |
| 17 "sample_service.mojom", |
| 18 "scoping.mojom", |
| 19 "serialization_test_structs.mojom", |
| 20 "test_constants.mojom", |
| 21 "test_native_types.mojom", |
| 22 "test_structs.mojom", |
| 23 "test_sync_methods.mojom", |
| 24 "test_variant.mojom", |
| 25 "test_variant_import.mojom", |
| 26 "validation_test_interfaces.mojom", |
| 27 ] |
| 28 public_deps = [ |
| 29 ":test_mojom_import", |
| 30 ":test_mojom_import2", |
| 31 ] |
| 32 } |
| 33 |
| 34 mojom("test_mojom_import") { |
| 35 testonly = true |
| 36 sources = [ |
| 37 "sample_import.mojom", |
| 38 ] |
| 39 } |
| 40 |
| 41 mojom("test_mojom_import_wrapper") { |
| 42 testonly = true |
| 43 public_deps = [ |
| 44 ":test_mojom_import", |
| 45 ] |
| 46 } |
| 47 |
| 48 mojom("test_mojom_import_wrapper_wrapper") { |
| 49 testonly = true |
| 50 public_deps = [ |
| 51 ":test_mojom_import_wrapper", |
| 52 ] |
| 53 } |
| 54 |
| 55 mojom("test_mojom_import2") { |
| 56 testonly = true |
| 57 public_deps = [ |
| 58 ":test_mojom_import", |
| 59 ":test_mojom_import_wrapper_wrapper", |
| 60 ] |
| 61 sources = [ |
| 62 "sample_import2.mojom", |
| 63 ] |
30 } | 64 } |
31 | 65 |
32 mojom("test_struct_traits_interfaces") { | 66 mojom("test_struct_traits_interfaces") { |
33 testonly = true | 67 testonly = true |
34 sources = [ | 68 sources = [ |
35 "struct_with_traits.mojom", | 69 "struct_with_traits.mojom", |
36 ] | 70 ] |
37 | |
38 typemaps = [ "struct_with_traits.typemap" ] | |
39 } | 71 } |
40 | 72 |
41 mojom("test_interfaces_experimental") { | 73 mojom("test_interfaces_experimental") { |
42 testonly = true | 74 testonly = true |
43 sources = [ | 75 sources = [ |
44 "test_unions.mojom", | 76 "test_unions.mojom", |
45 ] | 77 ] |
46 } | 78 } |
47 | 79 |
48 mojom("test_associated_interfaces") { | 80 mojom("test_associated_interfaces") { |
(...skipping 13 matching lines...) Expand all Loading... |
62 ] | 94 ] |
63 } | 95 } |
64 | 96 |
65 mojom("versioning_test_client_interfaces") { | 97 mojom("versioning_test_client_interfaces") { |
66 testonly = true | 98 testonly = true |
67 sources = [ | 99 sources = [ |
68 "versioning_test_client.mojom", | 100 "versioning_test_client.mojom", |
69 ] | 101 ] |
70 } | 102 } |
71 | 103 |
72 mojom("test_interfaces_chromium") { | |
73 testonly = true | |
74 | |
75 sources = test_interfaces_mojom | |
76 | |
77 variant = "chromium" | |
78 typemaps = [ "chromium_test.typemap" ] | |
79 } | |
80 | |
81 mojom("test_interfaces_blink") { | |
82 testonly = true | |
83 | |
84 sources = test_interfaces_mojom | |
85 | |
86 variant = "blink" | |
87 typemaps = [ "blink_test.typemap" ] | |
88 } | |
89 | |
90 mojom("test_wtf_types") { | 104 mojom("test_wtf_types") { |
91 testonly = true | 105 testonly = true |
92 | 106 |
93 sources = [ | 107 sources = [ |
94 "test_wtf_types.mojom", | 108 "test_wtf_types.mojom", |
95 ] | 109 ] |
96 } | 110 } |
97 | 111 |
98 mojom("test_wtf_types_blink") { | 112 mojom("test_no_sources") { |
99 testonly = true | 113 testonly = true |
100 | 114 |
101 sources = [ | 115 public_deps = [ |
102 "test_wtf_types.mojom", | 116 ":test_interfaces", |
103 ] | 117 ] |
104 | |
105 for_blink = true | |
106 variant = "blink" | |
107 } | 118 } |
108 | |
109 mojom("test_variant") { | |
110 testonly = true | |
111 | |
112 sources = [ | |
113 "test_variant.mojom", | |
114 "test_variant_import.mojom", | |
115 ] | |
116 | |
117 variant = "variant_test" | |
118 } | |
OLD | NEW |