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

Side by Side Diff: mojo/mojo_public.gyp

Issue 1832703002: Mojo: Simplify typemap usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-bindings-variant-import
Patch Set: add missing mash dependency Created 4 years, 8 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/mojom_bindings_generator.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 ], 381 ],
385 'sources': [ 382 'sources': [
386 'public/cpp/bindings/tests/validation_test_input_parser.cc', 383 'public/cpp/bindings/tests/validation_test_input_parser.cc',
387 'public/cpp/bindings/tests/validation_test_input_parser.h', 384 'public/cpp/bindings/tests/validation_test_input_parser.h',
388 ], 385 ],
389 }, 386 },
390 { 387 {
391 'target_name': 'mojo_public_test_interfaces_mojom', 388 'target_name': 'mojo_public_test_interfaces_mojom',
392 'type': 'none', 389 'type': 'none',
393 'variables': { 390 'variables': {
394 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)', 391 'mojom_files': [
392 'public/interfaces/bindings/tests/test_structs.mojom',
393 'public/interfaces/bindings/tests/test_unions.mojom',
394 'public/interfaces/bindings/tests/validation_test_interfaces.mojom',
395 '<@(mojo_public_test_interfaces_mojom_files)',
396 ],
397 'mojom_typemaps': [
398 'public/cpp/bindings/tests/rect_chromium.typemap',
399 'public/cpp/bindings/tests/test_native_types_chromium.typemap',
400 ],
395 }, 401 },
396 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], 402 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
397 }, 403 },
398 { 404 {
399 'target_name': 'mojo_public_test_interfaces_struct_traits', 405 'target_name': 'mojo_public_test_interfaces_struct_traits',
400 'type': 'static_library', 406 'type': 'static_library',
401 'variables': { 407 'variables': {
402 'mojom_extra_generator_args': [ 408 'mojom_typemaps': [
403 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/struct_wi th_traits.typemap', 409 'public/cpp/bindings/tests/struct_with_traits.typemap',
404 ], 410 ],
405 }, 411 },
406 'sources': [ 412 'sources': [
407 'public/interfaces/bindings/tests/struct_with_traits.mojom', 413 'public/interfaces/bindings/tests/struct_with_traits.mojom',
414 'public/cpp/bindings/tests/struct_with_traits_impl_traits.cc',
408 ], 415 ],
409 'includes': [ 'mojom_bindings_generator.gypi' ], 416 'includes': [ 'mojom_bindings_generator.gypi' ],
410 }, 417 },
411 { 418 {
412 'target_name': 'mojo_public_test_interfaces_mojom_blink', 419 'target_name': 'mojo_public_test_interfaces_mojom_blink',
413 'type': 'none', 420 'type': 'none',
414 'variables': { 421 'variables': {
415 'mojom_variant': 'blink', 422 'mojom_variant': 'wtf',
416 'mojom_extra_generator_args': [ 423 'for_blink': 'true',
417 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/blink_tes t.typemap', 424 'mojom_typemaps': [
425 'public/cpp/bindings/tests/rect_blink.typemap',
426 'public/cpp/bindings/tests/test_native_types_blink.typemap',
418 ], 427 ],
419 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)', 428 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)',
420 }, 429 },
421 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], 430 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
422 'dependencies': [
423 'mojo_public_test_interfaces_mojom',
424 ],
425 },
426 {
427 'target_name': 'mojo_public_test_interfaces_mojom_chromium',
428 'type': 'none',
429 'variables': {
430 'mojom_variant': 'chromium',
431 'mojom_extra_generator_args': [
432 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/chromium_ test.typemap',
433 ],
434 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)',
435 },
436 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
437 'dependencies': [
438 'mojo_public_test_interfaces_mojom',
439 ],
440 }, 431 },
441 { 432 {
442 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces 433 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
443 'target_name': 'mojo_public_test_interfaces', 434 'target_name': 'mojo_public_test_interfaces',
444 'type': 'static_library', 435 'type': 'static_library',
445 'export_dependent_settings': [ 436 'export_dependent_settings': [
446 'mojo_cpp_bindings', 437 'mojo_cpp_bindings',
447 ], 438 ],
439 'sources': [
440 'public/cpp/bindings/tests/pickled_struct_chromium.cc',
441 ],
448 'dependencies': [ 442 'dependencies': [
449 'mojo_public_test_interfaces_mojom', 443 'mojo_public_test_interfaces_mojom',
450 'mojo_cpp_bindings', 444 'mojo_cpp_bindings',
451 ], 445 ],
452 }, 446 },
453 { 447 {
454 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_blin k 448 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_blin k
455 'target_name': 'mojo_public_test_interfaces_blink', 449 'target_name': 'mojo_public_test_interfaces_blink',
456 'type': 'static_library', 450 'type': 'static_library',
457 'export_dependent_settings': [ 451 'export_dependent_settings': [
452 'mojo_public_test_interfaces_mojom_blink',
458 'mojo_cpp_bindings', 453 'mojo_cpp_bindings',
459 ], 454 ],
455 'sources': [
456 'public/cpp/bindings/tests/pickled_struct_blink.cc',
457 ],
460 'dependencies': [ 458 'dependencies': [
461 'mojo_public_test_interfaces_mojom_blink', 459 'mojo_public_test_interfaces_mojom_blink',
462 'mojo_cpp_bindings', 460 'mojo_cpp_bindings',
463 ], 461 ],
464 }, 462 },
465 {
466 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_chro mium
467 'target_name': 'mojo_public_test_interfaces_chromium',
468 'type': 'static_library',
469 'export_dependent_settings': [
470 'mojo_cpp_bindings',
471 ],
472 'dependencies': [
473 'mojo_public_test_interfaces_mojom_chromium',
474 'mojo_cpp_bindings',
475 ],
476 },
477 { 463 {
478 'target_name': 'mojo_public_test_associated_interfaces_mojom', 464 'target_name': 'mojo_public_test_associated_interfaces_mojom',
479 'type': 'none', 465 'type': 'none',
480 'variables': { 466 'variables': {
481 # These files are not included in the mojo_public_test_interfaces_mojom 467 # These files are not included in the mojo_public_test_interfaces_mojom
482 # target because associated interfaces are not supported by all bindings 468 # target because associated interfaces are not supported by all bindings
483 # languages yet. 469 # languages yet.
484 'mojom_files': [ 470 'mojom_files': [
485 'public/interfaces/bindings/tests/test_associated_interfaces.mojom', 471 'public/interfaces/bindings/tests/test_associated_interfaces.mojom',
486 'public/interfaces/bindings/tests/validation_test_associated_interface s.mojom', 472 'public/interfaces/bindings/tests/validation_test_associated_interface s.mojom',
(...skipping 18 matching lines...) Expand all
505 'type': 'static_library', 491 'type': 'static_library',
506 'sources': [ 492 'sources': [
507 'public/interfaces/bindings/tests/test_wtf_types.mojom', 493 'public/interfaces/bindings/tests/test_wtf_types.mojom',
508 ], 494 ],
509 'includes': [ 'mojom_bindings_generator.gypi' ], 495 'includes': [ 'mojom_bindings_generator.gypi' ],
510 }, 496 },
511 { 497 {
512 'target_name': 'mojo_public_test_wtf_types_blink', 498 'target_name': 'mojo_public_test_wtf_types_blink',
513 'type': 'static_library', 499 'type': 'static_library',
514 'variables': { 500 'variables': {
515 'mojom_variant': 'blink', 501 'mojom_variant': 'wtf',
516 'for_blink': 'true', 502 'for_blink': 'true',
517 }, 503 },
518 'sources': [ 504 'sources': [
519 'public/interfaces/bindings/tests/test_wtf_types.mojom', 505 'public/interfaces/bindings/tests/test_wtf_types.mojom',
520 ], 506 ],
521 'includes': [ 'mojom_bindings_generator.gypi' ], 507 'includes': [ 'mojom_bindings_generator.gypi' ],
522 }, 508 },
523 {
524 'target_name': 'mojo_public_test_variant',
525 'type': 'static_library',
526 'variables': {
527 'mojom_variant': 'test_variant',
528 },
529 'sources': [
530 'public/interfaces/bindings/tests/test_variant_import.mojom',
531 'public/interfaces/bindings/tests/test_variant.mojom',
532 ],
533 'includes': [ 'mojom_bindings_generator.gypi' ],
534 },
535 ], 509 ],
536 'conditions': [ 510 'conditions': [
537 ['OS == "android"', { 511 ['OS == "android"', {
538 'targets': [ 512 'targets': [
539 { 513 {
540 # GN version: //mojo/public/java:system 514 # GN version: //mojo/public/java:system
541 'target_name': 'mojo_public_java', 515 'target_name': 'mojo_public_java',
542 'type': 'none', 516 'type': 'none',
543 'variables': { 517 'variables': {
544 'chromium_code': 0, 518 'chromium_code': 0,
(...skipping 20 matching lines...) Expand all
565 'mojo_interface_bindings_java_sources', 539 'mojo_interface_bindings_java_sources',
566 'mojo_public_java', 540 'mojo_public_java',
567 '<(DEPTH)/base/base.gyp:base_java', 541 '<(DEPTH)/base/base.gyp:base_java',
568 ], 542 ],
569 'includes': [ '../build/java.gypi' ], 543 'includes': [ '../build/java.gypi' ],
570 }, 544 },
571 ], 545 ],
572 }], 546 }],
573 ], 547 ],
574 } 548 }
OLDNEW
« no previous file with comments | « mojo/mojo_edk_tests.gyp ('k') | mojo/mojom_bindings_generator.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698