mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
--- services/device/usb/usb_service.cc.orig 2024-08-14 20:55:10 UTC
|
|
+++ services/device/usb/usb_service.cc
|
|
@@ -21,12 +21,16 @@
|
|
|
|
#if BUILDFLAG(IS_ANDROID)
|
|
#include "services/device/usb/usb_service_android.h"
|
|
-#elif defined(USE_UDEV)
|
|
+#elif defined(USE_UDEV) && !BUILDFLAG(IS_BSD)
|
|
#include "services/device/usb/usb_service_linux.h"
|
|
#elif BUILDFLAG(IS_MAC)
|
|
#include "services/device/usb/usb_service_impl.h"
|
|
#elif BUILDFLAG(IS_WIN)
|
|
#include "services/device/usb/usb_service_win.h"
|
|
+#elif BUILDFLAG(IS_OPENBSD)
|
|
+#include "services/device/usb/usb_service_impl.h"
|
|
+#elif BUILDFLAG(IS_FREEBSD)
|
|
+#include "services/device/usb/usb_service_fake.h"
|
|
#endif
|
|
|
|
namespace device {
|
|
@@ -49,11 +53,13 @@ std::unique_ptr<UsbService> UsbService::Create() {
|
|
std::unique_ptr<UsbService> UsbService::Create() {
|
|
#if BUILDFLAG(IS_ANDROID)
|
|
return base::WrapUnique(new UsbServiceAndroid());
|
|
-#elif defined(USE_UDEV)
|
|
+#elif defined(USE_UDEV) && !BUILDFLAG(IS_BSD)
|
|
return base::WrapUnique(new UsbServiceLinux());
|
|
#elif BUILDFLAG(IS_WIN)
|
|
return base::WrapUnique(new UsbServiceWin());
|
|
#elif BUILDFLAG(IS_MAC)
|
|
+ return base::WrapUnique(new UsbServiceImpl());
|
|
+#elif BUILDFLAG(IS_BSD)
|
|
return base::WrapUnique(new UsbServiceImpl());
|
|
#else
|
|
return nullptr;
|