mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 08:41:51 -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/
65 lines
2 KiB
Text
65 lines
2 KiB
Text
--- v8/BUILD.gn.orig 2024-06-18 21:45:06 UTC
|
|
+++ v8/BUILD.gn
|
|
@@ -890,6 +890,8 @@ external_v8_defines = [
|
|
"V8_TARGET_OS_MACOS",
|
|
"V8_TARGET_OS_WIN",
|
|
"V8_TARGET_OS_CHROMEOS",
|
|
+ "V8_TARGET_OS_OPENBSD",
|
|
+ "V8_TARGET_OS_FREEBSD",
|
|
]
|
|
|
|
enabled_external_v8_defines = []
|
|
@@ -962,6 +964,12 @@ if (target_os == "android") {
|
|
} else if (target_os == "chromeos") {
|
|
enabled_external_v8_defines += [ "V8_HAVE_TARGET_OS" ]
|
|
enabled_external_v8_defines += [ "V8_TARGET_OS_CHROMEOS" ]
|
|
+} else if (target_os == "openbsd") {
|
|
+ enabled_external_v8_defines += [ "V8_HAVE_TARGET_OS" ]
|
|
+ enabled_external_v8_defines += [ "V8_TARGET_OS_OPENBSD" ]
|
|
+} else if (target_os == "freebsd") {
|
|
+ enabled_external_v8_defines += [ "V8_HAVE_TARGET_OS" ]
|
|
+ enabled_external_v8_defines += [ "V8_TARGET_OS_FREEBSD" ]
|
|
}
|
|
|
|
disabled_external_v8_defines = external_v8_defines - enabled_external_v8_defines
|
|
@@ -2458,6 +2466,12 @@ template("run_mksnapshot") {
|
|
if (!v8_enable_builtins_profiling && v8_enable_builtins_reordering) {
|
|
args += [ "--reorder-builtins" ]
|
|
}
|
|
+
|
|
+ if (v8_current_cpu == "x86") {
|
|
+ args -= [
|
|
+ "--abort-on-bad-builtin-profile-data",
|
|
+ ]
|
|
+ }
|
|
}
|
|
|
|
# This is needed to distinguish between generating code for the simulator
|
|
@@ -6495,7 +6509,7 @@ v8_component("v8_libbase") {
|
|
}
|
|
}
|
|
|
|
- if (is_linux || is_chromeos) {
|
|
+ if ((is_linux || is_chromeos) && !is_bsd) {
|
|
sources += [
|
|
"src/base/debug/stack_trace_posix.cc",
|
|
"src/base/platform/platform-linux.cc",
|
|
@@ -6506,6 +6520,18 @@ v8_component("v8_libbase") {
|
|
"dl",
|
|
"rt",
|
|
]
|
|
+ } else if (is_openbsd) {
|
|
+ sources += [
|
|
+ "src/base/debug/stack_trace_posix.cc",
|
|
+ "src/base/platform/platform-openbsd.cc",
|
|
+ ]
|
|
+ libs = [ "execinfo" ]
|
|
+ } else if (is_freebsd) {
|
|
+ sources += [
|
|
+ "src/base/debug/stack_trace_posix.cc",
|
|
+ "src/base/platform/platform-freebsd.cc",
|
|
+ ]
|
|
+ libs = [ "execinfo" ]
|
|
} else if (current_os == "aix") {
|
|
sources += [
|
|
"src/base/debug/stack_trace_posix.cc",
|