Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: mojo/public/cpp/bindings/BUILD.gn

Issue 1412733002: C++ bindings: separate out serialization source set, have "mojom" targets optionally use serializat… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: address comments from previous patch Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/PRESUBMIT.py ('k') | mojo/public/cpp/bindings/interface_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("../../mojo_sdk.gni") 5 import("../../mojo_sdk.gni")
6 6
7 mojo_sdk_source_set("bindings") { 7 # This target provides source files and dependencies required for serializing
8 # mojom types and has no references to the rest of the mojo system. It needs to
9 # be linked with an |Environment| implementation for logging.
10 mojo_sdk_source_set("serialization") {
8 sources = [ 11 sources = [
9 "array.h", 12 "array.h",
10 "binding.h",
11 "interface_ptr.h",
12 "interface_ptr_info.h",
13 "interface_request.h",
14 "lib/array_internal.cc", 13 "lib/array_internal.cc",
15 "lib/array_internal.h", 14 "lib/array_internal.h",
16 "lib/array_serialization.h", 15 "lib/array_serialization.h",
17 "lib/bindings_internal.h", 16 "lib/bindings_internal.h",
18 "lib/bindings_serialization.cc", 17 "lib/bindings_serialization.cc",
19 "lib/bindings_serialization.h", 18 "lib/bindings_serialization.h",
20 "lib/bounds_checker.cc", 19 "lib/bounds_checker.cc",
21 "lib/bounds_checker.h", 20 "lib/bounds_checker.h",
22 "lib/buffer.h", 21 "lib/buffer.h",
22 "lib/fixed_buffer.cc",
23 "lib/fixed_buffer.h",
24 "lib/iterator_util.h",
25 "lib/map_data_internal.h",
26 "lib/map_internal.h",
27 "lib/map_serialization.h",
28 "lib/string_serialization.cc",
29 "lib/string_serialization.h",
30 "lib/template_util.h",
31 "lib/union_accessor.h",
32 "lib/validate_params.h",
33 "lib/validation_errors.cc",
34 "lib/validation_errors.h",
35 "lib/validation_util.cc",
36 "lib/validation_util.h",
37 "map.h",
38 "string.h",
39 "struct_ptr.h",
40 "type_converter.h",
41 ]
42
43 public_deps = [
44 ":callback",
45 ]
46
47 mojo_sdk_public_deps = [
48 "mojo/public/cpp/environment",
49 "mojo/public/cpp/system",
50 ]
51 }
52
53 mojo_sdk_source_set("bindings") {
54 sources = [
55 "binding.h",
56 "interface_ptr.h",
57 "interface_ptr_info.h",
58 "interface_request.h",
23 "lib/connector.cc", 59 "lib/connector.cc",
24 "lib/connector.h", 60 "lib/connector.h",
25 "lib/control_message_handler.cc", 61 "lib/control_message_handler.cc",
26 "lib/control_message_handler.h", 62 "lib/control_message_handler.h",
27 "lib/control_message_proxy.cc", 63 "lib/control_message_proxy.cc",
28 "lib/control_message_proxy.h", 64 "lib/control_message_proxy.h",
29 "lib/filter_chain.cc", 65 "lib/filter_chain.cc",
30 "lib/filter_chain.h", 66 "lib/filter_chain.h",
31 "lib/fixed_buffer.cc",
32 "lib/fixed_buffer.h",
33 "lib/interface_ptr_internal.h", 67 "lib/interface_ptr_internal.h",
34 "lib/iterator_util.h",
35 "lib/map_data_internal.h",
36 "lib/map_internal.h",
37 "lib/map_serialization.h",
38 "lib/message.cc", 68 "lib/message.cc",
39 "lib/message_builder.cc", 69 "lib/message_builder.cc",
40 "lib/message_builder.h", 70 "lib/message_builder.h",
41 "lib/message_filter.cc", 71 "lib/message_filter.cc",
42 "lib/message_header_validator.cc", 72 "lib/message_header_validator.cc",
43 "lib/message_header_validator.h", 73 "lib/message_header_validator.h",
44 "lib/message_internal.h", 74 "lib/message_internal.h",
75 "lib/message_validation.cc",
76 "lib/message_validation.h",
45 "lib/no_interface.cc", 77 "lib/no_interface.cc",
46 "lib/router.cc", 78 "lib/router.cc",
47 "lib/router.h", 79 "lib/router.h",
48 "lib/string_serialization.cc",
49 "lib/string_serialization.h",
50 "lib/union_accessor.h",
51 "lib/validate_params.h",
52 "lib/validation_errors.cc",
53 "lib/validation_errors.h",
54 "lib/validation_util.cc",
55 "lib/validation_util.h",
56 "map.h",
57 "message.h", 80 "message.h",
58 "message_filter.h", 81 "message_filter.h",
59 "no_interface.h", 82 "no_interface.h",
60 "string.h",
61 "strong_binding.h", 83 "strong_binding.h",
62 "struct_ptr.h",
63 "type_converter.h",
64 ] 84 ]
65 85
66 deps = [ 86 public_deps = [
67 ":callback", 87 ":serialization",
68 ] 88 ]
69 89
70 mojo_sdk_deps = [ 90 mojo_sdk_deps = [ "mojo/public/interfaces/bindings:bindings_cpp_sources" ]
71 "mojo/public/cpp/environment",
72 "mojo/public/cpp/system",
73 "mojo/public/interfaces/bindings:bindings_cpp_sources",
74 ]
75 } 91 }
76 92
77 mojo_sdk_source_set("callback") { 93 mojo_sdk_source_set("callback") {
78 sources = [ 94 sources = [
79 "callback.h", 95 "callback.h",
80 "lib/callback_internal.h", 96 "lib/callback_internal.h",
81 "lib/shared_data.h", 97 "lib/shared_data.h",
82 "lib/shared_ptr.h", 98 "lib/shared_ptr.h",
83 "lib/template_util.h", 99 "lib/template_util.h",
84 ] 100 ]
85 101
86 mojo_sdk_deps = [ "mojo/public/cpp/system" ] 102 mojo_sdk_deps = [ "mojo/public/cpp/system" ]
87 } 103 }
OLDNEW
« no previous file with comments | « mojo/PRESUBMIT.py ('k') | mojo/public/cpp/bindings/interface_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698