3510 Commits

Author SHA1 Message Date
292b2dbce7 CI: Update Ubuntu runners to 24.04, but keep 22.04 for Linux builds
Pin clang-format to version 16, and black to 24.10.0.
Keep using Ubuntu 22.04 for Linux builds for portability.

(cherry picked from commit fd9bd108af)
2024-11-07 17:29:37 +01:00
fb9ff8e632 Add POST_NOTIFICATIONS permission to the list of permissions available in the Export dialog
(cherry picked from commit 739190ca2b)
2024-05-01 12:14:05 +02:00
cc4a47251c [macOS] Enabled secure restorable state.
(cherry picked from commit 84380a94f7)
2024-05-01 12:14:05 +02:00
ebd9104cdc Add workaround for emscripten >= 3.1.47 LTO build
(cherry picked from commit 656bc22e28)
2024-05-01 12:14:05 +02:00
658b3fc413 Web: Bump closure compiler spec to ECMASCRIPT_2021
Fixes #88008.

(cherry picked from commit d29b0d90e0)
2024-04-25 16:34:04 +02:00
3f93ace728 Fix emscripten 3.1.51 breaking change about *glGetProcAddress()
(cherry picked from commit 5922ac0fb1)
2024-04-25 16:34:04 +02:00
d7bf310cd0 Add WASM_BIGINT linker flag to the web build
(cherry picked from commit 3ae524fa9e)
2024-04-25 16:34:04 +02:00
9424a0a5d8 Fix gradle build errors when the build path contains non-ASCII characters
(cherry picked from commit f1887a30f3)
2024-04-25 16:34:04 +02:00
d976743d34 SCons: Fix Web build when compiler version isn't properly detected
Quick fix for #82585.

A better fix requires refactoring the way we detect the compiler version
to make it more reliable, and get a consistent output. But I prefer to
keep changes minimal for 3.x branches at this point.

(cherry picked from commit 4206975e3a)
2024-01-30 15:03:22 +01:00
b320fe6c39 Update year property in version.py to 2024
Seems like we missed this one when changing the copyright statements
to use `present` instead of the hardcoded `year`.

And backport other minor improvements from #87543.

(cherry picked from commit f61e2491e1)
2024-01-30 15:03:21 +01:00
461e26a24d Return exit code 0 when running --version or --help
Fixes https://github.com/godotengine/godot/issues/83661

(cherry picked from commit 7c3d37ec1d)
2024-01-30 15:03:20 +01:00
a785276e02 Add project settings for AVAudioSessionCategory on iOS
Co-authored-by: Georg Wacker <contact@georgwacker.com>
(cherry picked from commit 739d27ae40)
2024-01-30 15:03:19 +01:00
592fe7af48 Add XInput device ID for wireless Series 2 Elite controller
(cherry picked from commit 81f9c0345c)
2024-01-30 15:03:19 +01:00
eddf2bfda7 Set what were default values for some emscripten linkflags
- Set `-sSTACK_SIZE` to what it was before emscripten 3.1.27.
  It was renamed in 3.1.25 so also set `-sTOTAL_SIZE` for older
  versions for consistency.
- Set `-sDEFAULT_PTHREAD_STACK_SIZE` to what it was before 3.1.30.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit 8e5fbd4348)
2024-01-30 15:03:19 +01:00
ebec8162c9 SCons: Fix Python 3.12 SyntaxError with regex escape sequences
(cherry picked from commit b362976504)
2024-01-30 15:03:17 +01:00
1c125e6cc6 Web: Fix version check for missing scalbnf LTO workaround
The check needs to happen after we set `env["CXX"]`.
Follow-up to #81340.

(cherry picked from commit 50161808c2)
2023-09-24 15:39:47 +02:00
6b46ebef01 [macOS, 3.x] Workaround Xcode 15 linker bug.
(cherry picked from commit fad3fced8f)
2023-09-24 14:13:04 +02:00
09b94aa8ba [macOS] Change target version to 11.0+ to fix PCRE SLJIT build.
(cherry picked from commit 233f21108b)
2023-09-24 14:12:41 +02:00
820fb37e60 [macOS] Disable live resize in multithreaded rendering mode.
(cherry picked from commit dfa509a3b4)
2023-09-24 14:06:56 +02:00
36a04314bd Added support for repackaging the generated UWP APPX file with makeappx.
(cherry picked from commit 7d7e256e7f)
2023-09-24 14:05:34 +02:00
86b409f067 Web: Workaround Emscripten 3.1.42+ LTO regression
Fixes #80010.

(cherry picked from commit b064008c07)
2023-09-06 14:04:01 +02:00
d20dfcfe79 [3.x] Fix JavaScript callback memory leak
(cherry picked from commit 8ac91f813f)
2023-09-06 14:03:58 +02:00
5013dde8fc Build system: add option for MSVC incremental linking.
(cherry picked from commit bbafe14970)
2023-09-06 13:21:32 +02:00
5267fcb1bc Fix: incorrectly .gitignored files.
(cherry picked from commit 90f3992036)
2023-09-06 13:18:19 +02:00
10af8ad8d8 SCons: Disable misbehaving MSVC incremental linking
Fixes #77968.

