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

Unified Diff: device/usb/usb.gyp

Issue 1850023002: Consume Mojo services directly in Blink's WebUSB implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't do assignments in if statements. Created 4 years, 8 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 | « device/usb/public/interfaces/BUILD.gn ('k') | third_party/WebKit/LayoutTests/usb/usbDevice.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb.gyp
diff --git a/device/usb/usb.gyp b/device/usb/usb.gyp
index bdac4ff94c9aceedd793f58f6957a02db6531142..02400fa62395d14ce97c3ea8f0cb1e60e54d0927 100644
--- a/device/usb/usb.gyp
+++ b/device/usb/usb.gyp
@@ -5,6 +5,11 @@
{
'variables': {
'chromium_code': 1,
+ 'mojom_files': [
+ 'public/interfaces/chooser_service.mojom',
+ 'public/interfaces/device.mojom',
+ 'public/interfaces/device_manager.mojom',
+ ],
},
'targets': [
{
@@ -141,11 +146,19 @@
{
'target_name': 'device_usb_mojo_bindings',
'type': 'static_library',
- 'sources': [
- 'public/interfaces/chooser_service.mojom',
- 'public/interfaces/device.mojom',
- 'public/interfaces/device_manager.mojom',
+ 'sources': [ '<@(mojom_files)' ],
+ 'includes': [
+ '../../mojo/mojom_bindings_generator.gypi',
],
+ },
+ {
+ 'target_name': 'device_usb_mojo_bindings_for_blink',
+ 'type': 'static_library',
+ 'sources': [ '<@(mojom_files)' ],
+ 'variables': {
+ 'mojom_variant': 'wtf',
+ 'for_blink': 'true',
+ },
'includes': [
'../../mojo/mojom_bindings_generator.gypi',
],
« no previous file with comments | « device/usb/public/interfaces/BUILD.gn ('k') | third_party/WebKit/LayoutTests/usb/usbDevice.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698