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.
5 import("../mojo_edk.gni")
8 import("//build/config/android/config.gni")
9 import("//build/config/android/rules.gni")
12 config("system_config") {
14 # Ensures that dependent projects import the core functions on Windows.
15 "MOJO_USE_SYSTEM_IMPL",
20 output_name = "mojo_system_impl"
28 "channel_endpoint.cc",
30 "channel_endpoint_client.h",
31 "channel_endpoint_id.cc",
32 "channel_endpoint_id.h",
43 "data_pipe_consumer_dispatcher.cc",
44 "data_pipe_consumer_dispatcher.h",
45 "data_pipe_producer_dispatcher.cc",
46 "data_pipe_producer_dispatcher.h",
49 "endpoint_relayer.cc",
51 "handle_signals_state.h",
56 "local_message_pipe_endpoint.cc",
57 "local_message_pipe_endpoint.h",
62 "message_in_transit.cc",
63 "message_in_transit.h",
64 "message_in_transit_queue.cc",
65 "message_in_transit_queue.h",
68 "message_pipe_dispatcher.cc",
69 "message_pipe_dispatcher.h",
70 "message_pipe_endpoint.cc",
71 "message_pipe_endpoint.h",
72 "options_validation.h",
73 "platform_handle_dispatcher.cc",
74 "platform_handle_dispatcher.h",
75 "proxy_message_pipe_endpoint.cc",
76 "proxy_message_pipe_endpoint.h",
79 "raw_channel_posix.cc",
81 "shared_buffer_dispatcher.cc",
82 "shared_buffer_dispatcher.h",
83 "simple_dispatcher.cc",
84 "simple_dispatcher.h",
92 "MOJO_SYSTEM_IMPL_IMPLEMENTATION",
93 "MOJO_SYSTEM_IMPLEMENTATION",
96 all_dependent_configs = [ ":system_config" ]
100 "../embedder:platform",
101 "../../public/c/system",
106 "//base/third_party/dynamic_annotations",
109 allow_circular_includes_from = [ "../embedder" ]
112 mojo_edk_source_set("test_utils") {
122 "//base/test:test_support",
126 # GYP version: mojo/edk/mojo_edk.gyp:mojo_system_unittests
127 test("mojo_system_unittests") {
129 "../test/multiprocess_test_helper_unittest.cc",
130 "awakable_list_unittest.cc",
131 "channel_endpoint_id_unittest.cc",
132 "channel_manager_unittest.cc",
133 "channel_unittest.cc",
137 "data_pipe_unittest.cc",
138 "dispatcher_unittest.cc",
139 "local_data_pipe_unittest.cc",
140 "memory_unittest.cc",
141 "message_pipe_dispatcher_unittest.cc",
142 "message_pipe_test_utils.cc",
143 "message_pipe_test_utils.h",
144 "message_pipe_unittest.cc",
145 "multiprocess_message_pipe_unittest.cc",
146 "options_validation_unittest.cc",
147 "platform_handle_dispatcher_unittest.cc",
148 "raw_channel_unittest.cc",
149 "remote_message_pipe_unittest.cc",
150 "run_all_unittests.cc",
151 "shared_buffer_dispatcher_unittest.cc",
152 "simple_dispatcher_unittest.cc",
153 "waiter_test_utils.cc",
154 "waiter_test_utils.h",
155 "waiter_unittest.cc",
161 "../embedder:embedder_unittests",
162 "../test:test_support",
164 "//base/test:test_support",
169 deps += [ "//testing/android:native_test_native_code" ]
172 allow_circular_includes_from = [ "../embedder:embedder_unittests" ]
175 # GYP version: mojo/edk/mojo_edk.gyp:mojo_message_pipe_perftests
176 test("mojo_message_pipe_perftests") {
178 "message_pipe_perftest.cc",
179 "message_pipe_test_utils.h",
180 "message_pipe_test_utils.cc",
186 "../test:test_support",
188 "//base/test:test_support",
189 "//base/test:test_support_perf",
195 unittest_apk("mojo_system_unittests_apk") {
197 ":mojo_system_unittests",
199 unittests_dep = ":mojo_system_unittests"