(cherry picked from commit bc1aef88ee)
2023-08-28 17:31:27 +02:00
212190ae49 Build JoypadLinux sandbox detection method only with udev
Fixes an `unused-function` warning when building with `udev=no`.

(cherry picked from commit 51dfdfab96)
2023-08-28 17:03:39 +02:00
3f4910bf33 Added a few additional GUIDs to list of hardcoded IDs in is_xinput_device
(cherry picked from commit 19ce63d875)
2023-08-28 16:51:41 +02:00
478185f79b ios splash screen rotation fix
(cherry picked from commit 8fcca194a1)
2023-08-28 16:42:44 +02:00
e0ad1e8358 [JS] Update npm packages
Redo of #80093 for 3.5.
2023-08-19 00:46:57 +02:00
d8f6c3aac6 [X11] Use current keyboard layout in OS_X11::keyboard_get_scancode_from_physical.
(cherry picked from commit 9461923eff)
2023-08-19 00:37:41 +02:00
03b2b23ef8 Linux: Don't use udev for joypad hotloading when running in a sandbox
udev doesn't work in sandboxes, notably the new Steam container runtime
as found notably on the Steam Deck, and in Flatpak/Snap packages.

Like SDL does, when we detect such a containerized environment, we fall
back to parsing `/dev/input` directly.
See smcv's comments in #76879 for details.

Fixes #76879.

(cherry picked from commit 788cb74cc6)
(cherry picked from commit 8a23fa41a8)
2023-08-19 00:36:14 +02:00
42f9208593 Fix null in android text entry system.
(cherry picked from commit cec8e09948)
2023-08-19 00:36:13 +02:00
75d8d332f2 Bump the target SDK version to 33 (Android 13)
Keep the android gradle plugin to version 7.2.1.

Version 7.3.0 changes the build layout which causes updates to the generated shared libraries to not be picked up.

(cherry picked from commits 2803c471e8
and 837db0b051)
2023-08-19 00:36:12 +02:00
c8e800f457 Fix directory access when the running app has the All files access permission
(cherry picked from commit e2c7d3e6c0)
2023-08-19 00:36:12 +02:00
5aca56bcd4 Implement file provider capabilities
The previously used file sharing api was restricted after Android N causing the engine to crash whenever used on devices running Android N or higher.

(cherry picked from commit b04c9a71f4)
2023-08-19 00:36:11 +02:00
dfb898094a increased max touches to 32 for ios
(cherry picked from commit 54bd204377)
2023-03-06 13:32:03 +01:00
e266ac4e3e iOS: Implement missing gamepad.buttonOptions, buttonMenu, and buttonHome joy buttons
(cherry picked from commit 0a85e4db71)
2023-03-06 13:32:03 +01:00
b4da1fbb41 UWP: Fix build with Google ANGLE not supporting EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER
EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER is not present in Google ANGLE,
and Microsoft ANGLE is outdated and not supported anymore.

(cherry picked from commit eebc983df8)
2023-03-06 13:32:01 +01:00
4574c671f6 UWP: Fix app crash when managed_object->update_clipboard() is called
(cherry picked from commit f5693969f0)
2023-03-06 13:32:01 +01:00
237a31e1f2 Fix Xbox Series controller duplicate input
(cherry picked from commit e9400867b3)
2023-03-06 13:02:54 +01:00
3d9bcd7d27 Fix AltGR getting stuck on Windows right alt-tab
Fixes #28511.

(cherry picked from commit e01452adb0)
2023-03-06 13:02:03 +01:00
dc0f7255f1 Windows: Fix heap overflow setting native icon
Fixes #71697.

(cherry picked from commit 86945ffc78)
2023-03-06 13:00:20 +01:00
3ef78da85a Fix writing value for hand-tracking V2.0 to AndroidManifest.xml
(cherry picked from commit 0116d50fdd)
2023-01-20 12:16:35 +01:00
f78b44c1fa macOS: Fix sprintf deprecation warning
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
(cherry picked from commit a297a69ac8)
2023-01-20 12:14:21 +01:00
6cfbe8d442 Bump json5 from 1.0.1 to 1.0.2 in /platform/web
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit a20c8443af)
2023-01-11 16:03:02 +01:00
7a4175504b iOS: Add new model identifiers for DPI metrics
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
(cherry picked from commit ee5057a42e)
2023-01-11 16:03:02 +01:00
0c0c009f8d [macOS] Fix stylus tilt Y direction.
(cherry picked from commit 5478f9b842)
2023-01-11 16:03:02 +01:00
16f6a5b139 One Copyright Update to rule them all
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.

It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).

We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).

Also fixed "cf." Frenchism - it's meant as "refer to / see".

Backported from #70885.
2023-01-10 15:32:59 +01:00
602ef82e89 Change auto to default in cursor css settings.
(cherry picked from commit 6812e66f33)
2022-12-12 14:59:52 +01:00
faaec47d54 Upgrade Android gradle plugin to version 7.2.1
(cherry picked from commit 151233b702)
2022-12-12 14:45:38 +01:00