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

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

Issue 2225673002: Support exporting Mojo bindings for the component build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win_clang 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") 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 blink_headers_values = exec_script("//build/gypi_to_gn.py", 9 blink_headers_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("blink_headers.gypi") ], 10 [ rebase_path("blink_headers.gypi") ],
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 ] 178 ]
179 public_deps = [ 179 public_deps = [
180 ":android_mojo_bindings", 180 ":android_mojo_bindings",
181 ":new_wrapper_types_mojo_bindings", 181 ":new_wrapper_types_mojo_bindings",
182 "//cc/ipc:interfaces_surfaceid_only", 182 "//cc/ipc:interfaces_surfaceid_only",
183 "//device/bluetooth/public/interfaces:bluetooth_mojom_bluetooth_uuid", 183 "//device/bluetooth/public/interfaces:bluetooth_mojom_bluetooth_uuid",
184 "//url/mojo:url_mojom_origin", 184 "//url/mojo:url_mojom_origin",
185 ] 185 ]
186 186
187 use_new_wrapper_types = false 187 use_new_wrapper_types = false
188
189 # The chromium variant must be linked with content and use the same export
190 # settings in component build because of the WebBluetoothDeviceId typemap
191 # inside content.
192 export_class_attribute = "CONTENT_EXPORT"
193 export_define = "CONTENT_IMPLEMENTATION=1"
194 export_header = "content/common/content_export.h"
195
196 # Similarly, the blink variant must be linked with the platform component
197 # since it uses types from it in its typemaps.
198 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
199 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
200 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
188 } 201 }
189 202
190 # GYP version: WebKit/public/blink.gyp:new_wrapper_types_mojo_bindings 203 # GYP version: WebKit/public/blink.gyp:new_wrapper_types_mojo_bindings
191 mojom("new_wrapper_types_mojo_bindings") { 204 mojom("new_wrapper_types_mojo_bindings") {
192 sources = [ 205 sources = [
193 "platform/modules/presentation/presentation.mojom", 206 "platform/modules/presentation/presentation.mojom",
194 ] 207 ]
208
209 # See comment above.
210 export_class_attribute = "CONTENT_EXPORT"
211 export_define = "CONTENT_IMPLEMENTATION=1"
212 export_header = "content/common/content_export.h"
213 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
214 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
215 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
195 } 216 }
196 217
197 # GYP version: WebKit/public/blink.gyp:android_mojo_bindings_java 218 # GYP version: WebKit/public/blink.gyp:android_mojo_bindings_java
198 mojom("android_mojo_bindings") { 219 mojom("android_mojo_bindings") {
199 sources = [ 220 sources = [
200 "platform/modules/payments/payment_request.mojom", 221 "platform/modules/payments/payment_request.mojom",
201 "platform/modules/webshare/webshare.mojom", 222 "platform/modules/webshare/webshare.mojom",
202 ] 223 ]
203 224
204 use_new_wrapper_types = false 225 use_new_wrapper_types = false
226
227 # See comment above.
228 export_class_attribute = "CONTENT_EXPORT"
229 export_define = "CONTENT_IMPLEMENTATION=1"
230 export_header = "content/common/content_export.h"
231 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
232 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
233 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
205 } 234 }
206 235
207 group("generate_mojo_bindings") { 236 group("generate_mojo_bindings") {
208 deps = [ 237 deps = [
209 ":mojo_bindings_blink__generator", 238 ":mojo_bindings_blink__generator",
210 ] 239 ]
211 } 240 }
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