ports/www/chromium/patches/patch-services_device_usb_BUILD_gn

54 lines
1.4 KiB
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: services/device/usb/BUILD.gn
--- services/device/usb/BUILD.gn.orig
+++ services/device/usb/BUILD.gn
2023-09-14 00:49:35 +00:00
@@ -89,15 +89,17 @@ static_library("usb") {
2023-08-16 22:26:55 +00:00
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.
2023-09-14 00:49:35 +00:00
@@ -121,6 +123,13 @@ static_library("usb") {
2023-08-16 22:26:55 +00:00
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",
2023-09-14 00:49:35 +00:00
@@ -138,7 +147,7 @@ static_library("usb") {
2023-08-16 22:26:55 +00:00
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",