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

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: 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
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', 31 'public/interfaces/bindings/tests/test_variant.mojom',
33 'public/interfaces/bindings/tests/validation_test_interfaces.mojom', 32 'public/interfaces/bindings/tests/test_variant_import.mojom',
34 ] 33 ]
35 }, 34 },
36 'targets': [ 35 'targets': [
37 { 36 {
38 'target_name': 'mojo_public', 37 'target_name': 'mojo_public',
39 'type': 'none', 38 'type': 'none',
40 'dependencies': [ 39 'dependencies': [
41 'mojo_js_bindings', 40 'mojo_js_bindings',
42 'mojo_public_test_interfaces', 41 'mojo_public_test_interfaces',
43 'mojo_public_test_utils', 42 'mojo_public_test_utils',
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 ], 374 ],
376 'sources': [ 375 'sources': [
377 'public/cpp/bindings/tests/validation_test_input_parser.cc', 376 'public/cpp/bindings/tests/validation_test_input_parser.cc',
378 'public/cpp/bindings/tests/validation_test_input_parser.h', 377 'public/cpp/bindings/tests/validation_test_input_parser.h',
379 ], 378 ],
380 }, 379 },
381 { 380 {
382 'target_name': 'mojo_public_test_interfaces_mojom', 381 'target_name': 'mojo_public_test_interfaces_mojom',
383 'type': 'none', 382 'type': 'none',
384 'variables': { 383 'variables': {
385 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)', 384 'mojom_files': [
385 'public/interfaces/bindings/tests/test_structs.mojom',
386 'public/interfaces/bindings/tests/test_unions.mojom',
387 'public/interfaces/bindings/tests/validation_test_interfaces.mojom',
388 '<@(mojo_public_test_interfaces_mojom_files)',
389 ],
390 'mojom_typemaps': [
391 'public/cpp/bindings/tests/rect_chromium.typemap',
392 'public/cpp/bindings/tests/test_native_types_chromium.typemap',
393 ],
386 }, 394 },
387 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], 395 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
388 }, 396 },
389 { 397 {
390 'target_name': 'mojo_public_test_interfaces_struct_traits', 398 'target_name': 'mojo_public_test_interfaces_struct_traits',
391 'type': 'static_library', 399 'type': 'static_library',
392 'variables': { 400 'variables': {
393 'mojom_extra_generator_args': [ 401 'mojom_typemaps': [
394 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/struct_wi th_traits.typemap', 402 'public/cpp/bindings/tests/struct_with_traits.typemap',
395 ], 403 ],
396 }, 404 },
397 'sources': [ 405 'sources': [
398 'public/interfaces/bindings/tests/struct_with_traits.mojom', 406 'public/interfaces/bindings/tests/struct_with_traits.mojom',
407 'public/cpp/bindings/tests/struct_with_traits_impl_traits.cc',
399 ], 408 ],
400 'includes': [ 'mojom_bindings_generator.gypi' ], 409 'includes': [ 'mojom_bindings_generator.gypi' ],
401 }, 410 },
402 { 411 {
403 'target_name': 'mojo_public_test_interfaces_mojom_blink', 412 'target_name': 'mojo_public_test_interfaces_mojom_blink',
404 'type': 'none', 413 'type': 'none',
405 'variables': { 414 'variables': {
406 'mojom_variant': 'blink', 415 'mojom_variant': 'wtf',
407 'mojom_extra_generator_args': [ 416 'for_blink': 'true',
408 '--typemap', '<(DEPTH)/mojo/public/interfaces/bindings/tests/blink_tes t.typemap', 417 'mojom_typemaps': [
418 'public/cpp/bindings/tests/rect_blink.typemap',
419 'public/cpp/bindings/tests/test_native_types_blink.typemap',
409 ], 420 ],
410 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)', 421 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)',
411 }, 422 },
412 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], 423 '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 }, 424 },
432 { 425 {
433 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces 426 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
434 'target_name': 'mojo_public_test_interfaces', 427 'target_name': 'mojo_public_test_interfaces',
435 'type': 'static_library', 428 'type': 'static_library',
436 'export_dependent_settings': [ 429 'export_dependent_settings': [
437 'mojo_cpp_bindings', 430 'mojo_cpp_bindings',
438 ], 431 ],
432 'sources': [
433 'public/cpp/bindings/tests/pickled_struct_chromium.cc',
434 ],
439 'dependencies': [ 435 'dependencies': [
440 'mojo_public_test_interfaces_mojom', 436 'mojo_public_test_interfaces_mojom',
441 'mojo_cpp_bindings', 437 'mojo_cpp_bindings',
442 ], 438 ],
443 }, 439 },
444 { 440 {
445 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_blin k 441 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_blin k
446 'target_name': 'mojo_public_test_interfaces_blink', 442 'target_name': 'mojo_public_test_interfaces_blink',
447 'type': 'static_library', 443 'type': 'static_library',
448 'export_dependent_settings': [ 444 'export_dependent_settings': [
445 'mojo_public_test_interfaces_mojom_blink',
449 'mojo_cpp_bindings', 446 'mojo_cpp_bindings',
450 ], 447 ],
448 'sources': [
449 'public/cpp/bindings/tests/pickled_struct_blink.cc',
450 ],
451 'dependencies': [ 451 'dependencies': [
452 'mojo_public_test_interfaces_mojom_blink', 452 'mojo_public_test_interfaces_mojom_blink',
453 'mojo_cpp_bindings', 453 'mojo_cpp_bindings',
454 ], 454 ],
455 }, 455 },
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 { 456 {
469 'target_name': 'mojo_public_test_associated_interfaces_mojom', 457 'target_name': 'mojo_public_test_associated_interfaces_mojom',
470 'type': 'none', 458 'type': 'none',
471 'variables': { 459 'variables': {
472 # These files are not included in the mojo_public_test_interfaces_mojom 460 # These files are not included in the mojo_public_test_interfaces_mojom
473 # target because associated interfaces are not supported by all bindings 461 # target because associated interfaces are not supported by all bindings
474 # languages yet. 462 # languages yet.
475 'mojom_files': [ 463 'mojom_files': [
476 'public/interfaces/bindings/tests/test_associated_interfaces.mojom', 464 'public/interfaces/bindings/tests/test_associated_interfaces.mojom',
477 'public/interfaces/bindings/tests/validation_test_associated_interface s.mojom', 465 'public/interfaces/bindings/tests/validation_test_associated_interface s.mojom',
(...skipping 18 matching lines...) Expand all
496 'type': 'static_library', 484 'type': 'static_library',
497 'sources': [ 485 'sources': [
498 'public/interfaces/bindings/tests/test_wtf_types.mojom', 486 'public/interfaces/bindings/tests/test_wtf_types.mojom',
499 ], 487 ],
500 'includes': [ 'mojom_bindings_generator.gypi' ], 488 'includes': [ 'mojom_bindings_generator.gypi' ],
501 }, 489 },
502 { 490 {
503 'target_name': 'mojo_public_test_wtf_types_blink', 491 'target_name': 'mojo_public_test_wtf_types_blink',
504 'type': 'static_library', 492 'type': 'static_library',
505 'variables': { 493 'variables': {
506 'mojom_variant': 'blink', 494 'mojom_variant': 'wtf',
507 'for_blink': 'true', 495 'for_blink': 'true',
508 }, 496 },
509 'sources': [ 497 'sources': [
510 'public/interfaces/bindings/tests/test_wtf_types.mojom', 498 'public/interfaces/bindings/tests/test_wtf_types.mojom',
511 ], 499 ],
512 'includes': [ 'mojom_bindings_generator.gypi' ], 500 'includes': [ 'mojom_bindings_generator.gypi' ],
513 }, 501 },
514 {
515 'target_name': 'mojo_public_test_variant',
516 'type': 'static_library',
517 'variables': {
518 'mojom_variant': 'test_variant',
yzshen1 2016/04/05 17:36:14 Instead of moving them into "mojo_public_test_inte
Sam McNally 2016/04/06 07:02:53 Deleted them.
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 ], 502 ],
527 'conditions': [ 503 'conditions': [
528 ['OS == "android"', { 504 ['OS == "android"', {
529 'targets': [ 505 'targets': [
530 { 506 {
531 # GN version: //mojo/public/java:system 507 # GN version: //mojo/public/java:system
532 'target_name': 'mojo_public_java', 508 'target_name': 'mojo_public_java',
533 'type': 'none', 509 'type': 'none',
534 'variables': { 510 'variables': {
535 'chromium_code': 0, 511 'chromium_code': 0,
(...skipping 20 matching lines...) Expand all
556 'mojo_interface_bindings_java_sources', 532 'mojo_interface_bindings_java_sources',
557 'mojo_public_java', 533 'mojo_public_java',
558 '<(DEPTH)/base/base.gyp:base_java', 534 '<(DEPTH)/base/base.gyp:base_java',
559 ], 535 ],
560 'includes': [ '../build/java.gypi' ], 536 'includes': [ '../build/java.gypi' ],
561 }, 537 },
562 ], 538 ],
563 }], 539 }],
564 ], 540 ],
565 } 541 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698