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

Side by Side Diff: mojo/edk/mojo_edk.gyp

Issue 728043002: Revert of Update mojo sdk to rev afb4440fd5a10cba980878c326180b7ad7960480 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/js/waiting_callback.h ('k') | mojo/edk/mojo_edk_tests.gyp » ('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 # Essential components (and their tests) that are needed to build
6 # Chrome should be here. Other components that are useful only in
7 # Mojo land like mojo_shell should be in mojo.gyp.
5 { 8 {
6 'includes': [ 9 'includes': [
7 '../mojo_variables.gypi', 10 '../mojo_variables.gypi',
8 ], 11 ],
9 'targets': [ 12 'targets': [
10 { 13 {
14 'target_name': 'mojo_edk',
15 'type': 'none',
16 'dependencies': [
17 # NOTE: If adding a new dependency here, please consider whether it
18 # should also be added to the list of Mojo-related dependencies of
19 # build/all.gyp:All on iOS, as All cannot depend on the mojo_base
20 # target on iOS due to the presence of the js targets, which cause v8
21 # to be built.
22 'mojo_message_pipe_perftests',
23 'mojo_public_application_unittests',
24 'mojo_public_bindings_unittests',
25 'mojo_public_environment_unittests',
26 'mojo_public_system_perftests',
27 'mojo_public_system_unittests',
28 'mojo_public_utility_unittests',
29 'mojo_system_impl',
30 'mojo_system_unittests',
31 'mojo_js_unittests',
32 ],
33 },
34 {
35 'target_name': 'mojo_none',
36 'type': 'none',
37 },
38 {
39 # GN version: //mojo/edk/test:run_all_unittests
40 'target_name': 'mojo_run_all_unittests',
41 'type': 'static_library',
42 'dependencies': [
43 '../../base/base.gyp:base',
44 '../../base/base.gyp:test_support_base',
45 '../../testing/gtest.gyp:gtest',
46 'mojo_system_impl',
47 'mojo_test_support_impl',
48 '../public/mojo_public.gyp:mojo_test_support',
49 ],
50 'sources': [
51 'test/run_all_unittests.cc',
52 ],
53 },
54 {
55 # GN version: //mojo/edk/test:run_all_perftests
56 'target_name': 'mojo_run_all_perftests',
57 'type': 'static_library',
58 'dependencies': [
59 '../../base/base.gyp:test_support_base',
60 'mojo_system_impl',
61 'mojo_test_support_impl',
62 '../public/mojo_public.gyp:mojo_test_support',
63 ],
64 'sources': [
65 'test/run_all_perftests.cc',
66 ],
67 },
68 # TODO(vtl): Reorganize the mojo_public_*_unittests.
69 {
70 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_unitte sts
71 'target_name': 'mojo_public_bindings_unittests',
72 'type': 'executable',
73 'dependencies': [
74 '../../testing/gtest.gyp:gtest',
75 'mojo_run_all_unittests',
76 '../public/mojo_public.gyp:mojo_cpp_bindings',
77 '../public/mojo_public.gyp:mojo_environment_standalone',
78 '../public/mojo_public.gyp:mojo_public_bindings_test_utils',
79 '../public/mojo_public.gyp:mojo_public_test_interfaces',
80 '../public/mojo_public.gyp:mojo_public_test_utils',
81 '../public/mojo_public.gyp:mojo_utility',
82 ],
83 'sources': [
84 '../public/cpp/bindings/tests/array_unittest.cc',
85 '../public/cpp/bindings/tests/bounds_checker_unittest.cc',
86 '../public/cpp/bindings/tests/buffer_unittest.cc',
87 '../public/cpp/bindings/tests/connector_unittest.cc',
88 '../public/cpp/bindings/tests/container_test_util.cc',
89 '../public/cpp/bindings/tests/equals_unittest.cc',
90 '../public/cpp/bindings/tests/handle_passing_unittest.cc',
91 '../public/cpp/bindings/tests/interface_ptr_unittest.cc',
92 '../public/cpp/bindings/tests/map_unittest.cc',
93 '../public/cpp/bindings/tests/request_response_unittest.cc',
94 '../public/cpp/bindings/tests/router_unittest.cc',
95 '../public/cpp/bindings/tests/sample_service_unittest.cc',
96 '../public/cpp/bindings/tests/serialization_warning_unittest.cc',
97 '../public/cpp/bindings/tests/string_unittest.cc',
98 '../public/cpp/bindings/tests/struct_unittest.cc',
99 '../public/cpp/bindings/tests/type_conversion_unittest.cc',
100 '../public/cpp/bindings/tests/validation_unittest.cc',
101 ],
102 },
103 {
104 # GN version: //mojo/public/cpp/environment/tests:mojo_public_environment_ unittests
105 'target_name': 'mojo_public_environment_unittests',
106 'type': 'executable',
107 'dependencies': [
108 '../../testing/gtest.gyp:gtest',
109 'mojo_run_all_unittests',
110 '../public/mojo_public.gyp:mojo_environment_standalone',
111 '../public/mojo_public.gyp:mojo_public_test_utils',
112 '../public/mojo_public.gyp:mojo_utility',
113 ],
114 'include_dirs': [ '../..' ],
115 'sources': [
116 '../public/cpp/environment/tests/async_wait_unittest.cc',
117 '../public/cpp/environment/tests/async_waiter_unittest.cc',
118 '../public/cpp/environment/tests/logger_unittest.cc',
119 '../public/cpp/environment/tests/logging_unittest.cc',
120 ],
121 },
122 {
123 # GN version: //mojo/public/cpp/application/tests:mojo_public_application_ unittests
124 'target_name': 'mojo_public_application_unittests',
125 'type': 'executable',
126 'dependencies': [
127 '../../base/base.gyp:base',
128 '../../testing/gtest.gyp:gtest',
129 'mojo_run_all_unittests',
130 '../public/mojo_public.gyp:mojo_application_standalone',
131 '../public/mojo_public.gyp:mojo_utility',
132 '../public/mojo_public.gyp:mojo_environment_standalone',
133 ],
134 'sources': [
135 '../public/cpp/application/tests/service_registry_unittest.cc',
136 ],
137 },
138 {
139 # GN version: //mojo/public/cpp/application/tests:mojo_public_system_unitt ests
140 'target_name': 'mojo_public_system_unittests',
141 'type': 'executable',
142 'dependencies': [
143 '../../testing/gtest.gyp:gtest',
144 'mojo_run_all_unittests',
145 '../public/mojo_public.gyp:mojo_public_test_utils',
146 ],
147 'include_dirs': [ '../..' ],
148 'sources': [
149 '<@(mojo_public_system_unittest_sources)',
150 ],
151 },
152 {
153 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unit tests
154 'target_name': 'mojo_public_utility_unittests',
155 'type': 'executable',
156 'dependencies': [
157 '../../testing/gtest.gyp:gtest',
158 'mojo_run_all_unittests',
159 '../public/mojo_public.gyp:mojo_public_test_utils',
160 '../public/mojo_public.gyp:mojo_utility',
161 ],
162 'include_dirs': [ '../..' ],
163 'sources': [
164 '../public/cpp/utility/tests/mutex_unittest.cc',
165 '../public/cpp/utility/tests/run_loop_unittest.cc',
166 '../public/cpp/utility/tests/thread_unittest.cc',
167 ],
168 'conditions': [
169 # See crbug.com/342893:
170 ['OS=="win"', {
171 'sources!': [
172 '../public/cpp/utility/tests/mutex_unittest.cc',
173 '../public/cpp/utility/tests/thread_unittest.cc',
174 ],
175 }],
176 ],
177 },
178 {
179 # GN version: //mojo/public/c/system/tests:perftests
180 'target_name': 'mojo_public_system_perftests',
181 'type': 'executable',
182 'dependencies': [
183 '../../base/base.gyp:base',
184 '../../testing/gtest.gyp:gtest',
185 'mojo_run_all_perftests',
186 '../public/mojo_public.gyp:mojo_public_test_utils',
187 '../public/mojo_public.gyp:mojo_utility',
188 ],
189 'sources': [
190 '../public/c/system/tests/core_perftest.cc',
191 ],
192 },
193
194 {
11 # GN version: //mojo/edk/system 195 # GN version: //mojo/edk/system
12 'target_name': 'mojo_system_impl', 196 'target_name': 'mojo_system_impl',
13 'type': '<(component)', 197 'type': '<(component)',
14 'dependencies': [ 198 'dependencies': [
15 '../../base/base.gyp:base', 199 '../../base/base.gyp:base',
16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations', 200 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations',
17 ], 201 ],
18 'defines': [ 202 'defines': [
19 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', 203 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
20 'MOJO_SYSTEM_IMPLEMENTATION', 204 'MOJO_SYSTEM_IMPLEMENTATION',
21 'MOJO_USE_SYSTEM_IMPL', 205 'MOJO_USE_SYSTEM_IMPL',
22 ], 206 ],
23 'sources': [ 207 'sources': [
24 'embedder/configuration.h',
25 'embedder/channel_info_forward.h', 208 'embedder/channel_info_forward.h',
26 'embedder/channel_init.cc', 209 'embedder/channel_init.cc',
27 'embedder/channel_init.h', 210 'embedder/channel_init.h',
28 'embedder/embedder.cc', 211 'embedder/embedder.cc',
29 'embedder/embedder.h', 212 'embedder/embedder.h',
30 'embedder/embedder_internal.h',
31 'embedder/entrypoints.cc',
32 'embedder/platform_channel_pair.cc', 213 'embedder/platform_channel_pair.cc',
33 'embedder/platform_channel_pair.h', 214 'embedder/platform_channel_pair.h',
34 'embedder/platform_channel_pair_posix.cc', 215 'embedder/platform_channel_pair_posix.cc',
35 'embedder/platform_channel_pair_win.cc', 216 'embedder/platform_channel_pair_win.cc',
36 'embedder/platform_channel_utils_posix.cc', 217 'embedder/platform_channel_utils_posix.cc',
37 'embedder/platform_channel_utils_posix.h', 218 'embedder/platform_channel_utils_posix.h',
38 'embedder/platform_handle.cc', 219 'embedder/platform_handle.cc',
39 'embedder/platform_handle.h', 220 'embedder/platform_handle.h',
40 'embedder/platform_handle_utils.h', 221 'embedder/platform_handle_utils.h',
41 'embedder/platform_handle_utils_posix.cc', 222 'embedder/platform_handle_utils_posix.cc',
42 'embedder/platform_handle_utils_win.cc', 223 'embedder/platform_handle_utils_win.cc',
43 'embedder/platform_handle_vector.h', 224 'embedder/platform_handle_vector.h',
44 'embedder/platform_shared_buffer.h', 225 'embedder/platform_shared_buffer.h',
45 'embedder/platform_support.h', 226 'embedder/platform_support.h',
46 'embedder/scoped_platform_handle.h', 227 'embedder/scoped_platform_handle.h',
47 'embedder/simple_platform_shared_buffer.cc', 228 'embedder/simple_platform_shared_buffer.cc',
48 'embedder/simple_platform_shared_buffer.h', 229 'embedder/simple_platform_shared_buffer.h',
49 'embedder/simple_platform_shared_buffer_posix.cc', 230 'embedder/simple_platform_shared_buffer_posix.cc',
50 'embedder/simple_platform_shared_buffer_win.cc', 231 'embedder/simple_platform_shared_buffer_win.cc',
51 'embedder/simple_platform_support.cc', 232 'embedder/simple_platform_support.cc',
52 'embedder/simple_platform_support.h', 233 'embedder/simple_platform_support.h',
53 'system/channel.cc', 234 'system/channel.cc',
54 'system/channel.h', 235 'system/channel.h',
55 'system/channel_endpoint.cc', 236 'system/channel_endpoint.cc',
56 'system/channel_endpoint.h', 237 'system/channel_endpoint.h',
57 'system/channel_endpoint_id.cc', 238 'system/channel_endpoint_id.cc',
58 'system/channel_endpoint_id.h', 239 'system/channel_endpoint_id.h',
59 'system/channel_info.cc', 240 'system/channel_info.cc',
60 'system/channel_info.h', 241 'system/channel_info.h',
61 'system/channel_manager.cc', 242 'system/constants.h',
62 'system/channel_manager.h',
63 'system/configuration.cc',
64 'system/configuration.h',
65 'system/core.cc', 243 'system/core.cc',
66 'system/core.h', 244 'system/core.h',
67 'system/data_pipe.cc', 245 'system/data_pipe.cc',
68 'system/data_pipe.h', 246 'system/data_pipe.h',
69 'system/data_pipe_consumer_dispatcher.cc', 247 'system/data_pipe_consumer_dispatcher.cc',
70 'system/data_pipe_consumer_dispatcher.h', 248 'system/data_pipe_consumer_dispatcher.h',
71 'system/data_pipe_producer_dispatcher.cc', 249 'system/data_pipe_producer_dispatcher.cc',
72 'system/data_pipe_producer_dispatcher.h', 250 'system/data_pipe_producer_dispatcher.h',
73 'system/dispatcher.cc', 251 'system/dispatcher.cc',
74 'system/dispatcher.h', 252 'system/dispatcher.h',
253 'system/entrypoints.cc',
75 'system/handle_signals_state.h', 254 'system/handle_signals_state.h',
76 'system/handle_table.cc', 255 'system/handle_table.cc',
77 'system/handle_table.h', 256 'system/handle_table.h',
78 'system/local_data_pipe.cc', 257 'system/local_data_pipe.cc',
79 'system/local_data_pipe.h', 258 'system/local_data_pipe.h',
80 'system/local_message_pipe_endpoint.cc', 259 'system/local_message_pipe_endpoint.cc',
81 'system/local_message_pipe_endpoint.h', 260 'system/local_message_pipe_endpoint.h',
82 'system/mapping_table.cc', 261 'system/mapping_table.cc',
83 'system/mapping_table.h', 262 'system/mapping_table.h',
84 'system/memory.cc', 263 'system/memory.cc',
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 # hopefully be dead-stripped. 297 # hopefully be dead-stripped.
119 'embedder/test_embedder.cc', 298 'embedder/test_embedder.cc',
120 'embedder/test_embedder.h', 299 'embedder/test_embedder.h',
121 ], 300 ],
122 'all_dependent_settings': { 301 'all_dependent_settings': {
123 # Ensures that dependent projects import the core functions on Windows. 302 # Ensures that dependent projects import the core functions on Windows.
124 'defines': ['MOJO_USE_SYSTEM_IMPL'], 303 'defines': ['MOJO_USE_SYSTEM_IMPL'],
125 } 304 }
126 }, 305 },
127 { 306 {
307 # GN version: //mojo/edk/system:mojo_system_unittests
308 'target_name': 'mojo_system_unittests',
309 'type': 'executable',
310 'dependencies': [
311 '../../base/base.gyp:base',
312 '../../testing/gtest.gyp:gtest',
313 'mojo_common_test_support',
314 'mojo_system_impl',
315 ],
316 'sources': [
317 'embedder/embedder_unittest.cc',
318 'embedder/platform_channel_pair_posix_unittest.cc',
319 'embedder/simple_platform_shared_buffer_unittest.cc',
320 'system/channel_endpoint_id_unittest.cc',
321 'system/channel_unittest.cc',
322 'system/core_unittest.cc',
323 'system/core_test_base.cc',
324 'system/core_test_base.h',
325 'system/data_pipe_unittest.cc',
326 'system/dispatcher_unittest.cc',
327 'system/local_data_pipe_unittest.cc',
328 'system/memory_unittest.cc',
329 'system/message_pipe_dispatcher_unittest.cc',
330 'system/message_pipe_test_utils.h',
331 'system/message_pipe_test_utils.cc',
332 'system/message_pipe_unittest.cc',
333 'system/multiprocess_message_pipe_unittest.cc',
334 'system/options_validation_unittest.cc',
335 'system/platform_handle_dispatcher_unittest.cc',
336 'system/raw_channel_unittest.cc',
337 'system/remote_message_pipe_unittest.cc',
338 'system/run_all_unittests.cc',
339 'system/shared_buffer_dispatcher_unittest.cc',
340 'system/simple_dispatcher_unittest.cc',
341 'system/test_utils.cc',
342 'system/test_utils.h',
343 'system/waiter_list_unittest.cc',
344 'system/waiter_test_utils.cc',
345 'system/waiter_test_utils.h',
346 'system/waiter_unittest.cc',
347 ],
348 'conditions': [
349 ['OS=="ios"', {
350 'sources!': [
351 'embedder/embedder_unittest.cc',
352 'system/multiprocess_message_pipe_unittest.cc',
353 ],
354 }],
355 ],
356 },
357 {
358 # GN version: //mojo/edk/system:mojo_message_pipe_perftests
359 'target_name': 'mojo_message_pipe_perftests',
360 'type': 'executable',
361 'dependencies': [
362 '../../base/base.gyp:base',
363 '../../base/base.gyp:test_support_base',
364 '../../base/base.gyp:test_support_perf',
365 '../../testing/gtest.gyp:gtest',
366 'mojo_common_test_support',
367 'mojo_system_impl',
368 ],
369 'sources': [
370 'system/message_pipe_perftest.cc',
371 'system/message_pipe_test_utils.h',
372 'system/message_pipe_test_utils.cc',
373 'system/test_utils.cc',
374 'system/test_utils.h',
375 ],
376 },
377 {
128 # GN version: //mojo/edk/js 378 # GN version: //mojo/edk/js
129 'target_name': 'mojo_js_lib', 379 'target_name': 'mojo_js_lib',
130 'type': 'static_library', 380 'type': 'static_library',
131 'dependencies': [ 381 'dependencies': [
132 '../../base/base.gyp:base', 382 '../../base/base.gyp:base',
133 '../../gin/gin.gyp:gin', 383 '../../gin/gin.gyp:gin',
134 '../../v8/tools/gyp/v8.gyp:v8', 384 '../../v8/tools/gyp/v8.gyp:v8',
135 ], 385 ],
136 'export_dependent_settings': [ 386 'export_dependent_settings': [
137 '../../base/base.gyp:base', 387 '../../base/base.gyp:base',
138 '../../gin/gin.gyp:gin', 388 '../../gin/gin.gyp:gin',
139 ], 389 ],
140 'sources': [ 390 'sources': [
141 # Sources list duplicated in GN build. 391 # Sources list duplicated in GN build.
142 'js/core.cc', 392 'js/core.cc',
143 'js/core.h', 393 'js/core.h',
144 'js/drain_data.cc', 394 'js/drain_data.cc',
145 'js/drain_data.h', 395 'js/drain_data.h',
146 'js/handle.cc', 396 'js/handle.cc',
147 'js/handle.h', 397 'js/handle.h',
148 'js/handle_close_observer.h', 398 'js/handle_close_observer.h',
149 'js/mojo_runner_delegate.cc',
150 'js/mojo_runner_delegate.h',
151 'js/support.cc', 399 'js/support.cc',
152 'js/support.h', 400 'js/support.h',
153 'js/threading.cc',
154 'js/threading.h',
155 'js/waiting_callback.cc', 401 'js/waiting_callback.cc',
156 'js/waiting_callback.h', 402 'js/waiting_callback.h',
157 ], 403 ],
158 }, 404 },
159 { 405 {
160 # GN version: //mojo/edk/test:test_support_impl 406 # GN version: //mojo/edk/js:js_unittests
407 'target_name': 'mojo_js_unittests',
408 'type': 'executable',
409 'dependencies': [
410 '../../gin/gin.gyp:gin_test',
411 'mojo_common_test_support',
412 'mojo_run_all_unittests',
413 'mojo_js_lib',
414 '../public/mojo_public.gyp:mojo_environment_standalone',
415 '../public/mojo_public.gyp:mojo_public_test_interfaces',
416 '../public/mojo_public.gyp:mojo_utility',
417 ],
418 'sources': [
419 'js/handle_unittest.cc',
420 'js/tests/run_js_tests.cc',
421 ],
422 },
423 {
424 # GN version: //mojo/common/test:test_support_impl
161 'target_name': 'mojo_test_support_impl', 425 'target_name': 'mojo_test_support_impl',
162 'type': 'static_library', 426 'type': 'static_library',
163 'dependencies': [ 427 'dependencies': [
164 '../../base/base.gyp:base', 428 '../../base/base.gyp:base',
165 ], 429 ],
166 'sources': [ 430 'sources': [
167 'test/test_support_impl.cc', 431 'test/test_support_impl.cc',
168 'test/test_support_impl.h', 432 'test/test_support_impl.h',
169 ], 433 ],
170 }, 434 },
(...skipping 15 matching lines...) Expand all
186 'test/test_utils_win.cc', 450 'test/test_utils_win.cc',
187 ], 451 ],
188 'conditions': [ 452 'conditions': [
189 ['OS=="ios"', { 453 ['OS=="ios"', {
190 'sources!': [ 454 'sources!': [
191 'test/multiprocess_test_helper.cc', 455 'test/multiprocess_test_helper.cc',
192 ], 456 ],
193 }], 457 }],
194 ], 458 ],
195 }, 459 },
196 {
197 # GN version: //mojo/edk/test:run_all_unittests
198 'target_name': 'mojo_run_all_unittests',
199 'type': 'static_library',
200 'dependencies': [
201 '../../base/base.gyp:base',
202 '../../base/base.gyp:test_support_base',
203 '../../testing/gtest.gyp:gtest',
204 'mojo_system_impl',
205 'mojo_test_support_impl',
206 '../public/mojo_public.gyp:mojo_test_support',
207 ],
208 'sources': [
209 'test/run_all_unittests.cc',
210 ],
211 },
212 {
213 # GN version: //mojo/edk/test:run_all_perftests
214 'target_name': 'mojo_run_all_perftests',
215 'type': 'static_library',
216 'dependencies': [
217 '../../base/base.gyp:test_support_base',
218 'mojo_edk.gyp:mojo_system_impl',
219 'mojo_test_support_impl',
220 '../public/mojo_public.gyp:mojo_test_support',
221 ],
222 'sources': [
223 'test/run_all_perftests.cc',
224 ],
225 },
226 ], 460 ],
227 } 461 }
OLDNEW
« no previous file with comments | « mojo/edk/js/waiting_callback.h ('k') | mojo/edk/mojo_edk_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698