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("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
6 import("//third_party/WebKit/Source/config.gni") | 6 import("//third_party/WebKit/Source/config.gni") |
7 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
8 | 8 |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 mojom("mojo_bindings") { | 643 mojom("mojo_bindings") { |
644 sources = [ | 644 sources = [ |
645 "platform/mime_registry.mojom", | 645 "platform/mime_registry.mojom", |
646 "platform/modules/background_sync/background_sync.mojom", | 646 "platform/modules/background_sync/background_sync.mojom", |
647 "platform/modules/bluetooth/web_bluetooth.mojom", | 647 "platform/modules/bluetooth/web_bluetooth.mojom", |
648 "platform/modules/broadcastchannel/broadcast_channel.mojom", | 648 "platform/modules/broadcastchannel/broadcast_channel.mojom", |
649 "platform/modules/budget_service/budget_service.mojom", | 649 "platform/modules/budget_service/budget_service.mojom", |
650 "platform/modules/hyphenation/hyphenation.mojom", | 650 "platform/modules/hyphenation/hyphenation.mojom", |
651 "platform/modules/notifications/notification.mojom", | 651 "platform/modules/notifications/notification.mojom", |
652 "platform/modules/notifications/notification_service.mojom", | 652 "platform/modules/notifications/notification_service.mojom", |
653 "platform/modules/offscreencanvas/offscreen_canvas_surface.mojom", | |
654 "platform/modules/serviceworker/service_worker_event_status.mojom", | 653 "platform/modules/serviceworker/service_worker_event_status.mojom", |
655 "platform/modules/wake_lock/wake_lock_service.mojom", | 654 "platform/modules/wake_lock/wake_lock_service.mojom", |
656 ] | 655 ] |
657 public_deps = [ | 656 public_deps = [ |
658 ":android_mojo_bindings", | 657 ":android_mojo_bindings", |
659 ":new_wrapper_types_mojo_bindings", | 658 ":new_wrapper_types_mojo_bindings", |
660 "//cc/ipc:interfaces_surfaceid_only", | |
661 "//device/bluetooth/public/interfaces:bluetooth_mojom_bluetooth_uuid", | 659 "//device/bluetooth/public/interfaces:bluetooth_mojom_bluetooth_uuid", |
662 "//url/mojo:url_mojom_origin", | 660 "//url/mojo:url_mojom_origin", |
663 ] | 661 ] |
664 | 662 |
665 use_new_wrapper_types = false | 663 use_new_wrapper_types = false |
666 | 664 |
667 # The chromium variant must be linked with content and use the same export | 665 # The chromium variant must be linked with content and use the same export |
668 # settings in component build because of the WebBluetoothDeviceId typemap | 666 # settings in component build because of the WebBluetoothDeviceId typemap |
669 # inside content. | 667 # inside content. |
670 export_class_attribute = "CONTENT_EXPORT" | 668 export_class_attribute = "CONTENT_EXPORT" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 | 709 |
712 # See comment above. | 710 # See comment above. |
713 export_class_attribute = "CONTENT_EXPORT" | 711 export_class_attribute = "CONTENT_EXPORT" |
714 export_define = "CONTENT_IMPLEMENTATION=1" | 712 export_define = "CONTENT_IMPLEMENTATION=1" |
715 export_header = "content/common/content_export.h" | 713 export_header = "content/common/content_export.h" |
716 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" | 714 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
717 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" | 715 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
718 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" | 716 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" |
719 } | 717 } |
720 | 718 |
| 719 # The offscreen_canvas_mojo_bindings is separated from the rest of mojom files |
| 720 # because its deps contain too many files in Chromium that would pollute the |
| 721 # include paths in generated mojom-blink files for other services. |
| 722 mojom("offscreen_canvas_mojo_bindings") { |
| 723 sources = [ |
| 724 "platform/modules/offscreencanvas/offscreen_canvas_surface.mojom", |
| 725 ] |
| 726 deps = [ |
| 727 "//cc/ipc:interfaces", |
| 728 ] |
| 729 |
| 730 # See comment above |
| 731 export_class_attribute = "CONTENT_EXPORT" |
| 732 export_define = "CONTENT_IMPLEMENTATION=1" |
| 733 export_header = "content/common/content_export.h" |
| 734 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
| 735 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 736 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" |
| 737 } |
| 738 |
721 group("generate_mojo_bindings") { | 739 group("generate_mojo_bindings") { |
722 deps = [ | 740 deps = [ |
723 ":mojo_bindings_blink__generator", | 741 ":mojo_bindings_blink__generator", |
| 742 ":offscreen_canvas_mojo_bindings_blink__generator", |
724 ] | 743 ] |
725 } | 744 } |
OLD | NEW |