1 # Copyright 2014 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.
7 '../mojo_variables.gypi',
11 'target_name': 'mojo_public',
15 'mojo_public_test_interfaces',
16 'mojo_public_test_utils',
22 'target_name': 'mojo_none',
26 # GN version: //mojo/public/c/system
27 'target_name': 'mojo_system',
28 'type': 'static_library',
30 'MOJO_SYSTEM_IMPLEMENTATION',
35 'direct_dependent_settings': {
40 'all_dependent_settings': {
42 # We need to be able to call the MojoSetSystemThunks() function in
46 '-Wl,--exclude-libs=ALL',
54 'c/system/data_pipe.h',
55 'c/system/functions.h',
57 'c/system/message_pipe.h',
58 'c/system/system_export.h',
60 'platform/native/system_thunks.cc',
61 'platform/native/system_thunks.h',
65 # GN version: //mojo/public/cpp/bindings
66 'target_name': 'mojo_cpp_bindings',
67 'type': 'static_library',
72 'cpp/bindings/array.h',
73 'cpp/bindings/binding.h',
74 'cpp/bindings/callback.h',
75 'cpp/bindings/error_handler.h',
76 'cpp/bindings/interface_impl.h',
77 'cpp/bindings/interface_ptr.h',
78 'cpp/bindings/interface_request.h',
79 'cpp/bindings/message.h',
80 'cpp/bindings/message_filter.h',
81 'cpp/bindings/no_interface.h',
82 'cpp/bindings/string.h',
83 'cpp/bindings/strong_binding.h',
84 'cpp/bindings/type_converter.h',
85 'cpp/bindings/lib/array_internal.h',
86 'cpp/bindings/lib/array_internal.cc',
87 'cpp/bindings/lib/array_serialization.h',
88 'cpp/bindings/lib/bindings_internal.h',
89 'cpp/bindings/lib/bindings_serialization.cc',
90 'cpp/bindings/lib/bindings_serialization.h',
91 'cpp/bindings/lib/bounds_checker.cc',
92 'cpp/bindings/lib/bounds_checker.h',
93 'cpp/bindings/lib/buffer.h',
94 'cpp/bindings/lib/callback_internal.h',
95 'cpp/bindings/lib/connector.cc',
96 'cpp/bindings/lib/connector.h',
97 'cpp/bindings/lib/filter_chain.cc',
98 'cpp/bindings/lib/filter_chain.h',
99 'cpp/bindings/lib/fixed_buffer.cc',
100 'cpp/bindings/lib/fixed_buffer.h',
101 'cpp/bindings/lib/interface_ptr_internal.h',
102 'cpp/bindings/lib/map_data_internal.h',
103 'cpp/bindings/lib/map_internal.h',
104 'cpp/bindings/lib/map_serialization.h',
105 'cpp/bindings/lib/message.cc',
106 'cpp/bindings/lib/message_builder.cc',
107 'cpp/bindings/lib/message_builder.h',
108 'cpp/bindings/lib/message_filter.cc',
109 'cpp/bindings/lib/message_header_validator.cc',
110 'cpp/bindings/lib/message_header_validator.h',
111 'cpp/bindings/lib/message_internal.h',
112 'cpp/bindings/lib/message_queue.cc',
113 'cpp/bindings/lib/message_queue.h',
114 'cpp/bindings/lib/no_interface.cc',
115 'cpp/bindings/lib/router.cc',
116 'cpp/bindings/lib/router.h',
117 'cpp/bindings/lib/shared_data.h',
118 'cpp/bindings/lib/shared_ptr.h',
119 'cpp/bindings/lib/string_serialization.h',
120 'cpp/bindings/lib/string_serialization.cc',
121 'cpp/bindings/lib/validate_params.h',
122 'cpp/bindings/lib/validation_errors.cc',
123 'cpp/bindings/lib/validation_errors.h',
127 # GN version: //mojo/public/js
128 'target_name': 'mojo_js_bindings',
129 'type': 'static_library',
139 # GN version: //mojo/public/cpp/environment:standalone
140 'target_name': 'mojo_environment_standalone',
141 'type': 'static_library',
143 'c/environment/async_waiter.h',
144 'c/environment/logger.h',
145 'cpp/environment/async_waiter.h',
146 'cpp/environment/environment.h',
147 'cpp/environment/lib/async_waiter.cc',
148 'cpp/environment/lib/default_async_waiter.cc',
149 'cpp/environment/lib/default_async_waiter.h',
150 'cpp/environment/lib/default_logger.cc',
151 'cpp/environment/lib/default_logger.h',
152 'cpp/environment/lib/environment.cc',
153 'cpp/environment/lib/logging.cc',
154 'cpp/environment/logging.h',
161 # GN version: //mojo/public/cpp/utility
162 'target_name': 'mojo_utility',
163 'type': 'static_library',
165 'cpp/utility/mutex.h',
166 'cpp/utility/run_loop.h',
167 'cpp/utility/run_loop_handler.h',
168 'cpp/utility/thread.h',
169 'cpp/utility/lib/mutex.cc',
170 'cpp/utility/lib/run_loop.cc',
171 'cpp/utility/lib/thread.cc',
172 'cpp/utility/lib/thread_local.h',
173 'cpp/utility/lib/thread_local_posix.cc',
174 'cpp/utility/lib/thread_local_win.cc',
177 # See crbug.com/342893:
180 'cpp/utility/mutex.h',
181 'cpp/utility/thread.h',
182 'cpp/utility/lib/mutex.cc',
183 'cpp/utility/lib/thread.cc',
192 'target_name': 'mojo_application_bindings_mojom',
196 'interfaces/application/application.mojom',
197 'interfaces/application/service_provider.mojom',
198 'interfaces/application/shell.mojom',
201 'includes': [ 'tools/bindings/mojom_bindings_generator_explicit.gypi' ],
204 # GN version: //mojo/public/interfaces/application:application
205 'target_name': 'mojo_application_bindings',
206 'type': 'static_library',
208 'mojo_application_bindings_mojom',
211 'export_dependent_settings': [
216 # GN version: //mojo/public/cpp/application
217 'target_name': 'mojo_application_base',
218 'type': 'static_library',
220 'cpp/application/application_connection.h',
221 'cpp/application/application_delegate.h',
222 'cpp/application/application_impl.h',
223 'cpp/application/connect.h',
224 'cpp/application/interface_factory.h',
225 'cpp/application/interface_factory_impl.h',
226 'cpp/application/lib/application_connection.cc',
227 'cpp/application/lib/application_delegate.cc',
228 'cpp/application/lib/application_impl.cc',
229 'cpp/application/lib/service_provider_impl.cc',
230 'cpp/application/lib/service_connector.cc',
231 'cpp/application/lib/service_connector.h',
232 'cpp/application/lib/service_registry.cc',
233 'cpp/application/lib/service_registry.h',
234 'cpp/application/lib/weak_service_provider.cc',
235 'cpp/application/lib/weak_service_provider.h',
236 'cpp/application/service_provider_impl.h',
239 'mojo_application_bindings',
240 'mojo_application_bindings_mojom',
242 'export_dependent_settings': [
243 'mojo_application_bindings',
244 'mojo_application_bindings_mojom',
248 # GN version: //mojo/public/cpp/application:standalone"
249 'target_name': 'mojo_application_standalone',
250 'type': 'static_library',
252 'cpp/application/lib/application_runner.cc',
253 'cpp/application/application_runner.h',
256 'mojo_application_base',
257 'mojo_environment_standalone',
259 'export_dependent_settings': [
260 'mojo_application_base',
264 # GN version: //mojo/public/c/test_support
265 'target_name': 'mojo_test_support',
267 'MOJO_TEST_SUPPORT_IMPLEMENTATION',
272 'direct_dependent_settings': {
278 'c/test_support/test_support.h',
279 'c/test_support/test_support_export.h',
280 # TODO(vtl): Convert this to thunks http://crbug.com/386799
281 'tests/test_support_private.cc',
282 'tests/test_support_private.h',
286 'type': 'static_library',
288 'type': 'shared_library',
292 # Make it a run-path dependent library.
293 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
299 # GN version: //mojo/public/cpp/test_support:test_utils
300 'target_name': 'mojo_public_test_utils',
301 'type': 'static_library',
303 '../../base/base.gyp:base',
304 '../../testing/gtest.gyp:gtest',
308 'cpp/test_support/lib/test_support.cc',
309 'cpp/test_support/lib/test_utils.cc',
310 'cpp/test_support/test_utils.h',
314 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils
315 'target_name': 'mojo_public_bindings_test_utils',
316 'type': 'static_library',
318 '../../base/base.gyp:base',
321 'cpp/bindings/tests/validation_test_input_parser.cc',
322 'cpp/bindings/tests/validation_test_input_parser.h',
326 'target_name': 'mojo_public_test_interfaces_mojom',
330 'interfaces/bindings/tests/math_calculator.mojom',
331 'interfaces/bindings/tests/no_module.mojom',
332 'interfaces/bindings/tests/rect.mojom',
333 'interfaces/bindings/tests/regression_tests.mojom',
334 'interfaces/bindings/tests/sample_factory.mojom',
335 'interfaces/bindings/tests/sample_import.mojom',
336 'interfaces/bindings/tests/sample_import2.mojom',
337 'interfaces/bindings/tests/sample_interfaces.mojom',
338 'interfaces/bindings/tests/sample_service.mojom',
339 'interfaces/bindings/tests/serialization_test_structs.mojom',
340 'interfaces/bindings/tests/test_structs.mojom',
341 'interfaces/bindings/tests/validation_test_interfaces.mojom',
344 'includes': [ 'tools/bindings/mojom_bindings_generator_explicit.gypi' ],
347 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
348 'target_name': 'mojo_public_test_interfaces',
349 'type': 'static_library',
350 'export_dependent_settings': [
354 'mojo_public_test_interfaces_mojom',
360 ['OS == "android"', {
363 # GN version: //mojo/public/java_system
364 'target_name': 'mojo_public_java',
367 'java_in_dir': 'java/system',
369 'includes': [ '../../build/java.gypi' ],
372 # GN version: //mojo/public/java_bindings
373 'target_name': 'mojo_bindings_java',
376 'java_in_dir': 'java/bindings',
381 'includes': [ '../../build/java.gypi' ],