Index: third_party/WebKit/public/blink.gyp |
diff --git a/third_party/WebKit/public/blink.gyp b/third_party/WebKit/public/blink.gyp |
index 8a430d7fac7950dbb2b9764ef830faf907190aaf..72494d297e0dc71de611da6b074c1ed1b3384790 100644 |
--- a/third_party/WebKit/public/blink.gyp |
+++ b/third_party/WebKit/public/blink.gyp |
@@ -36,10 +36,12 @@ |
'platform/modules/bluetooth/web_bluetooth.mojom', |
'platform/modules/geolocation/geolocation.mojom', |
'platform/modules/notifications/notification.mojom', |
- 'platform/modules/payments/payment_request.mojom', |
'platform/modules/permissions/permission.mojom', |
'platform/modules/permissions/permission_status.mojom', |
], |
+ 'blink_android_mojo_sources': [ |
+ 'platform/modules/payments/payment_request.mojom', |
+ ], |
}, |
'targets': [ |
{ |
@@ -98,7 +100,10 @@ |
'target_name': 'mojo_bindings_blink_mojom', |
'type': 'none', |
'variables': { |
- 'mojom_files': ['<@(blink_mojo_sources)'], |
+ 'mojom_files': [ |
+ '<@(blink_mojo_sources)', |
+ '<@(blink_android_mojo_sources)', |
+ ], |
'mojom_variant': 'wtf', |
'for_blink': 'true', |
}, |
@@ -127,4 +132,29 @@ |
], |
}, |
], |
+ 'conditions': [ |
+ ['OS == "android"', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'android_mojo_bindings_mojom', |
+ 'type': 'none', |
+ 'variables': { |
+ 'mojom_files': ['<@(blink_android_mojo_sources)'], |
+ }, |
+ 'includes': [ |
+ '../../../mojo/mojom_bindings_generator_explicit.gypi', |
+ ], |
+ }, |
+ { |
+ # GN version: //third_party/WebKit/public:android_mojo_bindings_java |
+ 'target_name': 'android_mojo_bindings_java', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ 'android_mojo_bindings_mojom', |
+ '../../../mojo/mojo_public.gyp:mojo_bindings_java', |
+ ], |
+ }, |
+ ], |
+ }], |
+ ], |
} |