Commit Graph

1651 Commits

Author SHA1 Message Date
dementive
fec8bd56db Use LocalVector instead of std::vector
(cherry picked from commit 0b8e76817b)
2025-10-20 13:25:39 -05:00
Lukas Tenbrink
50eabd9359 Update contributing section in README.md
(cherry picked from commit c58dfa4d99)
2025-10-20 13:25:26 -05:00
dementive
1518bd17dc Remove <string> includes in headers
(cherry picked from commit e36e81ac86)
2025-10-20 13:25:12 -05:00
David Snopek
269c925c29 Merge pull request #1836 from dsnopek/4.4-cherrypicks-3
Cherry-picks for the godot-cpp 4.4 branch - 3rd batch
2025-09-11 10:08:06 -05:00
Samuel Nicholas
ad484bcdbb CMake: Add GODOTCPP_SUFFIX_GENEX variable
This is the same as GODOTCPP_SUFFIX but without the leading '.'
GODOTCPP_SUFFIX is  then based on the above.

(cherry picked from commit b64b941adf)
2025-08-21 08:49:36 -05:00
David Snopek
b842dc9696 Take reference in Wrapped(const StringName &)
(cherry picked from commit b192b880d3)
2025-08-21 08:49:28 -05:00
Ben Lubar
cf79eb39da Only check for Godot 4.0 if the pointer is aligned how it would be for the legacy interface.
(cherry picked from commit 05d2ce3006)
2025-08-21 08:49:18 -05:00
Ben Lubar
0eeb43c4be Fix debug symbols logic on platform=web to match Godot core.
(cherry picked from commit 9ea9b4797c)
2025-08-21 08:49:09 -05:00
Klaim (Joël Lamotte)
9d8c520bb9 fix: missing type_traits include
Usage of `std::is_trivially_constructible` in `defs.hpp` requires including `type_traits`. This missing include leads to errors about that type not being found when building with clang++-22 with libc++-22.

(cherry picked from commit fbe5262d7b)
2025-08-21 08:48:56 -05:00
Chris Cranford
a8faa36fd2 Reintroduce Math_INF and Math_NAN defines
(cherry picked from commit 6a21f76c4d)
2025-08-21 08:48:46 -05:00
David Snopek
d7bdc62a91 Fix custom_api_file with SCons 4.0.1
(cherry picked from commit 8e7dfbc71a)
2025-08-21 08:48:33 -05:00
Cedric Shock
9b6a44cb04 Add SCons variant_dir support, which allows specifying a target build directory.
(cherry picked from commit 1345c46650)
2025-08-21 08:48:19 -05:00
David Snopek
58c3594cd7 Files generated by SCons should depend on the build_profile (if given)
(cherry picked from commit 646ccdf470)
2025-08-21 08:48:04 -05:00
David Snopek
d502d8e8aa Merge pull request #1805 from dsnopek/4.4-cherrypicks-2a
Cherry-picks for the godot-cpp 4.4 branch - 2nd batch
2025-07-03 08:53:10 -05:00
David Snopek
2f0dbc7bba Update CI to use windows-2022
(cherry picked from commit 8938e7e4e3)
2025-06-24 17:31:47 -05:00
David Snopek
022ce432b8 Disable double precisions builds in CI
(cherry picked from commit b46c31a50e)
2025-06-24 15:40:57 -05:00
Samuel Nicholas
6371691009 added missing include .hpp and .inc detection
removed redundant .py detection.

(cherry picked from commit 6d11a780bf)
2025-06-24 15:40:44 -05:00
Pāvels Nadtočajevs
4f2f319fb2 Fix binding generation for TypedArray/TypedDictionary with refcounted elements.
(cherry picked from commit ed53a70e71)
2025-06-24 15:40:34 -05:00
Tom
da3b350e85 Cleaned up the MethodBind class
(cherry picked from commit ca5af3c861)
2025-06-24 15:40:24 -05:00
marcin.mirski
bda8a0fbd6 Improve CMAKE_BUILD_PARALLEL_LEVEL message
(cherry picked from commit 0c2e66e414)
2025-06-24 15:39:54 -05:00
marcin.mirski
eaeafdf596 Fix: Add STATUS to CMake message commands missing them
(cherry picked from commit 8eac097c37)
2025-06-24 15:39:48 -05:00
MJacred
980edc22a7 Fix URL to gdextension cpp example in the official docs
(cherry picked from commit f25c4df5c4)
2025-06-24 15:39:24 -05:00
Lukas Tenbrink
0be68c870f Make ndk version configurable as a command-like argument.
(cherry picked from commit 16e47d7ae5)
2025-06-24 15:39:06 -05:00
Tom
ac2263f126 Fixed a crash with an Array constructor
(cherry picked from commit ddd4f2513c)
2025-06-24 15:38:55 -05:00
Dyllan Cole
2eb13f8971 Fix incorrect binding_generator_generate_bindings variable names
(cherry picked from commit 4824aa41e8)
2025-06-24 15:38:41 -05:00
Thaddeus Crews
2bd3d5314e CI: Ensure utf-8 support on Windows GHA
(cherry picked from commit 42f6dc6d49)
2025-06-24 15:38:32 -05:00
Thaddeus Crews
08f893f1ea CI: Various version bumps; sync with main repo
(cherry picked from commit 64cdf089d9)
2025-06-24 15:37:21 -05:00
Fabio Alessandrelli
532a028e17 fix: Add iOS min SDK version link flags
This is required when publishing to the App Store, and consistent with
what we already do for the macOS deployment target.

