OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("../../mojo_sdk.gni") | |
6 | |
7 group("bindings") { | |
8 public_deps = [ | |
9 ":core", | |
10 ":utility", | |
11 ] | |
12 } | |
13 | |
14 # This target provides source files and dependencies required for serializing | |
15 # mojom types and has no references to the rest of the mojo system. It needs to | |
16 # be linked with an |Environment| implementation for logging. | |
17 mojo_sdk_source_set("serialization") { | |
18 sources = [ | |
19 "array.h", | |
20 "formatting.h", | |
21 "lib/array_internal.cc", | |
22 "lib/array_internal.h", | |
23 "lib/array_serialization.h", | |
24 "lib/bindings_internal.h", | |
25 "lib/bindings_serialization.cc", | |
26 "lib/bindings_serialization.h", | |
27 "lib/bounds_checker.cc", | |
28 "lib/bounds_checker.h", | |
29 "lib/buffer.h", | |
30 "lib/fixed_buffer.cc", | |
31 "lib/fixed_buffer.h", | |
32 "lib/iterator_util.h", | |
33 "lib/map_data_internal.h", | |
34 "lib/map_internal.h", | |
35 "lib/map_serialization.h", | |
36 "lib/string_serialization.cc", | |
37 "lib/string_serialization.h", | |
38 "lib/template_util.h", | |
39 "lib/union_accessor.h", | |
40 "lib/validate_params.h", | |
41 "lib/validation_errors.cc", | |
42 "lib/validation_errors.h", | |
43 "lib/validation_util.cc", | |
44 "lib/validation_util.h", | |
45 "map.h", | |
46 "string.h", | |
47 "struct_ptr.h", | |
48 "type_converter.h", | |
49 ] | |
50 | |
51 public_deps = [ | |
52 ":callback", | |
53 ] | |
54 | |
55 mojo_sdk_public_deps = [ | |
56 "mojo/public/cpp/environment", | |
57 "mojo/public/cpp/system", | |
58 ] | |
59 } | |
60 | |
61 # This target provides everything needed to build (and theoretically use) all | |
62 # C++ generated from mojom files. | |
63 mojo_sdk_source_set("core") { | |
64 sources = [ | |
65 "binding.h", | |
66 "interface_handle.h", | |
67 "interface_ptr.h", | |
68 "interface_request.h", | |
69 "lib/connector.cc", | |
70 "lib/connector.h", | |
71 "lib/control_message_handler.cc", | |
72 "lib/control_message_handler.h", | |
73 "lib/control_message_proxy.cc", | |
74 "lib/control_message_proxy.h", | |
75 "lib/interface_ptr_internal.h", | |
76 "lib/message.cc", | |
77 "lib/message_builder.cc", | |
78 "lib/message_builder.h", | |
79 "lib/message_header_validator.cc", | |
80 "lib/message_header_validator.h", | |
81 "lib/message_internal.h", | |
82 "lib/message_validation.cc", | |
83 "lib/message_validation.h", | |
84 "lib/message_validator.cc", | |
85 "lib/no_interface.cc", | |
86 "lib/router.cc", | |
87 "lib/router.h", | |
88 "lib/synchronous_connector.cc", | |
89 "lib/synchronous_connector.h", | |
90 "message.h", | |
91 "message_validator.h", | |
92 "no_interface.h", | |
93 "synchronous_interface_ptr.h", | |
94 ] | |
95 | |
96 public_deps = [ | |
97 ":callback", | |
98 ":serialization", | |
99 ] | |
100 | |
101 mojo_sdk_deps = [ "mojo/public/interfaces/bindings:bindings_cpp_sources" ] | |
102 } | |
103 | |
104 mojo_sdk_source_set("utility") { | |
105 sources = [ | |
106 "binding_set.h", | |
107 "interface_ptr_set.h", | |
108 "strong_binding.h", | |
109 "strong_binding_set.h", | |
110 ] | |
111 | |
112 public_deps = [ | |
113 ":core", | |
114 ] | |
115 | |
116 mojo_sdk_deps = [ "mojo/public/cpp/system" ] | |
117 } | |
118 | |
119 mojo_sdk_source_set("callback") { | |
120 sources = [ | |
121 "callback.h", | |
122 "lib/callback_internal.h", | |
123 "lib/shared_data.h", | |
124 "lib/shared_ptr.h", | |
125 "lib/template_util.h", | |
126 ] | |
127 | |
128 mojo_sdk_deps = [ "mojo/public/cpp/system" ] | |
129 } | |
OLD | NEW |