diff options
Diffstat (limited to 'devel/electron29/files/patch-services_device_usb_BUILD.gn')
-rw-r--r-- | devel/electron29/files/patch-services_device_usb_BUILD.gn | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-services_device_usb_BUILD.gn b/devel/electron29/files/patch-services_device_usb_BUILD.gn new file mode 100644 index 000000000000..dabc5014becf --- /dev/null +++ b/devel/electron29/files/patch-services_device_usb_BUILD.gn @@ -0,0 +1,52 @@ +--- services/device/usb/BUILD.gn.orig 2024-02-21 00:20:51 UTC ++++ services/device/usb/BUILD.gn +@@ -92,15 +92,17 @@ static_library("usb") { + deps += [ "//third_party/re2" ] + } + +- if (is_mac) { +- sources += [ +- "usb_device_handle_mac.cc", +- "usb_device_handle_mac.h", +- "usb_device_mac.cc", +- "usb_device_mac.h", +- "usb_service_mac.cc", +- "usb_service_mac.h", +- ] ++ if (is_mac || is_openbsd) { ++ if (is_mac) { ++ sources += [ ++ "usb_device_handle_mac.cc", ++ "usb_device_handle_mac.h", ++ "usb_device_mac.cc", ++ "usb_device_mac.h", ++ "usb_service_mac.cc", ++ "usb_service_mac.h", ++ ] ++ } + + # These sources and deps are required for libusb. + # TODO(https://crbug.com/1096743) Remove these sources. +@@ -124,6 +126,13 @@ static_library("usb") { + deps += [ "//third_party/libusb" ] + } + ++ if (is_freebsd) { ++ sources += [ ++ "usb_service_fake.cc", ++ "usb_service_fake.h", ++ ] ++ } ++ + if (is_linux || is_chromeos) { + sources += [ + "usb_device_linux.cc", +@@ -141,7 +150,7 @@ static_library("usb") { + deps += [ "//device/udev_linux" ] + } + +- if (is_android || is_chromeos || is_linux) { ++ if (is_android || is_chromeos || is_linux && !is_bsd) { + sources += [ + "usb_device_handle_usbfs.cc", + "usb_device_handle_usbfs.h", |