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 "validation_test_interfaces.mojom", | |
25 ] | |
26 public_deps = [ | |
27 ":test_mojom_import", | |
28 ":test_mojom_import2", | |
29 ] | |
30 } | |
31 | |
32 mojom("test_mojom_import") { | |
33 testonly = true | |
34 sources = [ | |
35 "sample_import.mojom", | |
36 ] | |
37 } | |
38 | |
39 mojom("test_mojom_import_wrapper") { | |
40 testonly = true | |
41 public_deps = [ | |
42 ":test_mojom_import", | |
43 ] | |
44 } | |
45 | |
46 mojom("test_mojom_import_wrapper_wrapper") { | |
47 testonly = true | |
48 public_deps = [ | |
49 ":test_mojom_import_wrapper", | |
50 ] | |
51 } | |
52 | |
53 mojom("test_mojom_import2") { | |
54 testonly = true | |
55 public_deps = [ | |
56 ":test_mojom_import", | |
57 ":test_mojom_import_wrapper_wrapper", | |
58 ] | |
59 sources = [ | |
yzshen1
2016/04/08 19:58:25
nit: according to GN style guide, sources should b
Sam McNally
2016/04/11 04:40:27
Done.
| |
60 "sample_import2.mojom", | |
61 ] | |
30 } | 62 } |
31 | 63 |
32 mojom("test_struct_traits_interfaces") { | 64 mojom("test_struct_traits_interfaces") { |
33 testonly = true | 65 testonly = true |
34 sources = [ | 66 sources = [ |
35 "struct_with_traits.mojom", | 67 "struct_with_traits.mojom", |
36 ] | 68 ] |
37 | |
38 typemaps = [ "struct_with_traits.typemap" ] | |
39 } | 69 } |
40 | 70 |
41 mojom("test_interfaces_experimental") { | 71 mojom("test_interfaces_experimental") { |
42 testonly = true | 72 testonly = true |
43 sources = [ | 73 sources = [ |
44 "test_unions.mojom", | 74 "test_unions.mojom", |
45 ] | 75 ] |
46 } | 76 } |
47 | 77 |
48 mojom("test_associated_interfaces") { | 78 mojom("test_associated_interfaces") { |
(...skipping 13 matching lines...) Expand all Loading... | |
62 ] | 92 ] |
63 } | 93 } |
64 | 94 |
65 mojom("versioning_test_client_interfaces") { | 95 mojom("versioning_test_client_interfaces") { |
66 testonly = true | 96 testonly = true |
67 sources = [ | 97 sources = [ |
68 "versioning_test_client.mojom", | 98 "versioning_test_client.mojom", |
69 ] | 99 ] |
70 } | 100 } |
71 | 101 |
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") { | 102 mojom("test_wtf_types") { |
91 testonly = true | 103 testonly = true |
92 | 104 |
93 sources = [ | 105 sources = [ |
94 "test_wtf_types.mojom", | 106 "test_wtf_types.mojom", |
95 ] | 107 ] |
96 } | 108 } |
97 | 109 |
98 mojom("test_wtf_types_blink") { | 110 mojom("test_no_sources") { |
99 testonly = true | 111 testonly = true |
100 | 112 |
101 sources = [ | 113 public_deps = [ |
102 "test_wtf_types.mojom", | 114 ":test_interfaces", |
103 ] | 115 ] |
104 | |
105 for_blink = true | |
106 variant = "blink" | |
107 } | 116 } |
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 |