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

Side by Side Diff: mojo/edk/system/BUILD.gn

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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/edk/mojo_edk.gni ('k') | mojo/edk/system/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_edk.gni")
6
7 if (is_android) {
8 import("//build/config/android/config.gni")
9 import("//build/config/android/rules.gni")
10 }
11
12 config("system_config") {
13 defines = [
14 # Ensures that dependent projects import the core functions on Windows.
15 "MOJO_USE_SYSTEM_IMPL",
16 ]
17 }
18
19 component("system") {
20 output_name = "mojo_system_impl"
21
22 sources = [
23 "async_waiter.cc",
24 "async_waiter.h",
25 "awakable.h",
26 "awakable_list.cc",
27 "awakable_list.h",
28 "channel.cc",
29 "channel.h",
30 "channel_endpoint.cc",
31 "channel_endpoint.h",
32 "channel_endpoint_client.h",
33 "channel_endpoint_id.cc",
34 "channel_endpoint_id.h",
35 "channel_info.cc",
36 "channel_info.h",
37 "channel_manager.cc",
38 "channel_manager.h",
39 "configuration.cc",
40 "configuration.h",
41 "core.cc",
42 "core.h",
43 "data_pipe.cc",
44 "data_pipe.h",
45 "data_pipe_consumer_dispatcher.cc",
46 "data_pipe_consumer_dispatcher.h",
47 "data_pipe_producer_dispatcher.cc",
48 "data_pipe_producer_dispatcher.h",
49 "dispatcher.cc",
50 "dispatcher.h",
51 "endpoint_relayer.cc",
52 "endpoint_relayer.h",
53 "handle_signals_state.h",
54 "handle_table.cc",
55 "handle_table.h",
56 "incoming_endpoint.cc",
57 "incoming_endpoint.h",
58 "local_data_pipe.cc",
59 "local_data_pipe.h",
60 "local_message_pipe_endpoint.cc",
61 "local_message_pipe_endpoint.h",
62 "mapping_table.cc",
63 "mapping_table.h",
64 "memory.cc",
65 "memory.h",
66 "message_in_transit.cc",
67 "message_in_transit.h",
68 "message_in_transit_queue.cc",
69 "message_in_transit_queue.h",
70 "message_pipe.cc",
71 "message_pipe.h",
72 "message_pipe_dispatcher.cc",
73 "message_pipe_dispatcher.h",
74 "message_pipe_endpoint.cc",
75 "message_pipe_endpoint.h",
76 "options_validation.h",
77 "platform_handle_dispatcher.cc",
78 "platform_handle_dispatcher.h",
79 "proxy_message_pipe_endpoint.cc",
80 "proxy_message_pipe_endpoint.h",
81 "raw_channel.cc",
82 "raw_channel.h",
83 "raw_channel_posix.cc",
84 "raw_channel_win.cc",
85 "shared_buffer_dispatcher.cc",
86 "shared_buffer_dispatcher.h",
87 "simple_dispatcher.cc",
88 "simple_dispatcher.h",
89 "transport_data.cc",
90 "transport_data.h",
91 "unique_identifier.cc",
92 "unique_identifier.h",
93 "waiter.cc",
94 "waiter.h",
95 ]
96
97 defines = [
98 "MOJO_SYSTEM_IMPL_IMPLEMENTATION",
99 "MOJO_SYSTEM_IMPLEMENTATION",
100 ]
101
102 all_dependent_configs = [ ":system_config" ]
103
104 public_deps = [
105 "../embedder",
106 "../embedder:platform",
107 "../../public/c/system",
108 ]
109
110 deps = [
111 "//base",
112 "//base/third_party/dynamic_annotations",
113 "//crypto",
114 ]
115
116 allow_circular_includes_from = [ "../embedder" ]
117 }
118
119 mojo_edk_source_set("test_utils") {
120 testonly = true
121
122 sources = [
123 "test_utils.cc",
124 "test_utils.h",
125 ]
126
127 deps = [
128 "//base",
129 "//base/test:test_support",
130 ]
131 }
132
133 # GYP version: mojo/edk/mojo_edk.gyp:mojo_system_unittests
134 test("mojo_system_unittests") {
135 sources = [
136 "../test/multiprocess_test_helper_unittest.cc",
137 "awakable_list_unittest.cc",
138 "channel_endpoint_id_unittest.cc",
139 "channel_manager_unittest.cc",
140 "channel_unittest.cc",
141 "core_test_base.cc",
142 "core_test_base.h",
143 "core_unittest.cc",
144 "data_pipe_unittest.cc",
145 "dispatcher_unittest.cc",
146 "local_data_pipe_unittest.cc",
147 "memory_unittest.cc",
148 "message_pipe_dispatcher_unittest.cc",
149 "message_pipe_test_utils.cc",
150 "message_pipe_test_utils.h",
151 "message_pipe_unittest.cc",
152 "multiprocess_message_pipe_unittest.cc",
153 "options_validation_unittest.cc",
154 "platform_handle_dispatcher_unittest.cc",
155 "raw_channel_unittest.cc",
156 "remote_message_pipe_unittest.cc",
157 "run_all_unittests.cc",
158 "shared_buffer_dispatcher_unittest.cc",
159 "simple_dispatcher_unittest.cc",
160 "unique_identifier_unittest.cc",
161 "waiter_test_utils.cc",
162 "waiter_test_utils.h",
163 "waiter_unittest.cc",
164 ]
165
166 deps = [
167 ":system",
168 ":test_utils",
169 "../embedder:embedder_unittests",
170 "../test:test_support",
171 "//base",
172 "//base/test:test_support",
173 "//testing/gtest",
174 ]
175
176 if (is_android) {
177 deps += [ "//testing/android:native_test_native_code" ]
178 }
179
180 allow_circular_includes_from = [ "../embedder:embedder_unittests" ]
181 }
182
183 # GYP version: mojo/edk/mojo_edk.gyp:mojo_message_pipe_perftests
184 test("mojo_message_pipe_perftests") {
185 sources = [
186 "message_pipe_perftest.cc",
187 "message_pipe_test_utils.h",
188 "message_pipe_test_utils.cc",
189 ]
190
191 deps = [
192 ":system",
193 ":test_utils",
194 "../test:test_support",
195 "//base",
196 "//base/test:test_support",
197 "//base/test:test_support_perf",
198 "//testing/gtest",
199 ]
200 }
201
202 if (is_android) {
203 unittest_apk("mojo_system_unittests_apk") {
204 deps = [
205 ":mojo_system_unittests",
206 ]
207 unittests_dep = ":mojo_system_unittests"
208 }
209 }
OLDNEW
« no previous file with comments | « mojo/edk/mojo_edk.gni ('k') | mojo/edk/system/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698