4 'target_name': 'mojo_system',
5 'type': 'static_library',
7 'MOJO_SYSTEM_IMPLEMENTATION',
12 'direct_dependent_settings': {
17 'all_dependent_settings': {
19 # We need to be able to call the MojoSetSystemThunks() function in
23 '-Wl,--exclude-libs=ALL',
29 'public/c/system/buffer.h',
30 'public/c/system/core.h',
31 'public/c/system/data_pipe.h',
32 'public/c/system/functions.h',
33 'public/c/system/macros.h',
34 'public/c/system/message_pipe.h',
35 'public/c/system/system_export.h',
36 'public/c/system/types.h',
37 'public/platform/native/system_thunks.cc',
38 'public/platform/native/system_thunks.h',
42 'target_name': 'mojo_gles2',
43 'type': 'shared_library',
45 'MOJO_GLES2_IMPLEMENTATION',
52 '../third_party/khronos/khronos.gyp:khronos_headers'
54 'direct_dependent_settings': {
63 'public/c/gles2/gles2.h',
64 'public/c/gles2/gles2_export.h',
65 'public/gles2/gles2_private.cc',
66 'public/gles2/gles2_private.h',
71 # Make it a run-path dependent library.
72 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
78 'target_name': 'mojo_test_support',
79 'type': 'shared_library',
81 'MOJO_TEST_SUPPORT_IMPLEMENTATION',
86 'direct_dependent_settings': {
92 'public/c/test_support/test_support.h',
93 'public/c/test_support/test_support_export.h',
94 'public/tests/test_support_private.cc',
95 'public/tests/test_support_private.h',
100 # Make it a run-path dependent library.
101 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
107 'target_name': 'mojo_public_test_utils',
108 'type': 'static_library',
110 '../base/base.gyp:base',
111 '../testing/gtest.gyp:gtest',
115 'public/cpp/test_support/lib/test_support.cc',
116 'public/cpp/test_support/lib/test_utils.cc',
117 'public/cpp/test_support/test_utils.h',
120 # TODO(vtl): Reorganize the mojo_public_*_unittests.
122 'target_name': 'mojo_public_bindings_unittests',
123 'type': 'executable',
125 '../testing/gtest.gyp:gtest',
127 'mojo_environment_standalone',
128 'mojo_public_test_utils',
129 'mojo_run_all_unittests',
130 'mojo_public_test_interfaces',
134 'public/cpp/bindings/tests/array_unittest.cc',
135 'public/cpp/bindings/tests/bounds_checker_unittest.cc',
136 'public/cpp/bindings/tests/buffer_unittest.cc',
137 'public/cpp/bindings/tests/connector_unittest.cc',
138 'public/cpp/bindings/tests/handle_passing_unittest.cc',
139 'public/cpp/bindings/tests/interface_ptr_unittest.cc',
140 'public/cpp/bindings/tests/request_response_unittest.cc',
141 'public/cpp/bindings/tests/router_unittest.cc',
142 'public/cpp/bindings/tests/sample_service_unittest.cc',
143 'public/cpp/bindings/tests/string_unittest.cc',
144 'public/cpp/bindings/tests/struct_unittest.cc',
145 'public/cpp/bindings/tests/type_conversion_unittest.cc',
146 'public/cpp/bindings/tests/validation_test_input_parser.cc',
147 'public/cpp/bindings/tests/validation_test_input_parser.h',
148 'public/cpp/bindings/tests/validation_unittest.cc',
152 'target_name': 'mojo_public_environment_unittests',
153 'type': 'executable',
155 '../base/base.gyp:base',
156 '../testing/gtest.gyp:gtest',
157 'mojo_environment_standalone',
158 'mojo_public_test_utils',
159 'mojo_run_all_unittests',
163 'public/cpp/environment/tests/async_waiter_unittest.cc',
167 'target_name': 'mojo_public_system_unittests',
168 'type': 'executable',
170 '../base/base.gyp:base',
171 '../testing/gtest.gyp:gtest',
173 'mojo_public_test_utils',
174 'mojo_run_all_unittests',
177 'public/c/system/tests/core_unittest.cc',
178 'public/c/system/tests/core_unittest_pure_c.c',
179 'public/c/system/tests/macros_unittest.cc',
180 'public/cpp/system/tests/core_unittest.cc',
181 'public/cpp/system/tests/macros_unittest.cc',
185 'target_name': 'mojo_public_utility_unittests',
186 'type': 'executable',
188 '../base/base.gyp:base',
189 '../testing/gtest.gyp:gtest',
191 'mojo_public_test_utils',
192 'mojo_run_all_unittests',
196 'public/cpp/utility/tests/mutex_unittest.cc',
197 'public/cpp/utility/tests/run_loop_unittest.cc',
198 'public/cpp/utility/tests/thread_unittest.cc',
201 # See crbug.com/342893:
204 'public/cpp/utility/tests/mutex_unittest.cc',
205 'public/cpp/utility/tests/thread_unittest.cc',
211 'target_name': 'mojo_public_system_perftests',
212 'type': 'executable',
214 '../base/base.gyp:base',
215 '../testing/gtest.gyp:gtest',
216 'mojo_public_test_utils',
217 'mojo_run_all_perftests',
221 'public/c/system/tests/core_perftest.cc',
225 # GN version: //mojo/public/cpp/bindings
226 'target_name': 'mojo_cpp_bindings',
227 'type': 'static_library',
232 'public/cpp/bindings/array.h',
233 'public/cpp/bindings/callback.h',
234 'public/cpp/bindings/error_handler.h',
235 'public/cpp/bindings/interface_impl.h',
236 'public/cpp/bindings/interface_ptr.h',
237 'public/cpp/bindings/interface_request.h',
238 'public/cpp/bindings/message.h',
239 'public/cpp/bindings/message_filter.h',
240 'public/cpp/bindings/no_interface.h',
241 'public/cpp/bindings/string.h',
242 'public/cpp/bindings/sync_dispatcher.h',
243 'public/cpp/bindings/type_converter.h',
244 'public/cpp/bindings/lib/array_internal.h',
245 'public/cpp/bindings/lib/array_internal.cc',
246 'public/cpp/bindings/lib/array_serialization.h',
247 'public/cpp/bindings/lib/bindings_internal.h',
248 'public/cpp/bindings/lib/bindings_serialization.cc',
249 'public/cpp/bindings/lib/bindings_serialization.h',
250 'public/cpp/bindings/lib/bounds_checker.cc',
251 'public/cpp/bindings/lib/bounds_checker.h',
252 'public/cpp/bindings/lib/buffer.h',
253 'public/cpp/bindings/lib/callback_internal.h',
254 'public/cpp/bindings/lib/connector.cc',
255 'public/cpp/bindings/lib/connector.h',
256 'public/cpp/bindings/lib/filter_chain.cc',
257 'public/cpp/bindings/lib/filter_chain.h',
258 'public/cpp/bindings/lib/fixed_buffer.cc',
259 'public/cpp/bindings/lib/fixed_buffer.h',
260 'public/cpp/bindings/lib/interface_impl_internal.h',
261 'public/cpp/bindings/lib/interface_ptr_internal.h',
262 'public/cpp/bindings/lib/message.cc',
263 'public/cpp/bindings/lib/message_builder.cc',
264 'public/cpp/bindings/lib/message_builder.h',
265 'public/cpp/bindings/lib/message_filter.cc',
266 'public/cpp/bindings/lib/message_header_validator.cc',
267 'public/cpp/bindings/lib/message_header_validator.h',
268 'public/cpp/bindings/lib/message_internal.h',
269 'public/cpp/bindings/lib/message_queue.cc',
270 'public/cpp/bindings/lib/message_queue.h',
271 'public/cpp/bindings/lib/no_interface.cc',
272 'public/cpp/bindings/lib/router.cc',
273 'public/cpp/bindings/lib/router.h',
274 'public/cpp/bindings/lib/shared_data.h',
275 'public/cpp/bindings/lib/shared_ptr.h',
276 'public/cpp/bindings/lib/string_serialization.h',
277 'public/cpp/bindings/lib/string_serialization.cc',
278 'public/cpp/bindings/lib/sync_dispatcher.cc',
279 'public/cpp/bindings/lib/validation_errors.cc',
280 'public/cpp/bindings/lib/validation_errors.h',
284 # GN version: //mojo/public/js/bindings
285 'target_name': 'mojo_js_bindings',
286 'type': 'static_library',
291 'public/js/bindings/constants.cc',
292 'public/js/bindings/constants.h',
296 'target_name': 'mojo_public_test_interfaces',
297 'type': 'static_library',
299 'public/interfaces/bindings/tests/math_calculator.mojom',
300 'public/interfaces/bindings/tests/sample_factory.mojom',
301 'public/interfaces/bindings/tests/sample_import.mojom',
302 'public/interfaces/bindings/tests/sample_import2.mojom',
303 'public/interfaces/bindings/tests/sample_interfaces.mojom',
304 'public/interfaces/bindings/tests/sample_service.mojom',
305 'public/interfaces/bindings/tests/test_structs.mojom',
307 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
308 'export_dependent_settings': [
316 'target_name': 'mojo_environment_standalone',
317 'type': 'static_library',
319 'public/cpp/environment/default_async_waiter.h',
320 'public/cpp/environment/environment.h',
321 'public/cpp/environment/lib/default_async_waiter.cc',
322 'public/cpp/environment/lib/environment.cc',
329 'target_name': 'mojo_utility',
330 'type': 'static_library',
332 'public/cpp/utility/mutex.h',
333 'public/cpp/utility/run_loop.h',
334 'public/cpp/utility/run_loop_handler.h',
335 'public/cpp/utility/thread.h',
336 'public/cpp/utility/lib/mutex.cc',
337 'public/cpp/utility/lib/run_loop.cc',
338 'public/cpp/utility/lib/thread.cc',
339 'public/cpp/utility/lib/thread_local.h',
340 'public/cpp/utility/lib/thread_local_posix.cc',
341 'public/cpp/utility/lib/thread_local_win.cc',
344 # See crbug.com/342893:
347 'public/cpp/utility/mutex.h',
348 'public/cpp/utility/thread.h',
349 'public/cpp/utility/lib/mutex.cc',
350 'public/cpp/utility/lib/thread.cc',
359 # GN version: //mojo/public/interfaces/interface_provider:interface_provider
360 'target_name': 'mojo_interface_provider_bindings',
361 'type': 'static_library',
363 'public/interfaces/interface_provider/interface_provider.mojom',
365 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
369 'export_dependent_settings': [
374 # GN version: //mojo/public/interfaces/service_provider:service_provider
375 'target_name': 'mojo_service_provider_bindings',
376 'type': 'static_library',
378 'public/interfaces/service_provider/service_provider.mojom',
380 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
384 'export_dependent_settings': [
389 'target_name': 'mojo_application',
390 'type': 'static_library',
392 'public/cpp/application/application.h',
393 'public/cpp/application/connect.h',
394 'public/cpp/application/lib/application.cc',
395 'public/cpp/application/lib/service_connector.cc',
396 'public/cpp/application/lib/service_connector.h',
399 'mojo_service_provider_bindings',
401 'export_dependent_settings': [
402 'mojo_service_provider_bindings',
407 ['OS == "android"', {
410 'target_name': 'mojo_public_java',
413 'java_in_dir': 'public/java',
415 'includes': [ '../build/java.gypi' ],
418 'target_name': 'mojo_bindings_java',
421 'java_in_dir': 'bindings/java',
426 'includes': [ '../build/java.gypi' ],