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 mojom("test_interfaces") { | 7 mojom("test_interfaces") { |
8 testonly = true | 8 testonly = true |
9 sources = [ | 9 sources = [ |
10 "math_calculator.mojom", | 10 "math_calculator.mojom", |
11 "no_module.mojom", | 11 "no_module.mojom", |
12 "ping_service.mojom", | 12 "ping_service.mojom", |
13 "rect.mojom", | 13 "rect.mojom", |
14 "regression_tests.mojom", | 14 "regression_tests.mojom", |
15 "sample_factory.mojom", | 15 "sample_factory.mojom", |
16 "sample_import.mojom", | 16 "sample_import.mojom", |
17 "sample_import2.mojom", | 17 "sample_import2.mojom", |
18 "sample_interfaces.mojom", | 18 "sample_interfaces.mojom", |
19 "sample_service.mojom", | 19 "sample_service.mojom", |
20 "scoping.mojom", | 20 "scoping.mojom", |
21 "serialization_test_structs.mojom", | 21 "serialization_test_structs.mojom", |
22 "test_constants.mojom", | 22 "test_constants.mojom", |
23 "test_native_types.mojom", | 23 "test_native_types.mojom", |
24 "test_structs.mojom", | 24 "test_structs.mojom", |
25 "test_sync_methods.mojom", | 25 "test_sync_methods.mojom", |
26 "validation_test_interfaces.mojom", | 26 "validation_test_interfaces.mojom", |
27 ] | 27 ] |
28 | |
29 with_environment = false | |
30 } | 28 } |
31 | 29 |
32 mojom("test_struct_traits_interfaces") { | 30 mojom("test_struct_traits_interfaces") { |
33 testonly = true | 31 testonly = true |
34 sources = [ | 32 sources = [ |
35 "struct_with_traits.mojom", | 33 "struct_with_traits.mojom", |
36 ] | 34 ] |
37 | 35 |
38 typemaps = [ "struct_with_traits.typemap" ] | 36 typemaps = [ "struct_with_traits.typemap" ] |
39 | |
40 with_environment = false | |
41 } | 37 } |
42 | 38 |
43 mojom("test_interfaces_experimental") { | 39 mojom("test_interfaces_experimental") { |
44 testonly = true | 40 testonly = true |
45 sources = [ | 41 sources = [ |
46 "test_unions.mojom", | 42 "test_unions.mojom", |
47 ] | 43 ] |
48 | |
49 with_environment = false | |
50 } | 44 } |
51 | 45 |
52 mojom("test_associated_interfaces") { | 46 mojom("test_associated_interfaces") { |
53 # These files are not included in the test_interfaces target because | 47 # These files are not included in the test_interfaces target because |
54 # associated interfaces are not supported by all bindings languages yet. | 48 # associated interfaces are not supported by all bindings languages yet. |
55 testonly = true | 49 testonly = true |
56 sources = [ | 50 sources = [ |
57 "test_associated_interfaces.mojom", | 51 "test_associated_interfaces.mojom", |
58 "validation_test_associated_interfaces.mojom", | 52 "validation_test_associated_interfaces.mojom", |
59 ] | 53 ] |
60 | |
61 with_environment = false | |
62 } | 54 } |
63 | 55 |
64 mojom("versioning_test_service_interfaces") { | 56 mojom("versioning_test_service_interfaces") { |
65 # FIXME: Dart packaged applications cannot depend on testonly mojoms. | 57 # FIXME: Dart packaged applications cannot depend on testonly mojoms. |
66 # testonly = true | 58 # testonly = true |
67 sources = [ | 59 sources = [ |
68 "versioning_test_service.mojom", | 60 "versioning_test_service.mojom", |
69 ] | 61 ] |
70 | |
71 with_environment = false | |
72 } | 62 } |
73 | 63 |
74 mojom("versioning_test_client_interfaces") { | 64 mojom("versioning_test_client_interfaces") { |
75 # FIXME: Dart packaged applications cannot depend on testonly mojoms. | 65 # FIXME: Dart packaged applications cannot depend on testonly mojoms. |
76 # testonly = true | 66 # testonly = true |
77 sources = [ | 67 sources = [ |
78 "versioning_test_client.mojom", | 68 "versioning_test_client.mojom", |
79 ] | 69 ] |
80 | |
81 with_environment = false | |
82 } | 70 } |
83 | 71 |
84 mojom("test_interfaces_chromium") { | 72 mojom("test_interfaces_chromium") { |
85 testonly = true | 73 testonly = true |
86 | 74 |
87 sources = [ | 75 sources = [ |
88 "test_native_types.mojom", | 76 "test_native_types.mojom", |
89 ] | 77 ] |
90 | 78 |
91 variant = "chromium" | 79 variant = "chromium" |
92 typemaps = [ "chromium_test.typemap" ] | 80 typemaps = [ "chromium_test.typemap" ] |
93 | 81 |
94 with_environment = false | |
95 | |
96 public_deps = [ | 82 public_deps = [ |
97 ":test_interfaces", | 83 ":test_interfaces", |
98 ] | 84 ] |
99 } | 85 } |
100 | 86 |
101 mojom("test_interfaces_blink") { | 87 mojom("test_interfaces_blink") { |
102 testonly = true | 88 testonly = true |
103 | 89 |
104 sources = [ | 90 sources = [ |
105 "test_native_types.mojom", | 91 "test_native_types.mojom", |
106 ] | 92 ] |
107 | 93 |
108 variant = "blink" | 94 variant = "blink" |
109 typemaps = [ "blink_test.typemap" ] | 95 typemaps = [ "blink_test.typemap" ] |
110 | 96 |
111 with_environment = false | |
112 | |
113 public_deps = [ | 97 public_deps = [ |
114 ":test_interfaces", | 98 ":test_interfaces", |
115 ] | 99 ] |
116 } | 100 } |
OLD | NEW |