mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -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/
38 lines
1.4 KiB
C++
38 lines
1.4 KiB
C++
--- mojo/public/c/system/thunks.cc.orig 2024-04-15 20:34:01 UTC
|
|
+++ mojo/public/c/system/thunks.cc
|
|
@@ -25,7 +25,7 @@
|
|
#include "mojo/public/c/system/message_pipe.h"
|
|
|
|
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \
|
|
- BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
#include "base/environment.h"
|
|
#include "base/files/file_path.h"
|
|
#include "base/scoped_native_library.h"
|
|
@@ -72,7 +72,7 @@ class CoreLibraryInitializer {
|
|
|
|
MojoResult LoadLibrary(base::FilePath library_path) {
|
|
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \
|
|
- BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
if (library_ && library_->is_valid())
|
|
return MOJO_RESULT_OK;
|
|
|
|
@@ -86,7 +86,7 @@ class CoreLibraryInitializer {
|
|
|
|
if (library_path.empty()) {
|
|
// Default to looking for the library in the current working directory.
|
|
-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
const base::FilePath::CharType kDefaultLibraryPathValue[] =
|
|
FILE_PATH_LITERAL("./libmojo_core.so");
|
|
#elif BUILDFLAG(IS_FUCHSIA)
|
|
@@ -142,7 +142,7 @@ class CoreLibraryInitializer {
|
|
|
|
private:
|
|
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \
|
|
- BUILDFLAG(IS_FUCHSIA)
|
|
+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
std::optional<base::ScopedNativeLibrary> library_;
|
|
#endif
|
|
};
|