1 # Copyright 2013 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.
8 ['mojo_shell_debug_url != ""', {
11 'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"',
18 'mojo_shell_debug_url%': "",
28 'target_name': 'mojo',
31 'mojo_apps_js_unittests',
33 'mojo_compositor_app',
35 'mojo_common_unittests',
38 'mojo_public_test_utils',
39 'mojo_public_bindings_unittests',
40 'mojo_public_environment_unittests',
41 'mojo_public_system_perftests',
42 'mojo_public_system_unittests',
43 'mojo_public_utility_unittests',
45 'mojo_service_manager',
46 'mojo_service_manager_unittests',
51 'mojo_system_unittests',
65 'target_name': 'mojo_run_all_unittests',
66 'type': 'static_library',
68 '../base/base.gyp:base',
69 '../base/base.gyp:test_support_base',
70 '../testing/gtest.gyp:gtest',
74 'mojo_test_support_impl',
77 'common/test/run_all_unittests.cc',
81 'target_name': 'mojo_run_all_perftests',
82 'type': 'static_library',
84 '../base/base.gyp:test_support_base',
88 'mojo_test_support_impl',
91 'common/test/run_all_perftests.cc',
95 'target_name': 'mojo_system_impl',
96 'type': '<(component)',
99 '../base/base.gyp:base',
100 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
103 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
106 'embedder/embedder.cc',
107 'embedder/embedder.h',
108 'embedder/platform_channel_pair.cc',
109 'embedder/platform_channel_pair.h',
110 'embedder/platform_channel_pair_posix.cc',
111 'embedder/platform_channel_pair_win.cc',
112 'embedder/platform_handle.cc',
113 'embedder/platform_handle.h',
114 'embedder/scoped_platform_handle.h',
117 'system/constants.h',
118 'system/core_impl.cc',
119 'system/core_impl.h',
120 'system/data_pipe.cc',
121 'system/data_pipe.h',
122 'system/data_pipe_consumer_dispatcher.cc',
123 'system/data_pipe_consumer_dispatcher.h',
124 'system/data_pipe_producer_dispatcher.cc',
125 'system/data_pipe_producer_dispatcher.h',
126 'system/dispatcher.cc',
127 'system/dispatcher.h',
128 'system/local_data_pipe.cc',
129 'system/local_data_pipe.h',
130 'system/local_message_pipe_endpoint.cc',
131 'system/local_message_pipe_endpoint.h',
134 'system/message_in_transit.cc',
135 'system/message_in_transit.h',
136 'system/message_in_transit_queue.cc',
137 'system/message_in_transit_queue.h',
138 'system/message_pipe.cc',
139 'system/message_pipe.h',
140 'system/message_pipe_dispatcher.cc',
141 'system/message_pipe_dispatcher.h',
142 'system/message_pipe_endpoint.cc',
143 'system/message_pipe_endpoint.h',
144 'system/proxy_message_pipe_endpoint.cc',
145 'system/proxy_message_pipe_endpoint.h',
146 'system/raw_channel.cc',
147 'system/raw_channel.h',
148 'system/raw_channel_posix.cc',
149 'system/raw_channel_win.cc',
150 'system/simple_dispatcher.cc',
151 'system/simple_dispatcher.h',
154 'system/waiter_list.cc',
155 'system/waiter_list.h',
157 # TODO(vtl): It's a little unfortunate that these end up in the same
158 # component as non-test-only code. In the static build, this code should
159 # hopefully be dead-stripped.
160 'embedder/test_embedder.cc',
161 'embedder/test_embedder.h',
165 'target_name': 'mojo_system_unittests',
166 'type': 'executable',
168 '../base/base.gyp:run_all_unittests',
169 '../testing/gtest.gyp:gtest',
170 'mojo_common_test_support',
175 'embedder/embedder_unittest.cc',
176 'system/core_impl_unittest.cc',
177 'system/core_test_base.cc',
178 'system/core_test_base.h',
179 'system/data_pipe_unittest.cc',
180 'system/dispatcher_unittest.cc',
181 'system/local_data_pipe_unittest.cc',
182 'system/message_pipe_dispatcher_unittest.cc',
183 'system/message_pipe_unittest.cc',
184 'system/multiprocess_message_pipe_unittest.cc',
185 'system/raw_channel_unittest.cc',
186 'system/remote_message_pipe_unittest.cc',
187 'system/simple_dispatcher_unittest.cc',
188 'system/test_utils.cc',
189 'system/test_utils.h',
190 'system/waiter_list_unittest.cc',
191 'system/waiter_test_utils.cc',
192 'system/waiter_test_utils.h',
193 'system/waiter_unittest.cc',
197 'target_name': 'mojo_gles2_impl',
198 'type': '<(component)',
200 '../base/base.gyp:base',
201 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
202 '../gpu/gpu.gyp:command_buffer_client',
203 '../gpu/gpu.gyp:command_buffer_common',
204 '../gpu/gpu.gyp:gles2_cmd_helper',
205 '../gpu/gpu.gyp:gles2_implementation',
207 'mojo_gles2_bindings',
208 'mojo_environment_chromium',
211 'MOJO_GLES2_IMPL_IMPLEMENTATION',
214 'gles2/command_buffer_client_impl.cc',
215 'gles2/command_buffer_client_impl.h',
216 'gles2/gles2_impl_export.h',
217 'gles2/gles2_support_impl.cc',
218 'gles2/gles2_support_impl.h',
219 'gles2/gles2_context.cc',
220 'gles2/gles2_context.h',
224 'target_name': 'mojo_test_support_impl',
225 'type': 'static_library',
227 '../base/base.gyp:base',
230 'common/test/test_support_impl.cc',
231 'common/test/test_support_impl.h',
235 'target_name': 'mojo_common_lib',
236 'type': '<(component)',
238 'MOJO_COMMON_IMPLEMENTATION',
241 '../base/base.gyp:base',
242 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
246 'common/common_type_converters.cc',
247 'common/common_type_converters.h',
248 'common/handle_watcher.cc',
249 'common/handle_watcher.h',
250 'common/message_pump_mojo.cc',
251 'common/message_pump_mojo.h',
252 'common/message_pump_mojo_handler.h',
253 'common/time_helper.cc',
254 'common/time_helper.h',
258 'target_name': 'mojo_common_test_support',
259 'type': 'static_library',
261 '../base/base.gyp:base',
262 '../base/base.gyp:test_support_base',
263 '../testing/gtest.gyp:gtest',
268 'common/test/multiprocess_test_helper.cc',
269 'common/test/multiprocess_test_helper.h',
270 'common/test/test_utils.h',
271 'common/test/test_utils_posix.cc',
272 'common/test/test_utils_win.cc',
276 'target_name': 'mojo_common_unittests',
277 'type': 'executable',
279 '../base/base.gyp:base',
280 '../base/base.gyp:base_message_loop_tests',
281 '../testing/gtest.gyp:gtest',
283 'mojo_environment_chromium',
285 'mojo_common_test_support',
286 'mojo_public_test_utils',
287 'mojo_run_all_unittests',
292 'common/common_type_converters_unittest.cc',
293 'common/handle_watcher_unittest.cc',
294 'common/message_pump_mojo_unittest.cc',
295 'common/test/multiprocess_test_helper_unittest.cc',
299 'target_name': 'mojo_environment_chromium',
300 'type': 'static_library',
302 'mojo_environment_chromium_impl',
305 'environment/default_async_waiter.cc',
306 'environment/buffer_tls.cc',
307 'environment/environment.cc',
312 'export_dependent_settings': [
313 'mojo_environment_chromium_impl',
317 'target_name': 'mojo_environment_chromium_impl',
318 'type': '<(component)',
320 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
323 '../base/base.gyp:base',
324 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
328 'environment/default_async_waiter_impl.cc',
329 'environment/default_async_waiter_impl.h',
330 'environment/buffer_tls_impl.cc',
331 'environment/buffer_tls_impl.h',
338 'target_name': 'mojo_service_manager',
339 'type': 'static_library',
341 '../base/base.gyp:base',
342 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
343 '../net/net.gyp:net',
344 '../url/url.gyp:url_lib',
345 'mojo_shell_bindings',
348 'service_manager/service_loader.h',
349 'service_manager/service_manager.cc',
350 'service_manager/service_manager.h',
352 'export_dependent_settings': [
353 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
357 'target_name': 'mojo_shell_lib',
358 'type': 'static_library',
360 '../base/base.gyp:base',
361 '../base/base.gyp:base_static',
362 '../net/net.gyp:net',
363 '../url/url.gyp:url_lib',
365 'mojo_shell_bindings',
366 'mojo_service_manager',
369 'mojo_native_viewport_service',
371 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
373 'shell/app_child_process.cc',
374 'shell/app_child_process.h',
375 'shell/app_child_process.mojom',
376 'shell/app_child_process_host.cc',
377 'shell/app_child_process_host.h',
378 'shell/child_process.cc',
379 'shell/child_process.h',
380 'shell/child_process_host.cc',
381 'shell/child_process_host.h',
384 'shell/dynamic_service_loader.cc',
385 'shell/dynamic_service_loader.h',
386 'shell/dynamic_service_runner.h',
389 'shell/in_process_dynamic_service_runner.cc',
390 'shell/in_process_dynamic_service_runner.h',
391 'shell/keep_alive.cc',
392 'shell/keep_alive.h',
395 'shell/network_delegate.cc',
396 'shell/network_delegate.h',
397 'shell/out_of_process_dynamic_service_runner.cc',
398 'shell/out_of_process_dynamic_service_runner.h',
405 'shell/task_runners.cc',
406 'shell/task_runners.h',
407 'shell/test_child_process.cc',
408 'shell/test_child_process.h',
409 'shell/url_request_context_getter.cc',
410 'shell/url_request_context_getter.h',
414 'target_name': 'mojo_shell',
415 'type': 'executable',
417 '../base/base.gyp:base',
418 '../ui/gl/gl.gyp:gl',
419 '../url/url.gyp:url_lib',
421 'mojo_environment_chromium',
422 'mojo_shell_bindings',
428 'shell/desktop/mojo_main.cc',
432 'target_name': 'mojo_service_manager_unittests',
433 'type': 'executable',
435 '../base/base.gyp:base',
436 '../testing/gtest.gyp:gtest',
438 'mojo_environment_standalone',
439 'mojo_run_all_unittests',
440 'mojo_service_manager',
444 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
446 'service_manager/service_manager_unittest.cc',
447 'service_manager/test.mojom',
451 'target_name': 'mojo_js_bindings_lib',
452 'type': 'static_library',
454 '../base/base.gyp:base',
455 '../gin/gin.gyp:gin',
456 '../v8/tools/gyp/v8.gyp:v8',
460 'export_dependent_settings': [
461 '../base/base.gyp:base',
462 '../gin/gin.gyp:gin',
467 'bindings/js/core.cc',
468 'bindings/js/core.h',
469 'bindings/js/handle.cc',
470 'bindings/js/handle.h',
471 'bindings/js/support.cc',
472 'bindings/js/support.h',
473 'bindings/js/waiting_callback.cc',
474 'bindings/js/waiting_callback.h',
478 'target_name': 'mojo_js_unittests',
479 'type': 'executable',
481 '../gin/gin.gyp:gin_test',
482 'mojo_js_bindings_lib',
483 'mojo_run_all_unittests',
484 'mojo_sample_service',
487 'bindings/js/run_js_tests.cc',
495 'target_name': 'mojo_native_viewport_java',
498 '../base/base.gyp:base_java',
501 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
503 'includes': [ '../build/java.gypi' ],
506 'target_name': 'mojo_java_set_jni_headers',
509 'jni_gen_package': 'mojo',
510 'jni_generator_ptr_type': 'long',
511 'input_java_class': 'java/util/HashSet.class',
513 'includes': [ '../build/jar_file_jni_generator.gypi' ],
516 'target_name': 'mojo_jni_headers',
519 'mojo_java_set_jni_headers',
522 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
523 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
526 'jni_gen_package': 'mojo',
527 'jni_generator_ptr_type': 'long',
529 'includes': [ '../build/jni_generator.gypi' ],
532 'target_name': 'libmojo_shell',
533 'type': 'shared_library',
535 '../base/base.gyp:base',
536 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
537 '../ui/gfx/gfx.gyp:gfx',
538 '../ui/gfx/gfx.gyp:gfx_geometry',
539 '../ui/gl/gl.gyp:gl',
541 'mojo_environment_chromium',
543 'mojo_shell_bindings',
547 'shell/android/library_loader.cc',
548 'shell/android/mojo_main.cc',
549 'shell/android/mojo_main.h',
553 'target_name': 'mojo_shell_apk',
556 '../base/base.gyp:base_java',
557 '../net/net.gyp:net_java',
558 'mojo_native_viewport_java',
562 'apk_name': 'MojoShell',
563 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
564 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
565 'native_lib_target': 'libmojo_shell',
567 'includes': [ '../build/java_apk.gypi' ],
571 ['test_isolation_mode != "noop"', {
574 'target_name': 'mojo_js_unittests_run',
580 '../build/isolate.gypi',
581 'mojo_js_unittests.isolate',
584 'mojo_js_unittests.isolate',