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 import("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 import("//third_party/WebKit/public/public_features.gni") | 7 import("//third_party/WebKit/public/public_features.gni") |
8 import("//third_party/WebKit/Source/config.gni") | 8 import("//third_party/WebKit/Source/config.gni") |
9 import("//third_party/WebKit/Source/core/core.gni") | 9 import("//third_party/WebKit/Source/core/core.gni") |
10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 source = "blink_image_resources.grd" | 634 source = "blink_image_resources.grd" |
635 outputs = [ | 635 outputs = [ |
636 "grit/blink_image_resources.h", | 636 "grit/blink_image_resources.h", |
637 "blink_image_resources_100_percent.pak", | 637 "blink_image_resources_100_percent.pak", |
638 "blink_image_resources_200_percent.pak", | 638 "blink_image_resources_200_percent.pak", |
639 ] | 639 ] |
640 } | 640 } |
641 | 641 |
642 mojom("mojo_bindings") { | 642 mojom("mojo_bindings") { |
643 sources = [ | 643 sources = [ |
644 "platform/modules/bluetooth/web_bluetooth.mojom", | |
645 ] | |
646 public_deps = [ | |
647 ":android_mojo_bindings", | |
648 ":new_wrapper_types_mojo_bindings", | |
649 "//device/bluetooth/public/interfaces", | |
650 "//mojo/common:common_custom_types", | |
651 "//url/mojo:url_mojom_origin", | |
652 ] | |
653 | |
654 use_new_wrapper_types = false | |
655 | |
656 # The chromium variant must be linked with content and use the same export | |
657 # settings in component build because of the WebBluetoothDeviceId typemap | |
658 # inside content. | |
659 export_class_attribute = "CONTENT_EXPORT" | |
660 export_define = "CONTENT_IMPLEMENTATION=1" | |
661 export_header = "content/common/content_export.h" | |
662 | |
663 # Similarly, the blink variant must be linked with the platform component | |
664 # since it uses types from it in its typemaps. | |
665 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" | |
666 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" | |
667 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" | |
668 } | |
669 | |
670 mojom("new_wrapper_types_mojo_bindings") { | |
671 sources = [ | |
672 "platform/mime_registry.mojom", | 644 "platform/mime_registry.mojom", |
673 "platform/modules/app_banner/app_banner.mojom", | 645 "platform/modules/app_banner/app_banner.mojom", |
674 "platform/modules/background_sync/background_sync.mojom", | 646 "platform/modules/background_sync/background_sync.mojom", |
| 647 "platform/modules/bluetooth/web_bluetooth.mojom", |
675 "platform/modules/broadcastchannel/broadcast_channel.mojom", | 648 "platform/modules/broadcastchannel/broadcast_channel.mojom", |
676 "platform/modules/budget_service/budget_service.mojom", | 649 "platform/modules/budget_service/budget_service.mojom", |
677 "platform/modules/hyphenation/hyphenation.mojom", | 650 "platform/modules/hyphenation/hyphenation.mojom", |
678 "platform/modules/mediasession/media_session.mojom", | 651 "platform/modules/mediasession/media_session.mojom", |
679 "platform/modules/notifications/notification.mojom", | 652 "platform/modules/notifications/notification.mojom", |
680 "platform/modules/notifications/notification_service.mojom", | 653 "platform/modules/notifications/notification_service.mojom", |
681 "platform/modules/permissions/permission.mojom", | 654 "platform/modules/permissions/permission.mojom", |
682 "platform/modules/permissions/permission_status.mojom", | 655 "platform/modules/permissions/permission_status.mojom", |
683 "platform/modules/presentation/presentation.mojom", | 656 "platform/modules/presentation/presentation.mojom", |
684 "platform/modules/screen_orientation/screen_orientation_lock_types.mojom", | 657 "platform/modules/screen_orientation/screen_orientation_lock_types.mojom", |
685 "platform/modules/sensitive_input_visibility/sensitive_input_visibility_serv
ice.mojom", | 658 "platform/modules/sensitive_input_visibility/sensitive_input_visibility_serv
ice.mojom", |
686 "platform/modules/serviceworker/service_worker_event_status.mojom", | 659 "platform/modules/serviceworker/service_worker_event_status.mojom", |
687 "platform/modules/shapedetection/barcodedetection.mojom", | 660 "platform/modules/shapedetection/barcodedetection.mojom", |
688 "platform/modules/shapedetection/facedetection.mojom", | 661 "platform/modules/shapedetection/facedetection.mojom", |
689 "platform/modules/websockets/websocket.mojom", | 662 "platform/modules/websockets/websocket.mojom", |
690 "platform/referrer.mojom", | 663 "platform/referrer.mojom", |
691 "web/window_features.mojom", | 664 "web/window_features.mojom", |
692 ] | 665 ] |
693 public_deps = [ | 666 public_deps = [ |
| 667 ":android_mojo_bindings", |
| 668 "//device/bluetooth/public/interfaces", |
694 "//mojo/common:common_custom_types", | 669 "//mojo/common:common_custom_types", |
695 "//ui/gfx/geometry/mojo", | 670 "//ui/gfx/geometry/mojo", |
696 "//ui/gfx/geometry/mojo:mojo", | 671 "//ui/gfx/geometry/mojo:mojo", |
697 "//url/mojo:url_mojom_gurl", | 672 "//url/mojo:url_mojom_gurl", |
698 "//url/mojo:url_mojom_origin", | 673 "//url/mojo:url_mojom_origin", |
699 ] | 674 ] |
700 | 675 |
701 # See comment above. | 676 # The chromium variant must be linked with content and use the same export |
| 677 # settings in component build because of the WebBluetoothDeviceId typemap |
| 678 # inside content. |
702 export_class_attribute = "CONTENT_EXPORT" | 679 export_class_attribute = "CONTENT_EXPORT" |
703 export_define = "CONTENT_IMPLEMENTATION=1" | 680 export_define = "CONTENT_IMPLEMENTATION=1" |
704 export_header = "content/common/content_export.h" | 681 export_header = "content/common/content_export.h" |
| 682 |
| 683 # Similarly, the blink variant must be linked with the platform component |
| 684 # since it uses types from it in its typemaps. |
705 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" | 685 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
706 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" | 686 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
707 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" | 687 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" |
708 } | 688 } |
709 | 689 |
710 mojom("android_mojo_bindings") { | 690 mojom("android_mojo_bindings") { |
711 sources = [ | 691 sources = [ |
712 "platform/modules/webshare/webshare.mojom", | 692 "platform/modules/webshare/webshare.mojom", |
713 ] | 693 ] |
714 public_deps = [ | 694 public_deps = [ |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 | 735 |
756 # Some mojom typemaps are shared between Chromium and Blink variants and | 736 # Some mojom typemaps are shared between Chromium and Blink variants and |
757 # therefore require some shared traits implementation. These definitions are | 737 # therefore require some shared traits implementation. These definitions are |
758 # relegated to a separate target to avoid duplication between the variants. | 738 # relegated to a separate target to avoid duplication between the variants. |
759 source_set("shared_typemap_traits") { | 739 source_set("shared_typemap_traits") { |
760 visibility = [ ":*" ] | 740 visibility = [ ":*" ] |
761 sources = [ | 741 sources = [ |
762 "web/WindowFeaturesStructTraits.cpp", | 742 "web/WindowFeaturesStructTraits.cpp", |
763 ] | 743 ] |
764 deps = [ | 744 deps = [ |
765 ":new_wrapper_types_mojo_bindings_shared__generator", | 745 ":mojo_bindings_shared__generator", |
766 ] | 746 ] |
767 } | 747 } |
OLD | NEW |