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.
17 'target_name': 'mojo',
21 'mojo_bindings_unittests',
23 'mojo_common_unittests',
24 'mojo_hello_world_service',
27 'mojo_public_perftests',
28 'mojo_public_test_support',
29 'mojo_public_unittests',
33 'mojo_shell_unittests',
36 'mojo_system_unittests',
38 'mojo_utility_unittests',
42 'target_name': 'mojo_run_all_unittests',
43 'type': 'static_library',
45 '../base/base.gyp:base',
46 '../base/base.gyp:test_support_base',
47 '../testing/gtest.gyp:gtest',
52 'common/test/run_all_unittests.cc',
56 'target_name': 'mojo_run_all_perftests',
57 'type': 'static_library',
59 '../base/base.gyp:test_support_base',
64 'common/test/run_all_perftests.cc',
68 'target_name': 'mojo_system_impl',
69 'type': '<(component)',
72 '../base/base.gyp:base',
75 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
81 'system/core_impl.cc',
83 'system/data_pipe.cc',
85 'system/data_pipe_consumer_dispatcher.cc',
86 'system/data_pipe_consumer_dispatcher.h',
87 'system/data_pipe_producer_dispatcher.cc',
88 'system/data_pipe_producer_dispatcher.h',
89 'system/dispatcher.cc',
90 'system/dispatcher.h',
91 'system/local_data_pipe.cc',
92 'system/local_data_pipe.h',
93 'system/local_message_pipe_endpoint.cc',
94 'system/local_message_pipe_endpoint.h',
97 'system/message_in_transit.cc',
98 'system/message_in_transit.h',
99 'system/message_pipe.cc',
100 'system/message_pipe.h',
101 'system/message_pipe_dispatcher.cc',
102 'system/message_pipe_dispatcher.h',
103 'system/message_pipe_endpoint.cc',
104 'system/message_pipe_endpoint.h',
105 'system/platform_channel.cc',
106 'system/platform_channel.h',
107 'system/platform_channel_handle.cc',
108 'system/platform_channel_handle.h',
109 'system/platform_channel_posix.cc',
110 'system/proxy_message_pipe_endpoint.cc',
111 'system/proxy_message_pipe_endpoint.h',
112 'system/raw_channel.h',
113 'system/raw_channel_posix.cc',
114 'system/raw_channel_win.cc',
115 'system/simple_dispatcher.cc',
116 'system/simple_dispatcher.h',
119 'system/waiter_list.cc',
120 'system/waiter_list.h',
124 'target_name': 'mojo_system_unittests',
125 'type': 'executable',
127 '../base/base.gyp:run_all_unittests',
128 '../testing/gtest.gyp:gtest',
129 'mojo_common_test_support',
134 'system/core_impl_unittest.cc',
135 'system/core_test_base.cc',
136 'system/core_test_base.h',
137 'system/data_pipe_unittest.cc',
138 'system/dispatcher_unittest.cc',
139 'system/local_data_pipe_unittest.cc',
140 'system/message_pipe_dispatcher_unittest.cc',
141 'system/message_pipe_unittest.cc',
142 'system/multiprocess_message_pipe_unittest.cc',
143 'system/raw_channel_posix_unittest.cc',
144 'system/remote_message_pipe_posix_unittest.cc',
145 'system/simple_dispatcher_unittest.cc',
146 'system/test_utils.cc',
147 'system/test_utils.h',
148 'system/waiter_list_unittest.cc',
149 'system/waiter_test_utils.cc',
150 'system/waiter_test_utils.h',
151 'system/waiter_unittest.cc',
155 'target_name': 'mojo_gles2',
156 'type': '<(component)',
158 '../gpu/gpu.gyp:gles2_c_lib',
161 'MOJO_GLES2_IMPLEMENTATION',
168 'target_name': 'mojo_common_lib',
169 'type': '<(component)',
171 'MOJO_COMMON_IMPLEMENTATION',
174 '../base/base.gyp:base',
175 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
179 'common/bindings_support_impl.cc',
180 'common/bindings_support_impl.h',
181 'common/common_type_converters.cc',
182 'common/common_type_converters.h',
183 'common/handle_watcher.cc',
184 'common/handle_watcher.h',
185 'common/message_pump_mojo.cc',
186 'common/message_pump_mojo.h',
187 'common/message_pump_mojo_handler.h',
191 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
192 'msvs_disabled_warnings': [
199 'target_name': 'mojo_common_test_support',
200 'type': 'static_library',
202 '../base/base.gyp:base',
203 '../base/base.gyp:test_support_base',
204 '../testing/gtest.gyp:gtest',
209 'common/test/multiprocess_test_base.cc',
210 'common/test/multiprocess_test_base.h',
214 'target_name': 'mojo_common_unittests',
215 'type': 'executable',
217 '../base/base.gyp:base',
218 '../base/base.gyp:base_message_loop_tests',
219 '../testing/gtest.gyp:gtest',
222 'mojo_common_test_support',
223 'mojo_public_test_support',
224 'mojo_run_all_unittests',
229 'common/common_type_converters_unittest.cc',
230 'common/handle_watcher_unittest.cc',
231 'common/message_pump_mojo_unittest.cc',
232 'common/test/multiprocess_test_base_unittest.cc',
236 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
237 'msvs_disabled_warnings': [
244 'target_name': 'mojo_shell_lib',
245 'type': 'static_library',
247 '../base/base.gyp:base',
248 '../net/net.gyp:net',
249 '../url/url.gyp:url_lib',
250 'mojo_shell_bindings',
253 'mojo_native_viewport_service',
258 'shell/dynamic_service_loader.cc',
259 'shell/dynamic_service_loader.h',
264 'shell/network_delegate.cc',
265 'shell/network_delegate.h',
268 'shell/service_manager.cc',
269 'shell/service_manager.h',
274 'shell/task_runners.cc',
275 'shell/task_runners.h',
276 'shell/url_request_context_getter.cc',
277 'shell/url_request_context_getter.h',
281 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
282 'msvs_disabled_warnings': [
289 'target_name': 'mojo_shell_bindings',
290 'type': 'static_library',
294 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
295 'export_dependent_settings': [
301 'target_name': 'mojo_shell',
302 'type': 'executable',
304 '../base/base.gyp:base',
305 '../ui/gl/gl.gyp:gl',
306 '../url/url.gyp:url_lib',
313 'shell/desktop/mojo_main.cc',
317 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
318 'msvs_disabled_warnings': [
325 'target_name': 'mojo_shell_unittests',
326 'type': 'executable',
328 '../base/base.gyp:base',
329 '../testing/gtest.gyp:gtest',
331 'mojo_run_all_unittests',
334 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
336 'shell/service_manager_unittest.cc',
345 'target_name': 'mojo_native_viewport_java',
348 '../base/base.gyp:base_java',
351 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
353 'includes': [ '../build/java.gypi' ],
356 'target_name': 'mojo_java_set_jni_headers',
359 'jni_gen_package': 'mojo',
360 'input_java_class': 'java/util/HashSet.class',
362 'includes': [ '../build/jar_file_jni_generator.gypi' ],
365 'target_name': 'mojo_jni_headers',
368 'mojo_java_set_jni_headers',
371 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
372 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
375 'jni_gen_package': 'mojo'
377 'includes': [ '../build/jni_generator.gypi' ],
380 'target_name': 'libmojo_shell',
381 'type': 'shared_library',
383 '../base/base.gyp:base',
384 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
385 '../ui/gfx/gfx.gyp:gfx',
386 '../ui/gfx/gfx.gyp:gfx_geometry',
387 '../ui/gl/gl.gyp:gl',
390 'mojo_shell_bindings',
394 'shell/android/library_loader.cc',
395 'shell/android/mojo_main.cc',
396 'shell/android/mojo_main.h',
400 'target_name': 'mojo_shell_apk',
403 '../base/base.gyp:base_java',
404 '../net/net.gyp:net_java',
405 'mojo_native_viewport_java',
409 'apk_name': 'MojoShell',
410 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
411 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
412 'native_lib_target': 'libmojo_shell',
414 'includes': [ '../build/java_apk.gypi' ],