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.
11 'target_name': 'mojo',
15 'mojo_common_unittests',
16 'mojo_public_test_support',
17 'mojo_public_unittests',
18 'mojo_public_perftests',
20 'mojo_system_unittests',
29 'mojo_js_bindings_unittests',
34 'target_name': 'mojo_public_test_support',
35 'type': 'static_library',
37 '../base/base.gyp:base',
38 '../testing/gtest.gyp:gtest',
42 'public/tests/simple_bindings_support.cc',
43 'public/tests/simple_bindings_support.h',
44 'public/tests/test_support.cc',
45 'public/tests/test_support.h',
49 'target_name': 'mojo_run_all_unittests',
50 'type': 'static_library',
52 '../base/base.gyp:base',
53 '../base/base.gyp:test_support_base',
57 'common/test/run_all_unittests.cc',
61 'target_name': 'mojo_common_lib',
62 'type': '<(component)',
64 'MOJO_COMMON_IMPLEMENTATION',
67 '../base/base.gyp:base',
68 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
72 'common/bindings_support_impl.cc',
73 'common/bindings_support_impl.h',
74 'common/handle_watcher.cc',
75 'common/handle_watcher.h',
76 'common/message_pump_mojo.cc',
77 'common/message_pump_mojo.h',
78 'common/message_pump_mojo_handler.h',
82 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
83 'msvs_disabled_warnings': [
90 'target_name': 'mojo_common_unittests',
93 '../base/base.gyp:base',
94 '../base/base.gyp:base_message_loop_tests',
95 '../testing/gtest.gyp:gtest',
97 'mojo_run_all_unittests',
101 'common/handle_watcher_unittest.cc',
102 'common/message_pump_mojo_unittest.cc',
106 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
107 'msvs_disabled_warnings': [
114 'target_name': 'mojo_public_unittests',
115 'type': 'executable',
117 '../testing/gtest.gyp:gtest',
119 'mojo_public_test_support',
120 'mojo_run_all_unittests',
124 'public/tests/bindings_connector_unittest.cc',
125 'public/tests/bindings_remote_ptr_unittest.cc',
126 'public/tests/buffer_unittest.cc',
127 'public/tests/math_calculator.mojom',
128 'public/tests/system_core_cpp_unittest.cc',
129 'public/tests/system_core_unittest.cc',
131 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
134 'target_name': 'mojo_public_perftests',
135 'type': 'executable',
137 '../base/base.gyp:base',
138 '../base/base.gyp:test_support_perf',
139 '../testing/gtest.gyp:gtest',
140 'mojo_public_test_support',
141 'mojo_run_all_unittests',
145 'public/tests/system_core_perftest.cc',
149 'target_name': 'mojo_system',
150 'type': '<(component)',
152 '../base/base.gyp:base',
155 'MOJO_SYSTEM_IMPLEMENTATION',
161 'system/core_impl.cc',
162 'system/core_impl.h',
163 'system/dispatcher.cc',
164 'system/dispatcher.h',
166 'system/local_message_pipe_endpoint.cc',
167 'system/local_message_pipe_endpoint.h',
170 'system/message_in_transit.cc',
171 'system/message_in_transit.h',
172 'system/message_pipe.cc',
173 'system/message_pipe.h',
174 'system/message_pipe_dispatcher.cc',
175 'system/message_pipe_dispatcher.h',
176 'system/message_pipe_endpoint.cc',
177 'system/message_pipe_endpoint.h',
178 'system/platform_channel_handle.h',
179 'system/proxy_message_pipe_endpoint.cc',
180 'system/proxy_message_pipe_endpoint.h',
181 'system/raw_channel.h',
182 'system/raw_channel_posix.cc',
183 'system/raw_channel_win.cc',
184 'system/simple_dispatcher.cc',
185 'system/simple_dispatcher.h',
188 'system/waiter_list.cc',
189 'system/waiter_list.h',
191 'direct_dependent_settings': {
198 'target_name': 'mojo_system_unittests',
199 'type': 'executable',
201 '../base/base.gyp:run_all_unittests',
202 '../testing/gtest.gyp:gtest',
206 'system/core_impl_unittest.cc',
207 'system/core_test_base.cc',
208 'system/core_test_base.h',
209 'system/dispatcher_unittest.cc',
210 'system/message_pipe_dispatcher_unittest.cc',
211 'system/message_pipe_unittest.cc',
212 'system/raw_channel_posix_unittest.cc',
213 'system/remote_message_pipe_posix_unittest.cc',
214 'system/simple_dispatcher_unittest.cc',
215 'system/test_utils.cc',
216 'system/test_utils.h',
217 'system/waiter_list_unittest.cc',
218 'system/waiter_test_utils.cc',
219 'system/waiter_test_utils.h',
220 'system/waiter_unittest.cc',
224 'target_name': 'mojo_shell_lib',
225 'type': 'static_library',
227 '../base/base.gyp:base',
228 '../net/net.gyp:net',
229 '../url/url.gyp:url_lib',
233 'hello_world_service_impl',
236 'shell/app_container.cc',
237 'shell/app_container.h',
244 'shell/network_delegate.cc',
245 'shell/network_delegate.h',
252 'shell/task_runners.cc',
253 'shell/task_runners.h',
254 'shell/url_request_context_getter.cc',
255 'shell/url_request_context_getter.h',
259 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
260 'msvs_disabled_warnings': [
267 'target_name': 'mojo_shell',
268 'type': 'executable',
270 '../base/base.gyp:base',
271 '../ui/gl/gl.gyp:gl',
272 '../url/url.gyp:url_lib',
278 'shell/desktop/mojo_main.cc',
282 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
283 'msvs_disabled_warnings': [
290 'target_name': 'mojo_js',
291 'type': 'shared_library',
293 '../base/base.gyp:base',
294 '../gin/gin.gyp:gin',
295 'hello_world_service',
301 'apps/js/bootstrap.cc',
302 'apps/js/bootstrap.h',
304 'apps/js/mojo_runner_delegate.cc',
305 'apps/js/mojo_runner_delegate.h',
309 'target_name': 'sample_app',
310 'type': 'shared_library',
312 '../base/base.gyp:base',
313 '../ui/gl/gl.gyp:gl',
314 'hello_world_service',
319 'examples/sample_app/hello_world_client_impl.cc',
320 'examples/sample_app/hello_world_client_impl.h',
321 'examples/sample_app/sample_app.cc',
322 'examples/sample_app/spinning_cube.cc',
323 'examples/sample_app/spinning_cube.h',
327 'target_name': 'hello_world_service',
328 'type': 'static_library',
333 'export_dependent_settings': [
338 'examples/hello_world_service/hello_world_service.mojom',
340 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
343 'target_name': 'hello_world_service_impl',
344 'type': 'static_library',
346 'examples/hello_world_service/hello_world_service_impl.cc',
347 'examples/hello_world_service/hello_world_service_impl.h',
349 'export_dependent_settings': [
350 'hello_world_service',
353 '../base/base.gyp:base',
354 'hello_world_service',
358 'target_name': 'mojo_bindings',
359 'type': 'static_library',
364 'public/bindings/lib/bindings.h',
365 'public/bindings/lib/bindings_internal.h',
366 'public/bindings/lib/bindings_serialization.cc',
367 'public/bindings/lib/bindings_serialization.h',
368 'public/bindings/lib/bindings_support.cc',
369 'public/bindings/lib/bindings_support.h',
370 'public/bindings/lib/buffer.cc',
371 'public/bindings/lib/buffer.h',
372 'public/bindings/lib/connector.cc',
373 'public/bindings/lib/connector.h',
374 'public/bindings/lib/message.cc',
375 'public/bindings/lib/message.h',
376 'public/bindings/lib/message_builder.cc',
377 'public/bindings/lib/message_builder.h',
378 'public/bindings/lib/message_queue.cc',
379 'public/bindings/lib/message_queue.h',
383 'target_name': 'mojom_test',
384 'type': 'executable',
386 'public/bindings/sample/sample_test.cc',
387 'public/bindings/sample/sample_service.mojom',
389 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
391 '../testing/gtest.gyp:gtest',
393 'mojo_run_all_unittests',
398 'target_name': 'mojo_bindings_test',
399 'type': 'executable',
402 '<(DEPTH)/mojo/public/bindings/sample',
405 '../testing/gtest.gyp:gtest',
407 'mojo_run_all_unittests',
411 'public/bindings/sample/mojom/sample_service.cc',
412 'public/bindings/sample/mojom/sample_service.h',
413 'public/bindings/sample/mojom/sample_service_internal.h',
414 'public/bindings/sample/sample_test.cc',
418 'target_name': 'mojo_js_bindings',
419 'type': 'static_library',
424 '../gin/gin.gyp:gin',
427 'export_dependent_settings': [
428 '../gin/gin.gyp:gin',
431 'public/bindings/js/core.cc',
432 'public/bindings/js/core.h',
433 'public/bindings/js/handle.cc',
434 'public/bindings/js/handle.h',
435 'public/bindings/js/support.cc',
436 'public/bindings/js/support.h',
437 'public/bindings/js/waiting_callback.cc',
438 'public/bindings/js/waiting_callback.h',
442 'target_name': 'mojo_js_bindings_unittests',
443 'type': 'executable',
445 '../base/base.gyp:run_all_unittests',
446 '../gin/gin.gyp:gin_test',
451 'public/bindings/js/test/run_all_unittests.cc',
452 'public/bindings/js/test/run_js_tests.cc',
456 'target_name': 'native_viewport',
457 'type': 'static_library',
459 '../base/base.gyp:base',
460 '../gpu/gpu.gyp:command_buffer_service',
461 '../gpu/gpu.gyp:gles2_implementation',
462 '../ui/events/events.gyp:events',
463 '../ui/gfx/gfx.gyp:gfx',
464 '../ui/gl/gl.gyp:gl',
467 'services/native_viewport/android/mojo_viewport.cc',
468 'services/native_viewport/android/mojo_viewport.h',
469 'services/native_viewport/native_viewport.h',
470 'services/native_viewport/native_viewport_android.cc',
471 'services/native_viewport/native_viewport_controller.cc',
472 'services/native_viewport/native_viewport_controller.h',
473 'services/native_viewport/native_viewport_mac.mm',
474 'services/native_viewport/native_viewport_stub.cc',
475 'services/native_viewport/native_viewport_win.cc',
476 'services/native_viewport/native_viewport_x11.cc',
479 ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
481 'services/native_viewport/native_viewport_stub.cc',
496 'target_name': 'native_viewport_java',
499 '../base/base.gyp:base_java',
502 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
504 'includes': [ '../build/java.gypi' ],
507 'target_name': 'java_set_jni_headers',
510 'jni_gen_package': 'mojo',
511 'input_java_class': 'java/util/HashSet.class',
513 'includes': [ '../build/jar_file_jni_generator.gypi' ],
516 'target_name': 'mojo_jni_headers',
519 'java_set_jni_headers',
521 'direct_dependent_settings': {
523 '<(SHARED_INTERMEDIATE_DIR)/mojo',
527 'services/native_viewport/android/src/org/chromium/mojo/MojoViewport.java',
528 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
531 'jni_gen_package': 'mojo'
533 'includes': [ '../build/jni_generator.gypi' ],
536 'target_name': 'libmojo_shell',
537 'type': 'shared_library',
539 '../base/base.gyp:base',
540 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
541 '../ui/gfx/gfx.gyp:gfx',
542 '../ui/gl/gl.gyp:gl',
548 'shell/android/library_loader.cc',
549 'shell/android/mojo_main.cc',
550 'shell/android/mojo_main.h',
554 'target_name': 'mojo_shell_apk',
557 '../base/base.gyp:base_java',
558 '../net/net.gyp:net_java',
559 'native_viewport_java',
563 'apk_name': 'MojoShell',
564 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
565 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
566 'native_lib_target': 'libmojo_shell',
568 'includes': [ '../build/java_apk.gypi' ],