ports/devel/electron28/files/patch-build_config_linux_atspi2_BUILD.gn
Hiroki Tagato f88751e60a devel/electron28: 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/
2024-01-29 16:47:07 +09:00

25 lines
1,020 B
Text

--- build/config/linux/atspi2/BUILD.gn.orig 2023-12-20 07:12:20 UTC
+++ build/config/linux/atspi2/BUILD.gn
@@ -20,10 +20,21 @@ if (use_atk) {
minor = atspi_version[1]
micro = atspi_version[2]
+ # These aren't necessarily used if atspi is not old enough to require them.
+ # Also, gn considers variables unused if the only use of them is
+ # short-circuited away, so for example if major == 2 and minor == 48, micro
+ # would be unused.
+ not_needed([
+ "major",
+ "minor",
+ "micro",
+ ])
+
# ATSPI 2.49.90 now defines these for us and it's an error for us to
# redefine them on the compiler command line.
# See ATSPI 927344a34cd5bf81fc64da4968241735ecb4f03b
- if (minor < 49 || (minor == 49 && micro < 90)) {
+ if (major < 2 || (major == 2 && minor < 49) ||
+ (major == 2 && minor == 49 && micro < 90)) {
defines = [
"ATSPI_MAJOR_VERSION=$major",
"ATSPI_MINOR_VERSION=$minor",