Chromium Code Reviews| 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("../../mojo_sdk.gni") | 5 import("../../mojo_sdk.gni") |
| 6 | 6 |
| 7 mojo_sdk_source_set("bindings") { | 7 mojo_sdk_source_set("serialization_base") { |
|
viettrungluu
2015/10/19 19:37:54
This target deserves an explanatory comment.
vardhan
2015/10/19 23:18:30
Done.
| |
| 8 sources = [ | 8 sources = [ |
| 9 "array.h", | 9 "array.h", |
| 10 "binding.h", | 10 "interface_request.h", # for array_serialization.h |
|
viettrungluu
2015/10/19 19:37:54
Is it possible to avoid this (maybe by splitting u
vardhan
2015/10/19 23:18:31
The simpliest way is that I could forward declare
| |
| 11 "interface_ptr.h", | |
| 12 "interface_ptr_info.h", | |
| 13 "interface_request.h", | |
| 14 "lib/array_internal.cc", | 11 "lib/array_internal.cc", |
| 15 "lib/array_internal.h", | 12 "lib/array_internal.h", |
| 16 "lib/array_serialization.h", | 13 "lib/array_serialization.h", |
| 17 "lib/bindings_internal.h", | 14 "lib/bindings_internal.h", |
| 18 "lib/bindings_serialization.cc", | 15 "lib/bindings_serialization.cc", |
| 19 "lib/bindings_serialization.h", | 16 "lib/bindings_serialization.h", |
| 20 "lib/bounds_checker.cc", | 17 "lib/bounds_checker.cc", |
| 21 "lib/bounds_checker.h", | 18 "lib/bounds_checker.h", |
| 22 "lib/buffer.h", | 19 "lib/buffer.h", |
| 23 "lib/connector.cc", | |
| 24 "lib/connector.h", | |
| 25 "lib/control_message_handler.cc", | |
| 26 "lib/control_message_handler.h", | |
| 27 "lib/control_message_proxy.cc", | |
| 28 "lib/control_message_proxy.h", | |
| 29 "lib/filter_chain.cc", | |
| 30 "lib/filter_chain.h", | |
| 31 "lib/fixed_buffer.cc", | 20 "lib/fixed_buffer.cc", |
| 32 "lib/fixed_buffer.h", | 21 "lib/fixed_buffer.h", |
| 33 "lib/interface_ptr_internal.h", | |
| 34 "lib/iterator_util.h", | 22 "lib/iterator_util.h", |
| 35 "lib/map_data_internal.h", | 23 "lib/map_data_internal.h", |
| 36 "lib/map_internal.h", | 24 "lib/map_internal.h", |
| 37 "lib/map_serialization.h", | 25 "lib/map_serialization.h", |
| 38 "lib/message.cc", | 26 "lib/message_internal.h", # for message.h? |
| 39 "lib/message_builder.cc", | |
| 40 "lib/message_builder.h", | |
| 41 "lib/message_filter.cc", | |
| 42 "lib/message_header_validator.cc", | |
| 43 "lib/message_header_validator.h", | |
| 44 "lib/message_internal.h", | |
| 45 "lib/no_interface.cc", | |
| 46 "lib/router.cc", | |
| 47 "lib/router.h", | |
| 48 "lib/string_serialization.cc", | 27 "lib/string_serialization.cc", |
| 49 "lib/string_serialization.h", | 28 "lib/string_serialization.h", |
| 29 "lib/template_util.h", | |
| 50 "lib/union_accessor.h", | 30 "lib/union_accessor.h", |
| 51 "lib/validate_params.h", | 31 "lib/validate_params.h", |
| 52 "lib/validation_errors.cc", | 32 "lib/validation_errors.cc", |
| 53 "lib/validation_errors.h", | 33 "lib/validation_errors.h", |
| 54 "lib/validation_util.cc", | 34 "lib/validation_util.cc", |
| 55 "lib/validation_util.h", | 35 "lib/validation_util.h", |
| 56 "map.h", | 36 "map.h", |
| 57 "message.h", | 37 "message.h", # for validation_util.h |
| 58 "message_filter.h", | |
| 59 "no_interface.h", | |
| 60 "string.h", | 38 "string.h", |
| 61 "strong_binding.h", | |
| 62 "struct_ptr.h", | 39 "struct_ptr.h", |
| 63 "type_converter.h", | 40 "type_converter.h", |
| 64 ] | 41 ] |
| 65 | 42 |
| 66 deps = [ | 43 public_deps = [ |
| 67 ":callback", | 44 ":callback", |
| 68 ] | 45 ] |
| 69 | 46 |
| 70 mojo_sdk_deps = [ | 47 mojo_sdk_public_deps = [ |
| 71 "mojo/public/cpp/environment", | 48 "mojo/public/cpp/environment", |
| 72 "mojo/public/cpp/system", | 49 "mojo/public/cpp/system", |
| 73 "mojo/public/interfaces/bindings:bindings_cpp_sources", | |
| 74 ] | 50 ] |
| 75 } | 51 } |
| 76 | 52 |
| 53 mojo_sdk_source_set("serialization") { | |
|
viettrungluu
2015/10/19 19:37:54
So does this one.
vardhan
2015/10/19 23:18:31
Done.
| |
| 54 public_deps = [ | |
| 55 ":serialization_base", | |
| 56 ] | |
| 57 | |
| 58 mojo_sdk_deps = [ "mojo/public/cpp/environment:logging_only" ] | |
|
viettrungluu
2015/10/19 19:37:54
Though it's probably better to leave it up to the
vardhan
2015/10/19 23:18:30
Hm.. If I do this, then a plain-old-executable can
vardhan
2015/10/20 18:45:57
Nevermind, I misunderstood how mojo_sdk_* is used,
| |
| 59 } | |
| 60 | |
| 61 mojo_sdk_source_set("bindings") { | |
| 62 sources = [ | |
| 63 "binding.h", | |
| 64 "interface_ptr.h", | |
| 65 "interface_ptr_info.h", | |
| 66 "interface_request.h", | |
| 67 "lib/connector.cc", | |
| 68 "lib/connector.h", | |
| 69 "lib/control_message_handler.cc", | |
| 70 "lib/control_message_handler.h", | |
| 71 "lib/control_message_proxy.cc", | |
| 72 "lib/control_message_proxy.h", | |
| 73 "lib/filter_chain.cc", | |
| 74 "lib/filter_chain.h", | |
| 75 "lib/interface_ptr_internal.h", | |
| 76 "lib/message.cc", | |
| 77 "lib/message_builder.cc", | |
| 78 "lib/message_builder.h", | |
| 79 "lib/message_filter.cc", | |
| 80 "lib/message_header_validator.cc", | |
| 81 "lib/message_header_validator.h", | |
| 82 "lib/no_interface.cc", | |
| 83 "lib/router.cc", | |
| 84 "lib/router.h", | |
| 85 "message_filter.h", | |
| 86 "no_interface.h", | |
| 87 "strong_binding.h", | |
| 88 ] | |
| 89 | |
| 90 public_deps = [ | |
| 91 ":serialization_base", | |
| 92 ] | |
| 93 | |
| 94 mojo_sdk_deps = [ "mojo/public/interfaces/bindings:bindings_cpp_sources" ] | |
| 95 } | |
| 96 | |
| 77 mojo_sdk_source_set("callback") { | 97 mojo_sdk_source_set("callback") { |
| 78 sources = [ | 98 sources = [ |
| 79 "callback.h", | 99 "callback.h", |
| 80 "lib/callback_internal.h", | 100 "lib/callback_internal.h", |
| 81 "lib/shared_data.h", | 101 "lib/shared_data.h", |
| 82 "lib/shared_ptr.h", | 102 "lib/shared_ptr.h", |
| 83 "lib/template_util.h", | 103 "lib/template_util.h", |
| 84 ] | 104 ] |
| 85 | 105 |
| 86 mojo_sdk_deps = [ "mojo/public/cpp/system" ] | 106 mojo_sdk_deps = [ "mojo/public/cpp/system" ] |
| 87 } | 107 } |
| OLD | NEW |