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

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

Issue 1554443003: Stop linking in the old Mojo EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and fix new flaky test Created 4 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/embedder/entrypoints.cc ('k') | mojo/edk/system/core_test_base.cc » ('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("//testing/test.gni") 5 import("//testing/test.gni")
6 import("../../../mojo/public/tools/bindings/mojom.gni") 6 import("../../../mojo/public/tools/bindings/mojom.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/config.gni") 9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
11 } 11 }
12 12
13 config("system_config") { 13 config("system_config") {
14 defines = [ 14 defines = [
15 # Ensures that dependent projects import the core functions on Windows. 15 # Ensures that dependent projects import the core functions on Windows.
16 "MOJO_USE_SYSTEM_IMPL", 16 "MOJO_USE_SYSTEM_IMPL",
17 ] 17 ]
18 } 18 }
19 19
20 static_library("system") { 20 component("system") {
21 # TODO(use_chrome_edk): this should be a component to match third_party, 21 output_name = "mojo_system_impl"
22 # but since third_party includes it, we either make it a static library
23 # or we have to change the export macros to be different than third_party.
24 #component("system") {
25 # TODO(use_chrome_edk): remove "2"
26 output_name = "mojo_system_impl2"
27 22
28 sources = [ 23 sources = [
29 "async_waiter.cc", 24 "async_waiter.cc",
30 "async_waiter.h", 25 "async_waiter.h",
31 "awakable.h", 26 "awakable.h",
32 "awakable_list.cc", 27 "awakable_list.cc",
33 "awakable_list.h", 28 "awakable_list.h",
34 "broker.h", 29 "broker.h",
35 "broker_messages.h", 30 "broker_messages.h",
36 "broker_state.cc", 31 "broker_state.cc",
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), 102 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()),
108 # which is uninteresting. 103 # which is uninteresting.
109 } 104 }
110 105
111 allow_circular_includes_from = [ "../embedder" ] 106 allow_circular_includes_from = [ "../embedder" ]
112 } 107 }
113 108
114 group("tests") { 109 group("tests") {
115 testonly = true 110 testonly = true
116 deps = [ 111 deps = [
117 # TODO(use_chrome_edk): remove "2" 112 ":mojo_message_pipe_perftests",
118 ":mojo_message_pipe_perftests2", 113 ":mojo_system_unittests",
119 ":mojo_system_unittests2",
120 ] 114 ]
121 } 115 }
122 116
123 source_set("test_utils") { 117 source_set("test_utils") {
124 testonly = true 118 testonly = true
125 119
126 sources = [ 120 sources = [
127 "test_utils.cc", 121 "test_utils.cc",
128 "test_utils.h", 122 "test_utils.h",
129 ] 123 ]
130 124
131 public_deps = [ 125 public_deps = [
132 "//mojo/public/c/system", 126 "//mojo/public/c/system",
133 "//mojo/public/cpp/system", 127 "//mojo/public/cpp/system",
134 ] 128 ]
135 129
136 deps = [ 130 deps = [
137 "//base", 131 "//base",
138 "//base/test:test_support", 132 "//base/test:test_support",
139 "//mojo/edk/test:test_support", 133 "//mojo/edk/test:test_support",
140 "//testing/gtest:gtest", 134 "//testing/gtest:gtest",
141 ] 135 ]
142 } 136 }
143 137
144 # TODO(use_chrome_edk): remove "2" 138 test("mojo_system_unittests") {
145 test("mojo_system_unittests2") {
146 sources = [ 139 sources = [
147 "../test/multiprocess_test_helper_unittest.cc", 140 "../test/multiprocess_test_helper_unittest.cc",
148 "awakable_list_unittest.cc", 141 "awakable_list_unittest.cc",
149 "core_test_base.cc", 142 "core_test_base.cc",
150 "core_test_base.h", 143 "core_test_base.h",
151 "core_unittest.cc", 144 "core_unittest.cc",
152 "data_pipe_unittest.cc", 145 "data_pipe_unittest.cc",
153 "dispatcher_unittest.cc", 146 "dispatcher_unittest.cc",
154 "message_in_transit_queue_unittest.cc", 147 "message_in_transit_queue_unittest.cc",
155 "message_in_transit_test_utils.cc", 148 "message_in_transit_test_utils.cc",
156 "message_in_transit_test_utils.h", 149 "message_in_transit_test_utils.h",
157 "message_pipe_test_utils.cc", 150 "message_pipe_test_utils.cc",
158 "message_pipe_test_utils.h", 151 "message_pipe_test_utils.h",
159 "message_pipe_unittest.cc", 152 "message_pipe_unittest.cc",
160 "multiprocess_message_pipe_unittest.cc", 153 "multiprocess_message_pipe_unittest.cc",
161 "options_validation_unittest.cc", 154 "options_validation_unittest.cc",
162 "platform_handle_dispatcher_unittest.cc", 155 "platform_handle_dispatcher_unittest.cc",
163 "raw_channel_unittest.cc", 156 "raw_channel_unittest.cc",
164 "shared_buffer_dispatcher_unittest.cc", 157 "shared_buffer_dispatcher_unittest.cc",
165 "simple_dispatcher_unittest.cc", 158 "simple_dispatcher_unittest.cc",
166 "wait_set_dispatcher_unittest.cc", 159 "wait_set_dispatcher_unittest.cc",
167 "waiter_test_utils.cc", 160 "waiter_test_utils.cc",
168 "waiter_test_utils.h", 161 "waiter_test_utils.h",
169 "waiter_unittest.cc", 162 "waiter_unittest.cc",
170 ] 163 ]
171 164
172 deps = [ 165 deps = [
173 ":test_utils", 166 ":test_utils",
174
175 # TODO(use_chrome_edk): remove "2"
176 "../../../mojo/public/cpp/environment:standalone", 167 "../../../mojo/public/cpp/environment:standalone",
177 "../embedder:embedder_unittests2", 168 "../embedder:embedder_unittests",
178 "../test:test_support", 169 "../test:test_support",
179 "//base", 170 "//base",
180 "//base/test:test_support", 171 "//base/test:test_support",
172 "//mojo/edk/system",
181 "//mojo/edk/test:run_all_unittests", 173 "//mojo/edk/test:run_all_unittests",
182 "//testing/gtest", 174 "//testing/gtest",
183
184 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are
185 # declared in third party only for now.
186 "//third_party/mojo/src/mojo/edk/system",
187 ] 175 ]
188 176
189 # TODO(use_chrome_edk): remove "2" 177 allow_circular_includes_from = [ "../embedder:embedder_unittests" ]
190 allow_circular_includes_from = [ "../embedder:embedder_unittests2" ]
191 } 178 }
192 179
193 # TODO(use_chrome_edk): remove "2" 180 test("mojo_message_pipe_perftests") {
194 test("mojo_message_pipe_perftests2") {
195 sources = [ 181 sources = [
196 "message_pipe_perftest.cc", 182 "message_pipe_perftest.cc",
197 "message_pipe_test_utils.cc", 183 "message_pipe_test_utils.cc",
198 "message_pipe_test_utils.h", 184 "message_pipe_test_utils.h",
199 ] 185 ]
200 186
201 deps = [ 187 deps = [
202 ":test_utils", 188 ":test_utils",
203 "../../../mojo/public/cpp/environment:standalone", 189 "../../../mojo/public/cpp/environment:standalone",
204 "../test:run_all_perftests", 190 "../test:run_all_perftests",
205 "../test:test_support", 191 "../test:test_support",
206 "//base", 192 "//base",
207 "//base/test:test_support", 193 "//base/test:test_support",
194 "//mojo/edk/system",
208 "//testing/gtest", 195 "//testing/gtest",
209
210 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are
211 # declared in third party only for now.
212 "//third_party/mojo/src/mojo/edk/system",
213 ] 196 ]
214 } 197 }
OLDNEW
« no previous file with comments | « mojo/edk/embedder/entrypoints.cc ('k') | mojo/edk/system/core_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698