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

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

Issue 2209883002: Link blink mojom bindings into platform target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and add comments Created 4 years, 4 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 | « third_party/WebKit/Source/web/BUILD.gn ('k') | no next file » | 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 import("//mojo/public/tools/bindings/mojom.gni")
6 import("//third_party/WebKit/Source/config.gni") 5 import("//third_party/WebKit/Source/config.gni")
7 import("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
8 7
9 blink_headers_values = exec_script("//build/gypi_to_gn.py", 8 blink_headers_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("blink_headers.gypi") ], 9 [ rebase_path("blink_headers.gypi") ],
11 "scope", 10 "scope",
12 [ "blink_headers.gypi" ]) 11 [ "blink_headers.gypi" ])
13 12
14 if (is_android) { 13 if (is_android) {
15 import("//build/config/android/rules.gni") 14 import("//build/config/android/rules.gni")
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 # and public structures without actually linking against any Blink libraries. 104 # and public structures without actually linking against any Blink libraries.
106 source_set("blink_headers") { 105 source_set("blink_headers") {
107 public_configs = [ 106 public_configs = [
108 ":blink_headers_config", 107 ":blink_headers_config",
109 108
110 # Blink exposes icu headers in the public API. 109 # Blink exposes icu headers in the public API.
111 "//third_party/icu:icu_config", 110 "//third_party/icu:icu_config",
112 ] 111 ]
113 sources = blink_headers_values.blink_public_sources 112 sources = blink_headers_values.blink_public_sources
114 deps = [ 113 deps = [
115 ":generate_mojo_bindings", 114 "//third_party/WebKit/Source/platform:generate_mojo_bindings",
116 ] 115 ]
117 } 116 }
118 117
119 # GYP version: WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resource s 118 # GYP version: WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resource s
120 group("blink_devtools_frontend_resources") { 119 group("blink_devtools_frontend_resources") {
121 public_deps = [ 120 public_deps = [
122 "//third_party/WebKit/Source/devtools:devtools_frontend_resources", 121 "//third_party/WebKit/Source/devtools:devtools_frontend_resources",
123 ] 122 ]
124 } 123 }
125 124
(...skipping 25 matching lines...) Expand all
151 grit("image_resources") { 150 grit("image_resources") {
152 output_dir = "$root_gen_dir/blink/public/resources" 151 output_dir = "$root_gen_dir/blink/public/resources"
153 use_qualified_include = true 152 use_qualified_include = true
154 source = "blink_image_resources.grd" 153 source = "blink_image_resources.grd"
155 outputs = [ 154 outputs = [
156 "grit/blink_image_resources.h", 155 "grit/blink_image_resources.h",
157 "blink_image_resources_100_percent.pak", 156 "blink_image_resources_100_percent.pak",
158 "blink_image_resources_200_percent.pak", 157 "blink_image_resources_200_percent.pak",
159 ] 158 ]
160 } 159 }
161
162 # GYP versions: WebKit/public/blink.gyp:mojo_bindings_mojom,
163 # WebKit/public/blink.gyp:mojo_bindings_blink_mojom
164 mojom("mojo_bindings") {
165 sources = [
166 "platform/mime_registry.mojom",
167 "platform/modules/background_sync/background_sync.mojom",
168 "platform/modules/bluetooth/web_bluetooth.mojom",
169 "platform/modules/broadcastchannel/broadcast_channel.mojom",
170 "platform/modules/hyphenation/hyphenation.mojom",
171 "platform/modules/notifications/notification.mojom",
172 "platform/modules/notifications/notification_service.mojom",
173 "platform/modules/offscreencanvas/offscreen_canvas_surface.mojom",
174 "platform/modules/permissions/permission.mojom",
175 "platform/modules/permissions/permission_status.mojom",
176 "platform/modules/serviceworker/service_worker_event_status.mojom",
177 "platform/modules/wake_lock/wake_lock_service.mojom",
178 ]
179 public_deps = [
180 ":android_mojo_bindings",
181 ":new_wrapper_types_mojo_bindings",
182 "//cc/ipc:interfaces_surfaceid_only",
183 "//device/bluetooth/public/interfaces:bluetooth_mojom_bluetooth_uuid",
184 "//url/mojo:url_mojom_origin",
185 ]
186
187 use_new_wrapper_types = false
188 }
189
190 # GYP version: WebKit/public/blink.gyp:new_wrapper_types_mojo_bindings
191 mojom("new_wrapper_types_mojo_bindings") {
192 sources = [
193 "platform/modules/presentation/presentation.mojom",
194 ]
195 }
196
197 # GYP version: WebKit/public/blink.gyp:android_mojo_bindings_java
198 mojom("android_mojo_bindings") {
199 sources = [
200 "platform/modules/payments/payment_request.mojom",
201 "platform/modules/webshare/webshare.mojom",
202 ]
203
204 use_new_wrapper_types = false
205 }
206
207 group("generate_mojo_bindings") {
208 deps = [
209 ":mojo_bindings_blink__generator",
210 ]
211 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698