1029 Commits

Author SHA1 Message Date
65dc2f1265 Merge pull request #1533 from dsnopek/4.0-cherrypicks-1
Cherry-picks for the godot-cpp 4.0 branch - 1st batch
2024-07-23 09:42:29 -05:00
469d65d951 [CI] Update macOS workers to macos-latest
GitHub actions no longer allow `macos-11` runners

(cherry picked from commit 2dd8917508)
2024-07-22 08:44:18 -05:00
597ae98f44 Bump mymindstorm/setup-emsdk from 12 to 13
Bumps [mymindstorm/setup-emsdk](https://github.com/mymindstorm/setup-emsdk) from 12 to 13.
- [Release notes](https://github.com/mymindstorm/setup-emsdk/releases)
- [Commits](https://github.com/mymindstorm/setup-emsdk/compare/v12...v13)

---
updated-dependencies:
- dependency-name: mymindstorm/setup-emsdk
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 78bf5a42ed)
2024-07-22 08:44:07 -05:00
c8096d4668 CI: Install Android NDK r23c explicitly
It has just been removed from the Ubuntu 20.04 default install,
breaking our CI setup.

Also, sets Emscripten version to 3.1.39, as done upstream.
Newer versions actually break dynamic library support.

(cherry picked from commit eea33b4133)
2024-07-22 08:43:36 -05:00
2fdac1c9a9 gdextension: Sync with upstream commit fc0b241c9b0be3890712c3b72248d6bd790e7889 (4.0.4-stable) godot-4.0.4-stable 2023-11-09 13:22:17 +01:00
d479df19f7 CI: Fix MinGW install error by pinning to earlier version
Works around https://github.com/egor-tensin/setup-mingw/issues/14.

(cherry picked from commit 0369f6fea0)
2023-10-04 15:21:11 +02:00
3a9118cb0d gdextension: Sync with upstream commit 5222a99f5d38cd5346254cefed8f65315bca4fcb (4.0.3-stable) godot-4.0.3-stable 2023-05-19 14:08:46 +02:00
7fb46e9ea1 gdextension: Sync with upstream commit 7a0977ce2c558fe6219f0a14f8bd4d05aea8f019 (4.0.2-stable) godot-4.0.2-stable 2023-04-04 15:46:34 +02:00
4d3afc0ad0 gdextension: Sync with upstream commit cacf49999e3fb37281d66cc591ca8bebc5712d4d (4.0.1-stable) godot-4.0.1-stable 2023-03-20 18:33:38 +01:00
9d1c396c54 gdextension: Sync with upstream commit 92bee43adba8d2401ef40e2480e53087bcb1eaf1 (4.0-stable) godot-4.0-stable 2023-03-01 15:32:44 +01:00
e31e15bb3b Add compatibility warning: godot-cpp is still in beta 2023-03-01 15:32:36 +01:00
1f1a373041 gdextension: Sync with upstream commit 0cd148313213e2923004be65bafd6a3781c917ec (4.0-rc6) 2023-02-27 08:55:28 +01:00
4f2b1ed2e8 gdextension: Sync with upstream commit 6296b46008fb8d8e5cb9b60af05fa1ea26b8f600 (4.0-rc5) 2023-02-25 01:16:11 +01:00
c2c5c85ef4 gdextension: Sync with upstream commit e0de3573f3fc86062763152f5a1ac62f5a986da3 (4.0-rc4) 2023-02-23 18:05:21 +01:00
c1ff169bf3 gdextension: Sync with upstream commit 7e79aead99a53ee7cdf383add9a6a2aea4f15beb (4.0-rc3) 2023-02-21 21:38:17 +01:00
2a15286060 Merge pull request #1053 from bruvzg/fix_release_memalloc
Fix incorrect memory allocation in release builds.
2023-02-21 14:51:15 +01:00
ba4b50118d Fix incorrect memory allocation in release builds.
Co-authored-by: lightyears <lightyears1998@hotmail.com>
2023-02-21 15:32:26 +02:00
2f07eb07ee Merge pull request #1046 from dsnopek/revert-fix-object-cast-to
Revert "Fix Object::cast_to<T>() for custom classes"
2023-02-20 10:09:53 +01:00
964c515d75 Revert "Fix Object::cast_to<T>() for custom classes"
This reverts commit 75af9003dc.
2023-02-16 06:58:32 -06:00
f5133c08a5 Merge pull request #1040 from zhehangd/fix_const_str_ptr
Fix compilation error: const GDExtensionStringPtr -> GDExtensionConst…
2023-02-15 10:16:49 +01:00
07c914b479 Fix compilation error: const GDExtensionStringPtr -> GDExtensionConstStringPtr 2023-02-14 18:53:11 -08:00
0068320ff1 gdextension: Sync with upstream commit d2699dc7ab96fbd75faccc1f32f55baebf1d84dc (4.0-rc2) 2023-02-14 19:12:02 +01:00
8a3faaa649 Merge pull request #1037 from dsnopek/fix-object-cast-to
Fix Object::cast_to<T>() for custom classes
2023-02-14 19:11:29 +01:00
75af9003dc Fix Object::cast_to<T>() for custom classes 2023-02-11 17:16:59 -06:00
f9ccf28374 Merge pull request #1034 from Bromeon/qol/array-set-typed
`array_set_typed()` now called with `GDExtensionVariantType` instead of `uint32_t`
2023-02-09 11:29:45 +01:00
706006ec83 Update array_set_typed() call to use GDExtensionVariantType instead of uint32_t 2023-02-09 11:12:51 +01:00
516fad14e4 gdextension: Sync with upstream commit c4fb119f03477ad9a494ba6cdad211b35a8efcce (4.0-rc1) 2023-02-08 14:47:21 +01:00
52e63ddd22 Merge pull request #975 from asmaloney/cmake-static-and-pic
{cmake} Use STATIC and POSITION_INDEPENDENT_CODE
2023-02-08 14:46:32 +01:00
2379034958 {cmake} Use STATIC and POSITION_INDEPENDENT_CODE
Instead of specifying flags manually, use CMake.
2023-02-07 10:24:25 -05:00
50e97de636 Merge pull request #1008 from asmaloney/cmake-compiler-warnings
{cmake} Use the same compiler warnings as godot
2023-02-07 14:00:04 +01:00
99f6de1dfc Merge pull request #1029 from asmaloney/cmake-combine-includes
{cmake} Combine target_include_directories
2023-02-07 13:49:25 +01:00
0704528b4c Merge pull request #1027 from Daylily-Zeleen/daylily-zeleen/fix_global_enum_cast
Fix global enum cast and add `Varint::Type`'s cast.
2023-02-07 13:48:58 +01:00
e72bc1a12f Merge pull request #1028 from asmaloney/fix-improper-conversion
Fix improper implicit conversion
2023-02-07 13:48:54 +01:00
9607a51b52 Merge pull request #1030 from asmaloney/constify
ExampleRef::get_id() should be const
2023-02-07 13:48:38 +01:00
fccceb8736 Merge pull request #1011 from mihe/error-macros
Update error macros to match core
2023-02-07 13:47:51 +01:00
d081b4bab6 {cmake} Use the same compiler warnings as godot 2023-02-04 11:18:19 -05:00
b01f0cf99b ExampleRef::get_id() should be const 2023-02-02 13:01:31 -05:00
2a221300de {cmake} Combine target_include_directories
Makes all include directories consistent.

Turns GODOT_CPP_SYSTEM_HEADERS ON by default since that's what was already being done for ${GODOT_GDEXTENSION_DIR}.
2023-02-02 12:58:03 -05:00
f2cb5a7414 Fix improper implicit conversion 2023-02-02 11:30:37 -05:00
a614f61015 Fix global enum cast and add Varint::Type cast. 2023-02-02 16:42:15 +08:00
f2b97528c1 gdextension: Sync with upstream commit c40020513ac8201a449b5ae2eeb58fef0ce0a2a4 (4.0-beta17) 2023-02-01 22:25:07 +01:00
6d4d18a4fa Merge pull request #1026 from bruvzg/typed_arr_ref
Update typed array API to match "GDScript: Fix typed arrays".
2023-01-31 10:41:27 +01:00
37f6e35974 Update typed array API to match "GDScript: Fix typed arrays". 2023-01-31 11:28:55 +02:00
014eda2535 Revert "gdextension: Sync with upstream commit 551f5191e5dbc1d1a43f99b13d5dbbf7f598dc58 + PR 69248"
This reverts commit 1166783725.

It's not as simple as I thought, needs some local changes too.
2023-01-30 19:42:53 +01:00
552f1383bf Merge pull request #977 from asmaloney/binding-cleanup
Binding generator cleanups
2023-01-30 19:39:52 +01:00
1166783725 gdextension: Sync with upstream commit 551f5191e5dbc1d1a43f99b13d5dbbf7f598dc58 + PR 69248
Needed for that PR to pass CI.
https://github.com/godotengine/godot/pull/69248
2023-01-30 19:39:22 +01:00
2d5e5c0fd6 Binding generator cleanups
- remove unused vars
- fix a few f-strings
- remove f-string notation where not used
2023-01-30 10:57:26 -05:00
d177752be1 Merge pull request #982 from WildRackoon/templates-add-LocalVector
Add missing local_vector.hpp template
2023-01-30 12:32:13 +01:00
c1d4fb2b68 Merge pull request #1023 from mashumafi/fix-alloc-order
Move DefaultTypedAllocator after memdelete
2023-01-30 12:32:07 +01:00
f59fd96ab4 Merge pull request #1013 from bruvzg/set_typed_move
Move Array:set_typed to internal GDExtension structure.
2023-01-30 12:31:38 +01:00