ports/devel/electron35/files/patch-build_config_ozone.gni
Hiroki Tagato 3fe2f64857 devel/electron35: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
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/
2025-04-08 21:01:02 +09:00

19 lines
656 B
Text

--- build/config/ozone.gni.orig 2023-10-19 19:57:59 UTC
+++ build/config/ozone.gni
@@ -84,7 +84,15 @@ declare_args() {
} else if (is_chromeos_lacros) {
ozone_platform = "wayland"
ozone_platform_wayland = true
- } else if (is_linux) {
+ } else if (is_linux && !is_bsd) {
+ ozone_platform = "x11"
+ ozone_platform_wayland = true
+ ozone_platform_x11 = true
+ } else if (is_openbsd) {
+ ozone_platform = "x11"
+ ozone_platform_wayland = false
+ ozone_platform_x11 = true
+ } else if (is_freebsd) {
ozone_platform = "x11"
ozone_platform_wayland = true
ozone_platform_x11 = true