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',
32 'mojo_compositor_app',
34 'mojo_common_unittests',
37 'mojo_public_test_utils',
38 'mojo_public_bindings_unittests',
39 'mojo_public_environment_unittests',
40 'mojo_public_system_perftests',
41 'mojo_public_system_unittests',
42 'mojo_public_utility_unittests',
46 'mojo_shell_unittests',
49 'mojo_system_unittests',
63 'target_name': 'mojo_run_all_unittests',
64 'type': 'static_library',
66 '../base/base.gyp:base',
67 '../base/base.gyp:test_support_base',
68 '../testing/gtest.gyp:gtest',
72 'mojo_test_support_impl',
75 'common/test/run_all_unittests.cc',
79 'target_name': 'mojo_run_all_perftests',
80 'type': 'static_library',
82 '../base/base.gyp:test_support_base',
86 'mojo_test_support_impl',
89 'common/test/run_all_perftests.cc',
93 'target_name': 'mojo_system_impl',
94 'type': '<(component)',
97 '../base/base.gyp:base',
100 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
105 'system/constants.h',
106 'system/core_impl.cc',
107 'system/core_impl.h',
108 'system/data_pipe.cc',
109 'system/data_pipe.h',
110 'system/data_pipe_consumer_dispatcher.cc',
111 'system/data_pipe_consumer_dispatcher.h',
112 'system/data_pipe_producer_dispatcher.cc',
113 'system/data_pipe_producer_dispatcher.h',
114 'system/dispatcher.cc',
115 'system/dispatcher.h',
116 'system/embedder/embedder.cc',
117 'system/embedder/embedder.h',
118 'system/embedder/platform_channel_pair.cc',
119 'system/embedder/platform_channel_pair.h',
120 'system/embedder/platform_channel_pair_posix.cc',
121 'system/embedder/platform_channel_pair_win.cc',
122 'system/embedder/platform_handle.cc',
123 'system/embedder/platform_handle.h',
124 'system/embedder/scoped_platform_handle.h',
125 'system/local_data_pipe.cc',
126 'system/local_data_pipe.h',
127 'system/local_message_pipe_endpoint.cc',
128 'system/local_message_pipe_endpoint.h',
131 'system/message_in_transit.cc',
132 'system/message_in_transit.h',
133 'system/message_pipe.cc',
134 'system/message_pipe.h',
135 'system/message_pipe_dispatcher.cc',
136 'system/message_pipe_dispatcher.h',
137 'system/message_pipe_endpoint.cc',
138 'system/message_pipe_endpoint.h',
139 'system/proxy_message_pipe_endpoint.cc',
140 'system/proxy_message_pipe_endpoint.h',
141 'system/raw_channel.h',
142 'system/raw_channel_posix.cc',
143 'system/raw_channel_win.cc',
144 'system/simple_dispatcher.cc',
145 'system/simple_dispatcher.h',
148 'system/waiter_list.cc',
149 'system/waiter_list.h',
151 # TODO(vtl): It's a little unfortunate that these end up in the same
152 # component as non-test-only code. In the static build, this code should
153 # hopefully be dead-stripped.
154 'system/embedder/test_embedder.cc',
155 'system/embedder/test_embedder.h',
159 'target_name': 'mojo_system_unittests',
160 'type': 'executable',
162 '../base/base.gyp:run_all_unittests',
163 '../testing/gtest.gyp:gtest',
164 'mojo_common_test_support',
169 'system/core_impl_unittest.cc',
170 'system/core_test_base.cc',
171 'system/core_test_base.h',
172 'system/data_pipe_unittest.cc',
173 'system/dispatcher_unittest.cc',
174 'system/embedder/embedder_unittest.cc',
175 'system/local_data_pipe_unittest.cc',
176 'system/message_pipe_dispatcher_unittest.cc',
177 'system/message_pipe_unittest.cc',
178 'system/multiprocess_message_pipe_unittest.cc',
179 'system/raw_channel_posix_unittest.cc',
180 'system/remote_message_pipe_posix_unittest.cc',
181 'system/simple_dispatcher_unittest.cc',
182 'system/test_utils.cc',
183 'system/test_utils.h',
184 'system/waiter_list_unittest.cc',
185 'system/waiter_test_utils.cc',
186 'system/waiter_test_utils.h',
187 'system/waiter_unittest.cc',
191 'target_name': 'mojo_gles2_impl',
192 'type': '<(component)',
194 '../base/base.gyp:base',
195 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
196 '../gpu/gpu.gyp:command_buffer_client',
197 '../gpu/gpu.gyp:command_buffer_common',
198 '../gpu/gpu.gyp:gles2_cmd_helper',
199 '../gpu/gpu.gyp:gles2_implementation',
201 'mojo_gles2_bindings',
202 'mojo_environment_chromium',
205 'MOJO_GLES2_IMPL_IMPLEMENTATION',
208 'gles2/command_buffer_client_impl.cc',
209 'gles2/command_buffer_client_impl.h',
210 'gles2/gles2_impl_export.h',
211 'gles2/gles2_support_impl.cc',
212 'gles2/gles2_support_impl.h',
213 'gles2/gles2_context.cc',
214 'gles2/gles2_context.h',
218 'target_name': 'mojo_test_support_impl',
219 'type': 'static_library',
221 '../base/base.gyp:base',
224 'common/test/test_support_impl.cc',
225 'common/test/test_support_impl.h',
229 'target_name': 'mojo_common_lib',
230 'type': '<(component)',
232 'MOJO_COMMON_IMPLEMENTATION',
235 '../base/base.gyp:base',
236 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
240 'common/common_type_converters.cc',
241 'common/common_type_converters.h',
242 'common/handle_watcher.cc',
243 'common/handle_watcher.h',
244 'common/message_pump_mojo.cc',
245 'common/message_pump_mojo.h',
246 'common/message_pump_mojo_handler.h',
250 'target_name': 'mojo_common_test_support',
251 'type': 'static_library',
253 '../base/base.gyp:base',
254 '../base/base.gyp:test_support_base',
255 '../testing/gtest.gyp:gtest',
260 'common/test/multiprocess_test_base.cc',
261 'common/test/multiprocess_test_base.h',
262 'common/test/test_utils.h',
263 'common/test/test_utils_posix.cc',
264 'common/test/test_utils_win.cc',
268 'target_name': 'mojo_common_unittests',
269 'type': 'executable',
271 '../base/base.gyp:base',
272 '../base/base.gyp:base_message_loop_tests',
273 '../testing/gtest.gyp:gtest',
275 'mojo_environment_chromium',
277 'mojo_common_test_support',
278 'mojo_public_test_utils',
279 'mojo_run_all_unittests',
284 'common/common_type_converters_unittest.cc',
285 'common/handle_watcher_unittest.cc',
286 'common/message_pump_mojo_unittest.cc',
287 'common/test/multiprocess_test_base_unittest.cc',
291 'target_name': 'mojo_environment_chromium',
292 'type': 'static_library',
294 'mojo_environment_chromium_impl',
297 'environment/default_async_waiter.cc',
298 'environment/buffer_tls.cc',
299 'environment/environment.cc',
304 'export_dependent_settings': [
305 'mojo_environment_chromium_impl',
309 'target_name': 'mojo_environment_chromium_impl',
310 'type': '<(component)',
312 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
315 '../base/base.gyp:base',
316 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
320 'environment/default_async_waiter_impl.cc',
321 'environment/default_async_waiter_impl.h',
322 'environment/buffer_tls_impl.cc',
323 'environment/buffer_tls_impl.h',
330 'target_name': 'mojo_shell_lib',
331 'type': 'static_library',
333 '../base/base.gyp:base',
334 '../net/net.gyp:net',
335 '../url/url.gyp:url_lib',
337 'mojo_shell_bindings',
340 'mojo_native_viewport_service',
345 'shell/dynamic_service_loader.cc',
346 'shell/dynamic_service_loader.h',
349 'shell/keep_alive.cc',
350 'shell/keep_alive.h',
353 'shell/network_delegate.cc',
354 'shell/network_delegate.h',
357 'shell/service_manager.cc',
358 'shell/service_manager.h',
363 'shell/task_runners.cc',
364 'shell/task_runners.h',
365 'shell/url_request_context_getter.cc',
366 'shell/url_request_context_getter.h',
370 'target_name': 'mojo_shell',
371 'type': 'executable',
373 '../base/base.gyp:base',
374 '../ui/gl/gl.gyp:gl',
375 '../url/url.gyp:url_lib',
377 'mojo_environment_chromium',
378 'mojo_shell_bindings',
384 'shell/desktop/mojo_main.cc',
388 'target_name': 'mojo_shell_unittests',
389 'type': 'executable',
391 '../base/base.gyp:base',
392 '../testing/gtest.gyp:gtest',
393 'mojo_environment_standalone',
394 'mojo_run_all_unittests',
398 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
400 'shell/service_manager_unittest.cc',
409 'target_name': 'mojo_native_viewport_java',
412 '../base/base.gyp:base_java',
415 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
417 'includes': [ '../build/java.gypi' ],
420 'target_name': 'mojo_java_set_jni_headers',
423 'jni_gen_package': 'mojo',
424 'jni_generator_ptr_type': 'long',
425 'input_java_class': 'java/util/HashSet.class',
427 'includes': [ '../build/jar_file_jni_generator.gypi' ],
430 'target_name': 'mojo_jni_headers',
433 'mojo_java_set_jni_headers',
436 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
437 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
440 'jni_gen_package': 'mojo',
441 'jni_generator_ptr_type': 'long',
443 'includes': [ '../build/jni_generator.gypi' ],
446 'target_name': 'libmojo_shell',
447 'type': 'shared_library',
449 '../base/base.gyp:base',
450 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
451 '../ui/gfx/gfx.gyp:gfx',
452 '../ui/gfx/gfx.gyp:gfx_geometry',
453 '../ui/gl/gl.gyp:gl',
455 'mojo_environment_chromium',
457 'mojo_shell_bindings',
461 'shell/android/library_loader.cc',
462 'shell/android/mojo_main.cc',
463 'shell/android/mojo_main.h',
467 'target_name': 'mojo_shell_apk',
470 '../base/base.gyp:base_java',
471 '../net/net.gyp:net_java',
472 'mojo_native_viewport_java',
476 'apk_name': 'MojoShell',
477 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
478 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
479 'native_lib_target': 'libmojo_shell',
481 'includes': [ '../build/java_apk.gypi' ],