(cherry picked from commit 4879eb7bd0)
2025-06-24 15:37:09 -05:00
David Snopek
90260ea659 Stop referring to GDExtension as experimental in the README
(cherry picked from commit 7660dd28b3)
2025-06-24 15:36:53 -05:00
Ben Lubar
b41801b6a8 fix iterators making unintended copies
(cherry picked from commit 7fd0999b3c)
2025-06-24 15:36:35 -05:00
David Snopek
f4c1de582c Fix classes without _to_string() always returning "[Wrapped:0]"
(cherry picked from commit f38c056b67)
2025-06-24 15:35:46 -05:00
Samuel Nicholas
947d357252 Match #1758 build option changes
d634a5f8c4 (diff-e2225522e55739f1533a3ce9eee58324ac9c192c8ba30065067964347d22fdacL471)
(cherry picked from commit b195a51c6c)
2025-06-24 15:35:33 -05:00
Thaddeus Crews
b905a87ebe SCons: Add CPPEXTPATH for external includes
(cherry picked from commit 30bfa6f215)
2025-06-24 15:35:19 -05:00
Marc Gilleron
6182a2728b Use Math::abs to avoid ambiguity with integer abs
(cherry picked from commit 7670de814f)
2025-06-24 15:35:09 -05:00
Samuel Nicholas
5dae002a5d version bump of mozilla-sccache action to 0.0.9
https://github.blog/changelog/2025-03-20-notification-of-upcoming-breaking-changes-in-github-actions/#decommissioned-cache-service-brownouts
(cherry picked from commit bbbcc6adc7)
2025-06-24 15:35:00 -05:00
Grublady
b0399d9782 Fix TypedDictionary binding generation
(cherry picked from commit 26201dd27a)
2025-06-24 15:34:29 -05:00
Tom
b139e2fb76 Synced defs.hpp with godot's typedefs.h
(cherry picked from commit d634a5f8c4)
2025-06-24 15:34:18 -05:00
Marc Gilleron
bdeb1987f6 Use Math::abs to avoid ambiguity with integer abs
(cherry picked from commit 7e6c9c9370)
2025-06-24 15:34:04 -05:00
Samuel Nicholas
2b4512414b Fix compatibility break for CI
(cherry picked from commit 38e517b98b)
2025-06-24 15:33:53 -05:00
Hugo Locurcio
483499c14c Update test project to Godot 4.4
(cherry picked from commit 552a74c96e)
2025-06-24 15:33:43 -05:00
Tom
466a743112 Added initialiser list support to TypedDictionary
(cherry picked from commit 335b490061)
2025-06-24 15:33:33 -05:00
Samuel Nicholas
3963054a14 CMake: Update CI
- Duplicated the ci.yml into ci-scons.yml and ci-cmake.yml
- Replaced some manual shell commands to detect changes with  tj-actions/changed-files@v45
- Conditionally run the CI depending on what files change.
- Add ios toolchain from leetal/ios-cmake
- Added a cmake-minimum of 3.10 to silence errors from ios toolchain

(cherry picked from commit b6c0251296)
2025-06-24 15:33:21 -05:00
Tom
6e6a1ea451 .
(cherry picked from commit 946a693859)
2025-06-24 15:33:04 -05:00
Tom
c435258dde Made the Array's ptr and ptrw methods private
(cherry picked from commit a2c37f8a16)
2025-06-24 15:32:54 -05:00
unvermuthet
863f94de77 Implement use_static_cpp flag for Linux
(cherry picked from commit b0f41909e0)
2025-06-24 15:32:45 -05:00
Aaron Franke
e299bc623d Add missing Projection constructor with 16 real_t values
(cherry picked from commit aa03c32b3e)
2025-06-24 15:32:33 -05:00
Tom
37febead2b Add method_ptrcall header include to type_info to fix compiler errors
(cherry picked from commit 7ffaecce8c)
2025-06-24 15:32:23 -05:00
David Snopek
940fdea07f Fix stack smashing when Godot methods return char32_t, char16_t or wchar_t
(cherry picked from commit 035add9d4f)
2025-06-24 15:32:14 -05:00
Pāvels Nadtočajevs
6917c1ea17 [macOS] Remove unnecessary Cocoa reference.
(cherry picked from commit d239da3221)
2025-06-24 15:32:03 -05:00
David Snopek
0a39efe3d3 Synchronize most shared template code with Godot 4.4
(cherry picked from commit 1edfca295b)
2025-06-24 15:31:53 -05:00