OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 'mojo_variables.gypi', | 7 'mojo_variables.gypi', |
8 ], | 8 ], |
9 'target_defaults' : { | 9 'target_defaults' : { |
10 'include_dirs': [ | 10 'include_dirs': [ |
11 '..', | 11 '..', |
12 ], | 12 ], |
13 }, | 13 }, |
14 'variables': { | 14 'variables': { |
15 'mojo_public_test_interfaces_mojom_files': [ | 15 'mojo_public_test_interfaces_mojom_files': [ |
16 'public/interfaces/bindings/tests/math_calculator.mojom', | 16 'public/interfaces/bindings/tests/math_calculator.mojom', |
17 'public/interfaces/bindings/tests/no_module.mojom', | 17 'public/interfaces/bindings/tests/no_module.mojom', |
18 'public/interfaces/bindings/tests/ping_service.mojom', | 18 'public/interfaces/bindings/tests/ping_service.mojom', |
19 'public/interfaces/bindings/tests/rect.mojom', | 19 'public/interfaces/bindings/tests/rect.mojom', |
20 'public/interfaces/bindings/tests/regression_tests.mojom', | 20 'public/interfaces/bindings/tests/regression_tests.mojom', |
21 'public/interfaces/bindings/tests/sample_factory.mojom', | 21 'public/interfaces/bindings/tests/sample_factory.mojom', |
22 'public/interfaces/bindings/tests/sample_import.mojom', | 22 'public/interfaces/bindings/tests/sample_import.mojom', |
23 'public/interfaces/bindings/tests/sample_import2.mojom', | 23 'public/interfaces/bindings/tests/sample_import2.mojom', |
24 'public/interfaces/bindings/tests/sample_interfaces.mojom', | 24 'public/interfaces/bindings/tests/sample_interfaces.mojom', |
25 'public/interfaces/bindings/tests/sample_service.mojom', | 25 'public/interfaces/bindings/tests/sample_service.mojom', |
26 'public/interfaces/bindings/tests/scoping.mojom', | 26 'public/interfaces/bindings/tests/scoping.mojom', |
27 'public/interfaces/bindings/tests/serialization_test_structs.mojom', | 27 'public/interfaces/bindings/tests/serialization_test_structs.mojom', |
28 'public/interfaces/bindings/tests/test_constants.mojom', | 28 'public/interfaces/bindings/tests/test_constants.mojom', |
29 'public/interfaces/bindings/tests/test_native_types.mojom', | 29 'public/interfaces/bindings/tests/test_native_types.mojom', |
30 'public/interfaces/bindings/tests/test_structs.mojom', | |
31 'public/interfaces/bindings/tests/test_sync_methods.mojom', | 30 'public/interfaces/bindings/tests/test_sync_methods.mojom', |
32 'public/interfaces/bindings/tests/test_unions.mojom', | |
33 'public/interfaces/bindings/tests/validation_test_interfaces.mojom', | |
34 ] | 31 ] |
35 }, | 32 }, |
36 'targets': [ | 33 'targets': [ |
37 { | 34 { |
38 'target_name': 'mojo_public', | 35 'target_name': 'mojo_public', |
39 'type': 'none', | 36 'type': 'none', |
40 'dependencies': [ | 37 'dependencies': [ |
41 'mojo_js_bindings', | 38 'mojo_js_bindings', |
42 'mojo_public_test_interfaces', | 39 'mojo_public_test_interfaces', |
43 'mojo_public_test_utils', | 40 'mojo_public_test_utils', |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 ], | 372 ], |
376 'sources': [ | 373 'sources': [ |
377 'public/cpp/bindings/tests/validation_test_input_parser.cc', | 374 'public/cpp/bindings/tests/validation_test_input_parser.cc', |
378 'public/cpp/bindings/tests/validation_test_input_parser.h', | 375 'public/cpp/bindings/tests/validation_test_input_parser.h', |
379 ], | 376 ], |
380 }, | 377 }, |
381 { | 378 { |
382 'target_name': 'mojo_public_test_interfaces_mojom', | 379 'target_name': 'mojo_public_test_interfaces_mojom', |
383 'type': 'none', | 380 'type': 'none', |
384 'variables': { | 381 'variables': { |
385 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)', | 382 'mojom_files': [ |
| 383 'public/interfaces/bindings/tests/test_structs.mojom', |
| 384 'public/interfaces/bindings/tests/test_unions.mojom', |
| 385 'public/interfaces/bindings/tests/validation_test_interfaces.mojom', |
| 386 '<@(mojo_public_test_interfaces_mojom_files)', |
| 387 ], |
| 388 'mojom_typemaps': [ |
| 389 'public/cpp/bindings/tests/rect_chromium.typemap', |
| 390 'public/cpp/bindings/tests/test_native_types_chromium.typemap', |
| 391 ], |
386 }, | 392 }, |
387 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], | 393 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], |
388 }, | 394 }, |
389 { | 395 { |
390 'target_name': 'mojo_public_test_interfaces_struct_traits', | 396 'target_name': 'mojo_public_test_interfaces_struct_traits', |
391 'type': 'static_library', | 397 'type': 'static_library', |
392 'variables': { | 398 'variables': { |
393 'mojom_extra_generator_args': [ | 399 'mojom_typemaps': [ |
394 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/struct_wi
th_traits.typemap', | 400 'public/cpp/bindings/tests/struct_with_traits.typemap', |
395 ], | 401 ], |
396 }, | 402 }, |
397 'sources': [ | 403 'sources': [ |
398 'public/interfaces/bindings/tests/struct_with_traits.mojom', | 404 'public/interfaces/bindings/tests/struct_with_traits.mojom', |
| 405 'public/cpp/bindings/tests/struct_with_traits_impl_traits.cc', |
399 ], | 406 ], |
400 'includes': [ 'mojom_bindings_generator.gypi' ], | 407 'includes': [ 'mojom_bindings_generator.gypi' ], |
401 }, | 408 }, |
402 { | 409 { |
403 'target_name': 'mojo_public_test_interfaces_mojom_blink', | 410 'target_name': 'mojo_public_test_interfaces_mojom_blink', |
404 'type': 'none', | 411 'type': 'none', |
405 'variables': { | 412 'variables': { |
406 'mojom_variant': 'blink', | 413 'mojom_variant': 'wtf', |
407 'mojom_extra_generator_args': [ | 414 'for_blink': 'true', |
408 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/blink_tes
t.typemap', | 415 'mojom_typemaps': [ |
| 416 'public/cpp/bindings/tests/rect_blink.typemap', |
| 417 'public/cpp/bindings/tests/test_native_types_blink.typemap', |
409 ], | 418 ], |
410 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)', | 419 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)', |
411 }, | 420 }, |
412 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], | 421 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], |
413 'dependencies': [ | |
414 'mojo_public_test_interfaces_mojom', | |
415 ], | |
416 }, | |
417 { | |
418 'target_name': 'mojo_public_test_interfaces_mojom_chromium', | |
419 'type': 'none', | |
420 'variables': { | |
421 'mojom_variant': 'chromium', | |
422 'mojom_extra_generator_args': [ | |
423 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/chromium_
test.typemap', | |
424 ], | |
425 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)', | |
426 }, | |
427 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], | |
428 'dependencies': [ | |
429 'mojo_public_test_interfaces_mojom', | |
430 ], | |
431 }, | 422 }, |
432 { | 423 { |
433 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces | 424 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces |
434 'target_name': 'mojo_public_test_interfaces', | 425 'target_name': 'mojo_public_test_interfaces', |
435 'type': 'static_library', | 426 'type': 'static_library', |
436 'export_dependent_settings': [ | 427 'export_dependent_settings': [ |
437 'mojo_cpp_bindings', | 428 'mojo_cpp_bindings', |
438 ], | 429 ], |
| 430 'sources': [ |
| 431 'public/cpp/bindings/tests/pickled_struct_chromium.cc', |
| 432 ], |
439 'dependencies': [ | 433 'dependencies': [ |
440 'mojo_public_test_interfaces_mojom', | 434 'mojo_public_test_interfaces_mojom', |
441 'mojo_cpp_bindings', | 435 'mojo_cpp_bindings', |
442 ], | 436 ], |
443 }, | 437 }, |
444 { | 438 { |
445 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_blin
k | 439 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_blin
k |
446 'target_name': 'mojo_public_test_interfaces_blink', | 440 'target_name': 'mojo_public_test_interfaces_blink', |
447 'type': 'static_library', | 441 'type': 'static_library', |
448 'export_dependent_settings': [ | 442 'export_dependent_settings': [ |
| 443 'mojo_public_test_interfaces_mojom_blink', |
449 'mojo_cpp_bindings', | 444 'mojo_cpp_bindings', |
450 ], | 445 ], |
| 446 'sources': [ |
| 447 'public/cpp/bindings/tests/pickled_struct_blink.cc', |
| 448 ], |
451 'dependencies': [ | 449 'dependencies': [ |
452 'mojo_public_test_interfaces_mojom_blink', | 450 'mojo_public_test_interfaces_mojom_blink', |
453 'mojo_cpp_bindings', | 451 'mojo_cpp_bindings', |
454 ], | 452 ], |
455 }, | 453 }, |
456 { | |
457 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_chro
mium | |
458 'target_name': 'mojo_public_test_interfaces_chromium', | |
459 'type': 'static_library', | |
460 'export_dependent_settings': [ | |
461 'mojo_cpp_bindings', | |
462 ], | |
463 'dependencies': [ | |
464 'mojo_public_test_interfaces_mojom_chromium', | |
465 'mojo_cpp_bindings', | |
466 ], | |
467 }, | |
468 { | 454 { |
469 'target_name': 'mojo_public_test_associated_interfaces_mojom', | 455 'target_name': 'mojo_public_test_associated_interfaces_mojom', |
470 'type': 'none', | 456 'type': 'none', |
471 'variables': { | 457 'variables': { |
472 # These files are not included in the mojo_public_test_interfaces_mojom | 458 # These files are not included in the mojo_public_test_interfaces_mojom |
473 # target because associated interfaces are not supported by all bindings | 459 # target because associated interfaces are not supported by all bindings |
474 # languages yet. | 460 # languages yet. |
475 'mojom_files': [ | 461 'mojom_files': [ |
476 'public/interfaces/bindings/tests/test_associated_interfaces.mojom', | 462 'public/interfaces/bindings/tests/test_associated_interfaces.mojom', |
477 'public/interfaces/bindings/tests/validation_test_associated_interface
s.mojom', | 463 'public/interfaces/bindings/tests/validation_test_associated_interface
s.mojom', |
(...skipping 18 matching lines...) Expand all Loading... |
496 'type': 'static_library', | 482 'type': 'static_library', |
497 'sources': [ | 483 'sources': [ |
498 'public/interfaces/bindings/tests/test_wtf_types.mojom', | 484 'public/interfaces/bindings/tests/test_wtf_types.mojom', |
499 ], | 485 ], |
500 'includes': [ 'mojom_bindings_generator.gypi' ], | 486 'includes': [ 'mojom_bindings_generator.gypi' ], |
501 }, | 487 }, |
502 { | 488 { |
503 'target_name': 'mojo_public_test_wtf_types_blink', | 489 'target_name': 'mojo_public_test_wtf_types_blink', |
504 'type': 'static_library', | 490 'type': 'static_library', |
505 'variables': { | 491 'variables': { |
506 'mojom_variant': 'blink', | 492 'mojom_variant': 'wtf', |
507 'for_blink': 'true', | 493 'for_blink': 'true', |
508 }, | 494 }, |
509 'sources': [ | 495 'sources': [ |
510 'public/interfaces/bindings/tests/test_wtf_types.mojom', | 496 'public/interfaces/bindings/tests/test_wtf_types.mojom', |
511 ], | 497 ], |
512 'includes': [ 'mojom_bindings_generator.gypi' ], | 498 'includes': [ 'mojom_bindings_generator.gypi' ], |
513 }, | 499 }, |
514 { | |
515 'target_name': 'mojo_public_test_variant', | |
516 'type': 'static_library', | |
517 'variables': { | |
518 'mojom_variant': 'test_variant', | |
519 }, | |
520 'sources': [ | |
521 'public/interfaces/bindings/tests/test_variant_import.mojom', | |
522 'public/interfaces/bindings/tests/test_variant.mojom', | |
523 ], | |
524 'includes': [ 'mojom_bindings_generator.gypi' ], | |
525 }, | |
526 ], | 500 ], |
527 'conditions': [ | 501 'conditions': [ |
528 ['OS == "android"', { | 502 ['OS == "android"', { |
529 'targets': [ | 503 'targets': [ |
530 { | 504 { |
531 # GN version: //mojo/public/java:system | 505 # GN version: //mojo/public/java:system |
532 'target_name': 'mojo_public_java', | 506 'target_name': 'mojo_public_java', |
533 'type': 'none', | 507 'type': 'none', |
534 'variables': { | 508 'variables': { |
535 'chromium_code': 0, | 509 'chromium_code': 0, |
(...skipping 20 matching lines...) Expand all Loading... |
556 'mojo_interface_bindings_java_sources', | 530 'mojo_interface_bindings_java_sources', |
557 'mojo_public_java', | 531 'mojo_public_java', |
558 '<(DEPTH)/base/base.gyp:base_java', | 532 '<(DEPTH)/base/base.gyp:base_java', |
559 ], | 533 ], |
560 'includes': [ '../build/java.gypi' ], | 534 'includes': [ '../build/java.gypi' ], |
561 }, | 535 }, |
562 ], | 536 ], |
563 }], | 537 }], |
564 ], | 538 ], |
565 } | 539 } |
OLD | NEW |