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/
29 lines
955 B
C++
29 lines
955 B
C++
--- components/soda/soda_util.cc.orig 2024-06-18 21:43:30 UTC
|
|
+++ components/soda/soda_util.cc
|
|
@@ -20,7 +20,7 @@
|
|
#include "base/win/windows_version.h"
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_X86_FAMILY)
|
|
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_FAMILY)
|
|
#include "base/cpu.h"
|
|
#endif
|
|
|
|
@@ -45,7 +45,7 @@ bool IsSupportedChromeOS() {
|
|
}
|
|
#endif // BUILDFLAG(IS_CHROMEOS)
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
bool IsSupportedLinux() {
|
|
#if defined(ARCH_CPU_X86_FAMILY)
|
|
// Check if the CPU has the required instruction set to run the Speech
|
|
@@ -76,7 +76,7 @@ bool IsOnDeviceSpeechRecognitionSupported() {
|
|
bool IsOnDeviceSpeechRecognitionSupported() {
|
|
#if BUILDFLAG(IS_CHROMEOS)
|
|
return IsSupportedChromeOS();
|
|
-#elif BUILDFLAG(IS_LINUX)
|
|
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
return IsSupportedLinux();
|
|
#elif BUILDFLAG(IS_WIN)
|
|
return IsSupportedWin();
|