Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: mojo/mojo_public.gyp

Issue 1676913002: [mojo] Delete third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: let's try that again Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/mojo_edk_tests.gyp ('k') | mojo/mojo_public_bindings_unittests.isolate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 {
6 'includes': [
7 'mojo_variables.gypi',
8 ],
9 'target_defaults' : {
10 'include_dirs': [
11 '..',
12 ],
13 },
14 'targets': [
15 {
16 'target_name': 'mojo_public',
17 'type': 'none',
18 'dependencies': [
19 'mojo_js_bindings',
20 'mojo_public_test_interfaces',
21 'mojo_public_test_utils',
22 'mojo_system',
23 'mojo_utility',
24 ],
25 },
26 {
27 # Targets that (a) need to obtain the settings that mojo_system passes on
28 # to its direct dependents but (b) are not themselves in a position to
29 # hardcode a dependency to mojo_system vs. mojo_system_impl (e.g.,
30 # because they are components) should depend on this target.
31 'target_name': 'mojo_system_placeholder',
32 'type': 'none',
33 },
34 {
35 'target_name': 'mojo_system',
36 'type': 'static_library',
37 'defines': [
38 'MOJO_SYSTEM_IMPLEMENTATION',
39 ],
40 'all_dependent_settings': {
41 'conditions': [
42 # We need to be able to call the MojoSetSystemThunks() function in
43 # system_thunks.cc
44 ['OS=="android"', {
45 'ldflags!': [
46 '-Wl,--exclude-libs=ALL',
47 ],
48 }],
49 ],
50 },
51 'sources': [
52 'public/platform/native/system_thunks.cc',
53 'public/platform/native/system_thunks.h',
54 ],
55 'dependencies': [
56 'mojo_system_headers',
57 ],
58 },
59 {
60 # GN version: //mojo/public/c/system
61 'target_name': 'mojo_system_headers',
62 'type': 'none',
63 'sources': [
64 'public/c/system/buffer.h',
65 'public/c/system/core.h',
66 'public/c/system/data_pipe.h',
67 'public/c/system/functions.h',
68 'public/c/system/macros.h',
69 'public/c/system/message_pipe.h',
70 'public/c/system/system_export.h',
71 'public/c/system/types.h',
72 'public/c/system/wait_set.h',
73 ],
74 },
75 {
76 # GN version: //mojo/public/cpp/system
77 'target_name': 'mojo_system_cpp_headers',
78 'type': 'none',
79 'sources': [
80 'public/cpp/system/buffer.h',
81 'public/cpp/system/core.h',
82 'public/cpp/system/data_pipe.h',
83 'public/cpp/system/functions.h',
84 'public/cpp/system/handle.h',
85 'public/cpp/system/macros.h',
86 'public/cpp/system/message_pipe.h',
87 ],
88 'dependencies': [
89 'mojo_system_headers',
90 ],
91 },
92 {
93 # GN version: //mojo/public/cpp/bindings
94 'target_name': 'mojo_cpp_bindings',
95 'type': 'static_library',
96 'include_dirs': [
97 '..'
98 ],
99 'sources': [
100 'public/cpp/bindings/array.h',
101 'public/cpp/bindings/associated_binding.h',
102 'public/cpp/bindings/associated_group.h',
103 'public/cpp/bindings/associated_interface_ptr.h',
104 'public/cpp/bindings/associated_interface_ptr_info.h',
105 'public/cpp/bindings/associated_interface_request.h',
106 'public/cpp/bindings/binding.h',
107 'public/cpp/bindings/callback.h',
108 'public/cpp/bindings/interface_ptr.h',
109 'public/cpp/bindings/interface_request.h',
110 'public/cpp/bindings/lib/array_internal.cc',
111 'public/cpp/bindings/lib/array_internal.h',
112 'public/cpp/bindings/lib/array_serialization.h',
113 'public/cpp/bindings/lib/associated_group.cc',
114 'public/cpp/bindings/lib/associated_interface_ptr_state.h',
115 'public/cpp/bindings/lib/binding_state.h',
116 'public/cpp/bindings/lib/bindings_internal.h',
117 'public/cpp/bindings/lib/bindings_serialization.cc',
118 'public/cpp/bindings/lib/bindings_serialization.h',
119 'public/cpp/bindings/lib/bounds_checker.cc',
120 'public/cpp/bindings/lib/bounds_checker.h',
121 'public/cpp/bindings/lib/buffer.h',
122 'public/cpp/bindings/lib/callback_internal.h',
123 'public/cpp/bindings/lib/connector.cc',
124 'public/cpp/bindings/lib/connector.h',
125 'public/cpp/bindings/lib/control_message_handler.cc',
126 'public/cpp/bindings/lib/control_message_handler.h',
127 'public/cpp/bindings/lib/control_message_proxy.cc',
128 'public/cpp/bindings/lib/control_message_proxy.h',
129 'public/cpp/bindings/lib/filter_chain.cc',
130 'public/cpp/bindings/lib/filter_chain.h',
131 'public/cpp/bindings/lib/fixed_buffer.cc',
132 'public/cpp/bindings/lib/interface_id.h',
133 'public/cpp/bindings/lib/fixed_buffer.h',
134 'public/cpp/bindings/lib/interface_endpoint_client.cc',
135 'public/cpp/bindings/lib/interface_endpoint_client.h',
136 'public/cpp/bindings/lib/interface_ptr_state.h',
137 'public/cpp/bindings/lib/map_data_internal.h',
138 'public/cpp/bindings/lib/map_internal.h',
139 'public/cpp/bindings/lib/map_serialization.h',
140 'public/cpp/bindings/lib/message.cc',
141 'public/cpp/bindings/lib/message_builder.cc',
142 'public/cpp/bindings/lib/message_builder.h',
143 'public/cpp/bindings/lib/message_filter.cc',
144 'public/cpp/bindings/lib/message_header_validator.cc',
145 'public/cpp/bindings/lib/message_header_validator.h',
146 'public/cpp/bindings/lib/message_internal.h',
147 'public/cpp/bindings/lib/multiplex_router.cc',
148 'public/cpp/bindings/lib/multiplex_router.h',
149 'public/cpp/bindings/lib/no_interface.cc',
150 'public/cpp/bindings/lib/pickle_buffer.cc',
151 'public/cpp/bindings/lib/pickle_buffer.h',
152 'public/cpp/bindings/lib/pipe_control_message_handler.cc',
153 'public/cpp/bindings/lib/pipe_control_message_handler.h',
154 'public/cpp/bindings/lib/pipe_control_message_handler_delegate.h',
155 'public/cpp/bindings/lib/pipe_control_message_proxy.cc',
156 'public/cpp/bindings/lib/pipe_control_message_proxy.h',
157 'public/cpp/bindings/lib/router.cc',
158 'public/cpp/bindings/lib/router.h',
159 'public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc',
160 'public/cpp/bindings/lib/scoped_interface_endpoint_handle.h',
161 'public/cpp/bindings/lib/shared_data.h',
162 'public/cpp/bindings/lib/shared_ptr.h',
163 'public/cpp/bindings/lib/string_serialization.cc',
164 'public/cpp/bindings/lib/string_serialization.h',
165 'public/cpp/bindings/lib/validate_params.h',
166 'public/cpp/bindings/lib/validation_errors.cc',
167 'public/cpp/bindings/lib/validation_errors.h',
168 'public/cpp/bindings/lib/validation_util.cc',
169 'public/cpp/bindings/lib/validation_util.h',
170 'public/cpp/bindings/lib/value_traits.h',
171 'public/cpp/bindings/message.h',
172 'public/cpp/bindings/message_filter.h',
173 'public/cpp/bindings/no_interface.h',
174 'public/cpp/bindings/string.h',
175 'public/cpp/bindings/strong_binding.h',
176 'public/cpp/bindings/type_converter.h',
177 # This comes from the mojo_interface_bindings_cpp_sources dependency.
178 '>@(mojom_generated_sources)',
179 ],
180 'dependencies': [
181 '../base/base.gyp:base',
182 'mojo_interface_bindings_cpp_sources',
183 ],
184 },
185 {
186 # GN version: //mojo/public/js
187 'target_name': 'mojo_js_bindings',
188 'type': 'static_library',
189 'include_dirs': [
190 '..'
191 ],
192 'sources': [
193 'public/js/constants.cc',
194 'public/js/constants.h',
195 ],
196 },
197 {
198 # GN version: //mojo/public/cpp/environment:standalone
199 'target_name': 'mojo_environment_standalone',
200 'type': 'static_library',
201 'sources': [
202 'public/c/environment/async_waiter.h',
203 'public/c/environment/logger.h',
204 'public/cpp/environment/async_waiter.h',
205 'public/cpp/environment/environment.h',
206 'public/cpp/environment/lib/async_waiter.cc',
207 'public/cpp/environment/lib/default_async_waiter.cc',
208 'public/cpp/environment/lib/default_async_waiter.h',
209 'public/cpp/environment/lib/default_logger.cc',
210 'public/cpp/environment/lib/default_logger.h',
211 'public/cpp/environment/lib/default_task_tracker.cc',
212 'public/cpp/environment/lib/default_task_tracker.h',
213 'public/cpp/environment/lib/environment.cc',
214 'public/cpp/environment/lib/logging.cc',
215 'public/cpp/environment/lib/scoped_task_tracking.cc',
216 'public/cpp/environment/lib/scoped_task_tracking.h',
217 'public/cpp/environment/logging.h',
218 'public/cpp/environment/task_tracker.h',
219 ],
220 'include_dirs': [
221 '..',
222 ],
223 },
224 {
225 # GN version: //mojo/public/cpp/utility
226 'target_name': 'mojo_utility',
227 'type': 'static_library',
228 'sources': [
229 'public/cpp/utility/lib/mutex.cc',
230 'public/cpp/utility/lib/run_loop.cc',
231 'public/cpp/utility/lib/thread.cc',
232 'public/cpp/utility/lib/thread_local.h',
233 'public/cpp/utility/lib/thread_local_posix.cc',
234 'public/cpp/utility/lib/thread_local_win.cc',
235 'public/cpp/utility/mutex.h',
236 'public/cpp/utility/run_loop.h',
237 'public/cpp/utility/run_loop_handler.h',
238 'public/cpp/utility/thread.h',
239 ],
240 'conditions': [
241 # See crbug.com/342893:
242 ['OS=="win"', {
243 'sources!': [
244 'public/cpp/utility/lib/mutex.cc',
245 'public/cpp/utility/lib/thread.cc',
246 'public/cpp/utility/mutex.h',
247 'public/cpp/utility/thread.h',
248 ],
249 }],
250 ],
251 'include_dirs': [
252 '..',
253 ],
254 },
255 {
256 'target_name': 'mojo_interface_bindings_mojom',
257 'type': 'none',
258 'variables': {
259 'require_interface_bindings': 0,
260 'mojom_files': [
261 'public/interfaces/bindings/interface_control_messages.mojom',
262 'public/interfaces/bindings/pipe_control_messages.mojom',
263 ],
264 },
265 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
266 },
267 {
268 'target_name': 'mojo_interface_bindings_cpp_sources',
269 'type': 'none',
270 'dependencies': [
271 'mojo_interface_bindings_mojom',
272 ],
273 },
274 {
275 # This target can be used to introduce a dependency on interface bindings
276 # generation without introducing any side-effects in the dependent
277 # target's configuration.
278 'target_name': 'mojo_interface_bindings_generation',
279 'type': 'none',
280 'dependencies': [
281 'mojo_interface_bindings_cpp_sources',
282 ],
283 },
284 {
285 # GN version: //mojo/public/c/test_support
286 'target_name': 'mojo_public_test_support',
287 'defines': [
288 'MOJO_TEST_SUPPORT_IMPLEMENTATION',
289 ],
290 'include_dirs': [
291 '..',
292 ],
293 'direct_dependent_settings': {
294 'include_dirs': [
295 '..',
296 ],
297 },
298 'sources': [
299 'public/c/test_support/test_support.h',
300 'public/c/test_support/test_support_export.h',
301 # TODO(vtl): Convert this to thunks http://crbug.com/386799
302 'public/tests/test_support_private.cc',
303 'public/tests/test_support_private.h',
304 ],
305 'conditions': [
306 ['OS=="ios"', {
307 'type': 'static_library',
308 }, {
309 'type': 'shared_library',
310 }],
311 ['OS=="mac"', {
312 'xcode_settings': {
313 # Make it a run-path dependent library.
314 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
315 },
316 }],
317 ],
318 },
319 {
320 # GN version: //mojo/public/cpp/test_support:test_utils
321 'target_name': 'mojo_public_test_utils',
322 'type': 'static_library',
323 'dependencies': [
324 '../base/base.gyp:base',
325 '../testing/gtest.gyp:gtest',
326 'mojo_public_test_support',
327 ],
328 'sources': [
329 'public/cpp/test_support/lib/test_support.cc',
330 'public/cpp/test_support/lib/test_utils.cc',
331 'public/cpp/test_support/test_utils.h',
332 ],
333 },
334 {
335 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_test_u tils
336 'target_name': 'mojo_public_bindings_test_utils',
337 'type': 'static_library',
338 'dependencies': [
339 '../base/base.gyp:base',
340 ],
341 'sources': [
342 'public/cpp/bindings/tests/validation_test_input_parser.cc',
343 'public/cpp/bindings/tests/validation_test_input_parser.h',
344 ],
345 },
346 {
347 'target_name': 'mojo_public_test_interfaces_mojom',
348 'type': 'none',
349 'variables': {
350 'mojom_files': [
351 'public/interfaces/bindings/tests/math_calculator.mojom',
352 'public/interfaces/bindings/tests/no_module.mojom',
353 'public/interfaces/bindings/tests/ping_service.mojom',
354 'public/interfaces/bindings/tests/rect.mojom',
355 'public/interfaces/bindings/tests/regression_tests.mojom',
356 'public/interfaces/bindings/tests/sample_factory.mojom',
357 'public/interfaces/bindings/tests/sample_import.mojom',
358 'public/interfaces/bindings/tests/sample_import2.mojom',
359 'public/interfaces/bindings/tests/sample_interfaces.mojom',
360 'public/interfaces/bindings/tests/sample_service.mojom',
361 'public/interfaces/bindings/tests/scoping.mojom',
362 'public/interfaces/bindings/tests/serialization_test_structs.mojom',
363 'public/interfaces/bindings/tests/test_constants.mojom',
364 'public/interfaces/bindings/tests/test_native_types.mojom',
365 'public/interfaces/bindings/tests/test_structs.mojom',
366 'public/interfaces/bindings/tests/test_unions.mojom',
367 'public/interfaces/bindings/tests/validation_test_interfaces.mojom',
368 ],
369 },
370 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
371 },
372 {
373 'target_name': 'mojo_public_test_interfaces_mojom_blink',
374 'type': 'none',
375 'variables': {
376 'mojom_variant': 'blink',
377 'mojom_extra_generator_args': [
378 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/blink_tes t.typemap',
379 ],
380 'mojom_files': [
381 'public/interfaces/bindings/tests/test_native_types.mojom',
382 ],
383 },
384 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
385 'dependencies': [
386 'mojo_public_test_interfaces_mojom',
387 ],
388 },
389 {
390 'target_name': 'mojo_public_test_interfaces_mojom_chromium',
391 'type': 'none',
392 'variables': {
393 'mojom_variant': 'chromium',
394 'mojom_extra_generator_args': [
395 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/chromium_ test.typemap',
396 ],
397 'mojom_files': [
398 'public/interfaces/bindings/tests/test_native_types.mojom',
399 ],
400 },
401 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
402 'dependencies': [
403 'mojo_public_test_interfaces_mojom',
404 ],
405 },
406 {
407 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
408 'target_name': 'mojo_public_test_interfaces',
409 'type': 'static_library',
410 'export_dependent_settings': [
411 'mojo_cpp_bindings',
412 ],
413 'dependencies': [
414 'mojo_public_test_interfaces_mojom',
415 'mojo_cpp_bindings',
416 ],
417 },
418 {
419 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_blin k
420 'target_name': 'mojo_public_test_interfaces_blink',
421 'type': 'static_library',
422 'export_dependent_settings': [
423 'mojo_cpp_bindings',
424 ],
425 'dependencies': [
426 'mojo_public_test_interfaces_mojom_blink',
427 'mojo_cpp_bindings',
428 ],
429 },
430 {
431 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_chro mium
432 'target_name': 'mojo_public_test_interfaces_chromium',
433 'type': 'static_library',
434 'export_dependent_settings': [
435 'mojo_cpp_bindings',
436 ],
437 'dependencies': [
438 'mojo_public_test_interfaces_mojom_chromium',
439 'mojo_cpp_bindings',
440 ],
441 },
442 {
443 'target_name': 'mojo_public_test_associated_interfaces_mojom',
444 'type': 'none',
445 'variables': {
446 # These files are not included in the mojo_public_test_interfaces_mojom
447 # target because associated interfaces are not supported by all bindings
448 # languages yet.
449 'mojom_files': [
450 'public/interfaces/bindings/tests/test_associated_interfaces.mojom',
451 'public/interfaces/bindings/tests/validation_test_associated_interface s.mojom',
452 ],
453 },
454 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
455 },
456 {
457 # GN version: //mojo/public/interfaces/bindings/tests:test_associated_inte rfaces
458 'target_name': 'mojo_public_test_associated_interfaces',
459 'type': 'static_library',
460 'export_dependent_settings': [
461 'mojo_cpp_bindings',
462 ],
463 'dependencies': [
464 'mojo_public_test_associated_interfaces_mojom',
465 'mojo_cpp_bindings',
466 ],
467 },
468 ],
469 'conditions': [
470 ['OS == "android"', {
471 'targets': [
472 {
473 # GN version: //mojo/public/java:system
474 'target_name': 'mojo_public_java',
475 'type': 'none',
476 'variables': {
477 'chromium_code': 0,
478 'java_in_dir': 'public/java/system',
479 },
480 'includes': [ '../build/java.gypi' ],
481 },
482 {
483 'target_name': 'mojo_interface_bindings_java_sources',
484 'type': 'none',
485 'dependencies': [
486 'mojo_interface_bindings_mojom',
487 ],
488 },
489 {
490 # GN version: //mojo/public/java:bindings
491 'target_name': 'mojo_bindings_java',
492 'type': 'none',
493 'variables': {
494 'chromium_code': 0,
495 'java_in_dir': 'public/java/bindings',
496 },
497 'dependencies': [
498 'mojo_interface_bindings_java_sources',
499 'mojo_public_java',
500 '<(DEPTH)/base/base.gyp:base_java',
501 ],
502 'includes': [ '../build/java.gypi' ],
503 },
504 ],
505 }],
506 ],
507 }
OLDNEW
« no previous file with comments | « mojo/mojo_edk_tests.gyp ('k') | mojo/mojo_public_bindings_unittests.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698