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.
13 'direct_dependent_settings': {
21 'target_name': 'mojo_public',
25 'mojo_public_test_interfaces',
26 'mojo_public_test_utils',
32 # Targets that (a) need to obtain the settings that mojo_system passes on
33 # to its direct dependents but (b) are not themselves in a position to
34 # hardcode a dependency to mojo_system vs. mojo_system_impl (e.g.,
35 # because they are components) should depend on this target.
36 'target_name': 'mojo_system_placeholder',
40 # GN version: //mojo/public/c/system
41 'target_name': 'mojo_system',
42 'type': 'static_library',
44 'MOJO_SYSTEM_IMPLEMENTATION',
46 'all_dependent_settings': {
48 # We need to be able to call the MojoSetSystemThunks() function in
52 '-Wl,--exclude-libs=ALL',
58 'src/mojo/public/c/system/buffer.h',
59 'src/mojo/public/c/system/core.h',
60 'src/mojo/public/c/system/data_pipe.h',
61 'src/mojo/public/c/system/functions.h',
62 'src/mojo/public/c/system/macros.h',
63 'src/mojo/public/c/system/message_pipe.h',
64 'src/mojo/public/c/system/system_export.h',
65 'src/mojo/public/c/system/types.h',
66 'src/mojo/public/platform/native/system_thunks.cc',
67 'src/mojo/public/platform/native/system_thunks.h',
71 # GN version: //mojo/public/cpp/bindings
72 'target_name': 'mojo_cpp_bindings',
73 'type': 'static_library',
78 'src/mojo/public/cpp/bindings/array.h',
79 'src/mojo/public/cpp/bindings/binding.h',
80 'src/mojo/public/cpp/bindings/callback.h',
81 'src/mojo/public/cpp/bindings/error_handler.h',
82 'src/mojo/public/cpp/bindings/interface_impl.h',
83 'src/mojo/public/cpp/bindings/interface_ptr.h',
84 'src/mojo/public/cpp/bindings/interface_request.h',
85 'src/mojo/public/cpp/bindings/message.h',
86 'src/mojo/public/cpp/bindings/message_filter.h',
87 'src/mojo/public/cpp/bindings/no_interface.h',
88 'src/mojo/public/cpp/bindings/string.h',
89 'src/mojo/public/cpp/bindings/strong_binding.h',
90 'src/mojo/public/cpp/bindings/type_converter.h',
91 'src/mojo/public/cpp/bindings/lib/array_internal.h',
92 'src/mojo/public/cpp/bindings/lib/array_internal.cc',
93 'src/mojo/public/cpp/bindings/lib/array_serialization.h',
94 'src/mojo/public/cpp/bindings/lib/bindings_internal.h',
95 'src/mojo/public/cpp/bindings/lib/bindings_serialization.cc',
96 'src/mojo/public/cpp/bindings/lib/bindings_serialization.h',
97 'src/mojo/public/cpp/bindings/lib/bounds_checker.cc',
98 'src/mojo/public/cpp/bindings/lib/bounds_checker.h',
99 'src/mojo/public/cpp/bindings/lib/buffer.h',
100 'src/mojo/public/cpp/bindings/lib/callback_internal.h',
101 'src/mojo/public/cpp/bindings/lib/connector.cc',
102 'src/mojo/public/cpp/bindings/lib/connector.h',
103 'src/mojo/public/cpp/bindings/lib/filter_chain.cc',
104 'src/mojo/public/cpp/bindings/lib/filter_chain.h',
105 'src/mojo/public/cpp/bindings/lib/fixed_buffer.cc',
106 'src/mojo/public/cpp/bindings/lib/fixed_buffer.h',
107 'src/mojo/public/cpp/bindings/lib/interface_ptr_internal.h',
108 'src/mojo/public/cpp/bindings/lib/map_data_internal.h',
109 'src/mojo/public/cpp/bindings/lib/map_internal.h',
110 'src/mojo/public/cpp/bindings/lib/map_serialization.h',
111 'src/mojo/public/cpp/bindings/lib/message.cc',
112 'src/mojo/public/cpp/bindings/lib/message_builder.cc',
113 'src/mojo/public/cpp/bindings/lib/message_builder.h',
114 'src/mojo/public/cpp/bindings/lib/message_filter.cc',
115 'src/mojo/public/cpp/bindings/lib/message_header_validator.cc',
116 'src/mojo/public/cpp/bindings/lib/message_header_validator.h',
117 'src/mojo/public/cpp/bindings/lib/message_internal.h',
118 'src/mojo/public/cpp/bindings/lib/message_queue.cc',
119 'src/mojo/public/cpp/bindings/lib/message_queue.h',
120 'src/mojo/public/cpp/bindings/lib/no_interface.cc',
121 'src/mojo/public/cpp/bindings/lib/router.cc',
122 'src/mojo/public/cpp/bindings/lib/router.h',
123 'src/mojo/public/cpp/bindings/lib/shared_data.h',
124 'src/mojo/public/cpp/bindings/lib/shared_ptr.h',
125 'src/mojo/public/cpp/bindings/lib/string_serialization.h',
126 'src/mojo/public/cpp/bindings/lib/string_serialization.cc',
127 'src/mojo/public/cpp/bindings/lib/validate_params.h',
128 'src/mojo/public/cpp/bindings/lib/validation_errors.cc',
129 'src/mojo/public/cpp/bindings/lib/validation_errors.h',
133 # GN version: //mojo/public/js
134 'target_name': 'mojo_js_bindings',
135 'type': 'static_library',
140 'src/mojo/public/js/constants.cc',
141 'src/mojo/public/js/constants.h',
145 # GN version: //mojo/public/cpp/environment:standalone
146 'target_name': 'mojo_environment_standalone',
147 'type': 'static_library',
149 'src/mojo/public/c/environment/async_waiter.h',
150 'src/mojo/public/c/environment/logger.h',
151 'src/mojo/public/cpp/environment/async_waiter.h',
152 'src/mojo/public/cpp/environment/environment.h',
153 'src/mojo/public/cpp/environment/lib/async_waiter.cc',
154 'src/mojo/public/cpp/environment/lib/default_async_waiter.cc',
155 'src/mojo/public/cpp/environment/lib/default_async_waiter.h',
156 'src/mojo/public/cpp/environment/lib/default_logger.cc',
157 'src/mojo/public/cpp/environment/lib/default_logger.h',
158 'src/mojo/public/cpp/environment/lib/environment.cc',
159 'src/mojo/public/cpp/environment/lib/logging.cc',
160 'src/mojo/public/cpp/environment/logging.h',
167 # GN version: //mojo/public/cpp/utility
168 'target_name': 'mojo_utility',
169 'type': 'static_library',
171 'src/mojo/public/cpp/utility/mutex.h',
172 'src/mojo/public/cpp/utility/run_loop.h',
173 'src/mojo/public/cpp/utility/run_loop_handler.h',
174 'src/mojo/public/cpp/utility/thread.h',
175 'src/mojo/public/cpp/utility/lib/mutex.cc',
176 'src/mojo/public/cpp/utility/lib/run_loop.cc',
177 'src/mojo/public/cpp/utility/lib/thread.cc',
178 'src/mojo/public/cpp/utility/lib/thread_local.h',
179 'src/mojo/public/cpp/utility/lib/thread_local_posix.cc',
180 'src/mojo/public/cpp/utility/lib/thread_local_win.cc',
183 # See crbug.com/342893:
186 'src/mojo/public/cpp/utility/mutex.h',
187 'src/mojo/public/cpp/utility/thread.h',
188 'src/mojo/public/cpp/utility/lib/mutex.cc',
189 'src/mojo/public/cpp/utility/lib/thread.cc',
198 'target_name': 'mojo_application_bindings_mojom',
202 'src/mojo/public/interfaces/application/application.mojom',
203 'src/mojo/public/interfaces/application/service_provider.mojom',
204 'src/mojo/public/interfaces/application/shell.mojom',
207 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
210 # GN version: //mojo/public/interfaces/application:application
211 'target_name': 'mojo_application_bindings',
212 'type': 'static_library',
214 'mojo_application_bindings_mojom',
217 'export_dependent_settings': [
222 # GN version: //mojo/public/cpp/application
223 'target_name': 'mojo_application_base',
224 'type': 'static_library',
226 'src/mojo/public/cpp/application/application_connection.h',
227 'src/mojo/public/cpp/application/application_delegate.h',
228 'src/mojo/public/cpp/application/application_impl.h',
229 'src/mojo/public/cpp/application/connect.h',
230 'src/mojo/public/cpp/application/interface_factory.h',
231 'src/mojo/public/cpp/application/interface_factory_impl.h',
232 'src/mojo/public/cpp/application/lib/application_connection.cc',
233 'src/mojo/public/cpp/application/lib/application_delegate.cc',
234 'src/mojo/public/cpp/application/lib/application_impl.cc',
235 'src/mojo/public/cpp/application/lib/service_provider_impl.cc',
236 'src/mojo/public/cpp/application/lib/service_connector.cc',
237 'src/mojo/public/cpp/application/lib/service_connector.h',
238 'src/mojo/public/cpp/application/lib/service_registry.cc',
239 'src/mojo/public/cpp/application/lib/service_registry.h',
240 'src/mojo/public/cpp/application/service_provider_impl.h',
243 'mojo_application_bindings',
245 'export_dependent_settings': [
246 'mojo_application_bindings',
250 # GN version: //mojo/public/cpp/application:standalone"
251 'target_name': 'mojo_application_standalone',
252 'type': 'static_library',
254 'src/mojo/public/cpp/application/lib/application_runner.cc',
255 'src/mojo/public/cpp/application/application_runner.h',
258 'mojo_application_base',
259 'mojo_environment_standalone',
261 'export_dependent_settings': [
262 'mojo_application_base',
266 # GN version: //mojo/public/c/test_support
267 'target_name': 'mojo_test_support',
269 'MOJO_TEST_SUPPORT_IMPLEMENTATION',
274 'direct_dependent_settings': {
280 'src/mojo/public/c/test_support/test_support.h',
281 'src/mojo/public/c/test_support/test_support_export.h',
282 # TODO(vtl): Convert this to thunks http://crbug.com/386799
283 'src/mojo/public/tests/test_support_private.cc',
284 'src/mojo/public/tests/test_support_private.h',
288 'type': 'static_library',
290 'type': 'shared_library',
294 # Make it a run-path dependent library.
295 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
301 # GN version: //mojo/public/cpp/test_support:test_utils
302 'target_name': 'mojo_public_test_utils',
303 'type': 'static_library',
305 '../../base/base.gyp:base',
306 '../../testing/gtest.gyp:gtest',
310 'src/mojo/public/cpp/test_support/lib/test_support.cc',
311 'src/mojo/public/cpp/test_support/lib/test_utils.cc',
312 'src/mojo/public/cpp/test_support/test_utils.h',
316 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils
317 'target_name': 'mojo_public_bindings_test_utils',
318 'type': 'static_library',
320 '../../base/base.gyp:base',
323 'src/mojo/public/cpp/bindings/tests/validation_test_input_parser.cc',
324 'src/mojo/public/cpp/bindings/tests/validation_test_input_parser.h',
328 'target_name': 'mojo_public_test_interfaces_mojom',
332 'src/mojo/public/interfaces/bindings/tests/math_calculator.mojom',
333 'src/mojo/public/interfaces/bindings/tests/no_module.mojom',
334 'src/mojo/public/interfaces/bindings/tests/rect.mojom',
335 'src/mojo/public/interfaces/bindings/tests/regression_tests.mojom',
336 'src/mojo/public/interfaces/bindings/tests/regression_tests_import.mojom',
337 'src/mojo/public/interfaces/bindings/tests/sample_factory.mojom',
338 'src/mojo/public/interfaces/bindings/tests/sample_import.mojom',
339 'src/mojo/public/interfaces/bindings/tests/sample_import2.mojom',
340 'src/mojo/public/interfaces/bindings/tests/sample_interfaces.mojom',
341 'src/mojo/public/interfaces/bindings/tests/sample_service.mojom',
342 'src/mojo/public/interfaces/bindings/tests/serialization_test_structs.mojom',
343 'src/mojo/public/interfaces/bindings/tests/test_structs.mojom',
344 'src/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom',
347 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
350 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
351 'target_name': 'mojo_public_test_interfaces',
352 'type': 'static_library',
353 'export_dependent_settings': [
357 'mojo_public_test_interfaces_mojom',
363 ['OS == "android"', {
366 # GN version: //mojo/public/java_system
367 'target_name': 'mojo_public_java',
370 'java_in_dir': 'src/mojo/public/java/system',
372 'includes': [ '../../build/java.gypi' ],
375 # GN version: //mojo/public/java_bindings
376 'target_name': 'mojo_bindings_java',
379 'java_in_dir': 'src/mojo/public/java/bindings',
384 'includes': [ '../../build/java.gypi' ],