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

Unified Diff: third_party/WebKit/public/blink.gyp

Issue 1819473002: Generate Blink's Mojo bindings both for regular and WTF variants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-mojo-mojom
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/blink.gyp
diff --git a/third_party/WebKit/public/blink.gyp b/third_party/WebKit/public/blink.gyp
index db8892780610919813b93f37e5c4394735c94a33..8289fd8e28778032c0b17685b04c5e8a7a55577a 100644
--- a/third_party/WebKit/public/blink.gyp
+++ b/third_party/WebKit/public/blink.gyp
@@ -31,6 +31,12 @@
'includes': [
'../Source/build/features.gypi',
],
+ 'variables': {
+ 'blink_mojo_sources': [
+ 'platform/modules/bluetooth/web_bluetooth.mojom',
+ 'platform/modules/notifications/notification.mojom',
+ ],
+ },
'targets': [
{
# GN version: //third_party/WebKit/public:blink
@@ -82,24 +88,36 @@
],
},
{
+ # GN version: //third_party/WebKit/public:mojo_bindings_blink
+ 'target_name': 'mojo_bindings_blink_mojom',
+ 'type': 'none',
+ 'variables': {
+ 'mojom_files': ['<@(blink_mojo_sources)'],
+ 'mojom_variant': 'wtf',
+ 'for_blink': 'true',
+ },
+ 'includes': [
+ '../../../mojo/mojom_bindings_generator_explicit.gypi',
+ ],
+ },
+ {
+ # GN version: //third_party/WebKit/public:mojo_bindings
'target_name': 'mojo_bindings_mojom',
'type': 'none',
'variables': {
- 'mojom_files': [
- 'platform/modules/bluetooth/web_bluetooth.mojom',
- 'platform/modules/notifications/notification.mojom',
- ],
+ 'mojom_files': ['<@(blink_mojo_sources)'],
},
'includes': [
- '../../../mojo/mojom_bindings_generator_explicit.gypi',
+ '../../../mojo/mojom_bindings_generator_explicit.gypi',
],
},
{
'target_name': 'mojo_bindings',
'type': 'static_library',
'dependencies': [
- 'mojo_bindings_mojom',
- '../../../mojo/mojo_public.gyp:mojo_cpp_bindings',
+ 'mojo_bindings_blink_mojom',
+ 'mojo_bindings_mojom',
+ '../../../mojo/mojo_public.gyp:mojo_cpp_bindings',
],
},
],
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698