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

Side by Side Diff: third_party/WebKit/public/BUILD.gn

Issue 2892953006: WIP POC blob transport over mojo
Patch Set: pass mojo blobs over ipc Created 3 years, 6 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 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 "platform/modules/serviceworker/service_worker_event_status.mojom", 724 "platform/modules/serviceworker/service_worker_event_status.mojom",
725 "platform/modules/serviceworker/service_worker_stream_handle.mojom", 725 "platform/modules/serviceworker/service_worker_stream_handle.mojom",
726 "platform/modules/websockets/websocket.mojom", 726 "platform/modules/websockets/websocket.mojom",
727 "platform/referrer.mojom", 727 "platform/referrer.mojom",
728 "platform/site_engagement.mojom", 728 "platform/site_engagement.mojom",
729 "web/console_message.mojom", 729 "web/console_message.mojom",
730 "web/window_features.mojom", 730 "web/window_features.mojom",
731 ] 731 ]
732 public_deps = [ 732 public_deps = [
733 ":android_mojo_bindings", 733 ":android_mojo_bindings",
734 ":blob_mojo_bindings",
734 "//device/bluetooth/public/interfaces", 735 "//device/bluetooth/public/interfaces",
735 "//mojo/common:common_custom_types", 736 "//mojo/common:common_custom_types",
736 "//ui/gfx/geometry/mojo", 737 "//ui/gfx/geometry/mojo",
737 "//url/mojo:url_mojom_gurl", 738 "//url/mojo:url_mojom_gurl",
738 "//url/mojo:url_mojom_origin", 739 "//url/mojo:url_mojom_origin",
739 ] 740 ]
740 741
741 component_output_prefix = "blink_mojo_bindings" 742 component_output_prefix = "blink_mojo_bindings"
742 743
743 # The chromium variant must be linked with content and use the same export 744 # The chromium variant must be linked with content and use the same export
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 804
804 # See comment above 805 # See comment above
805 export_class_attribute = "CONTENT_EXPORT" 806 export_class_attribute = "CONTENT_EXPORT"
806 export_define = "CONTENT_IMPLEMENTATION=1" 807 export_define = "CONTENT_IMPLEMENTATION=1"
807 export_header = "content/common/content_export.h" 808 export_header = "content/common/content_export.h"
808 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" 809 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
809 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" 810 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
810 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" 811 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
811 } 812 }
812 813
814 # The blob_mojo_bindings is separated from the rest of mojom files
815 # because its deps contain too many files in Chromium that would pollute the
816 # include paths in generated mojom-blink files for other services.
817 mojom("blob_mojo_bindings") {
818 visibility = [
819 "//content/*",
820 "//storage/*",
821 ":mojo_bindings",
822 ]
823 visibility_blink = [
824 "//third_party/WebKit/Source/platform",
825 "//content/common:mojo_bindings_blink",
826 ":mojo_bindings_blink",
827 ]
828 sources = [
829 "platform/blobs.mojom",
830 ]
831 deps = [
832 "//mojo/common:common_custom_types",
833 "//url/mojo:url_mojom_gurl",
834 ]
835
836 component_output_prefix = "blink_blob_mojo_bindings"
837
838 # See comment above
839 export_class_attribute = "CONTENT_EXPORT"
840 export_define = "CONTENT_IMPLEMENTATION=1"
841 export_header = "content/common/content_export.h"
842 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
843 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
844 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
845 }
846
813 group("generate_mojo_bindings") { 847 group("generate_mojo_bindings") {
814 deps = [ 848 deps = [
849 ":blob_mojo_bindings_blink__generator",
815 ":mojo_bindings_blink__generator", 850 ":mojo_bindings_blink__generator",
816 ":offscreen_canvas_mojo_bindings_blink__generator", 851 ":offscreen_canvas_mojo_bindings_blink__generator",
817 ] 852 ]
818 } 853 }
819 854
820 # Some mojom typemaps are shared between Chromium and Blink variants and 855 # Some mojom typemaps are shared between Chromium and Blink variants and
821 # therefore require some shared traits implementation. These definitions are 856 # therefore require some shared traits implementation. These definitions are
822 # relegated to a separate target to avoid duplication between the variants. 857 # relegated to a separate target to avoid duplication between the variants.
823 source_set("shared_typemap_traits") { 858 source_set("shared_typemap_traits") {
824 visibility = [ ":*" ] 859 visibility = [ ":*" ]
825 sources = [ 860 sources = [
826 "web/ConsoleMessageStructTraits.cpp", 861 "web/ConsoleMessageStructTraits.cpp",
827 "web/ConsoleMessageStructTraits.h", 862 "web/ConsoleMessageStructTraits.h",
828 ] 863 ]
829 deps = [ 864 deps = [
830 ":blink_headers", 865 ":blink_headers",
831 ":mojo_bindings_shared__generator", 866 ":mojo_bindings_shared__generator",
832 "//mojo/public/cpp/bindings:struct_traits", 867 "//mojo/public/cpp/bindings:struct_traits",
833 ] 868 ]
834 } 869 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698