Commit Graph

1642 Commits

Author SHA1 Message Date
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
David Snopek
67f6f96a9b Synchronize most shared variant code with Godot 4.4
(cherry picked from commit 075b517d96)
2025-06-24 15:31:38 -05:00
Thaddeus Crews
749d68037e Ignore #pragma once commit
(cherry picked from commit c963321cdd)
2025-06-24 15:31:24 -05:00
Thaddeus Crews
f166d4ed8c Style: Replace header guards with #pragma once
(cherry picked from commit 7056c996dd)
2025-06-24 15:31:15 -05:00
Thaddeus Crews
6fcc184587 Style: Integrate #pragma once in builders/checks
(cherry picked from commit 107cb1da5e)
2025-06-24 15:31:06 -05:00
David Snopek
e4b7c25e72 gdextension: Sync with upstream commit 49a5bc7b616bd04689a2c89e89bda41f50241464 (4.4.1-stable) godot-4.4.1-stable 2025-03-27 07:31:44 -05:00
David Snopek
6388e26dd8 Merge pull request #1745 from dsnopek/4.4-cherrypicks-1
Cherry-picks for the godot-cpp 4.4 branch - 1st batch
2025-03-18 08:08:53 -05:00
Samuel Nicholas
e9a6dbd697 CMake: public/private flags
Made all warnings private.
Warning as error private
Consistency in  generator expressions

(cherry picked from commit 5eb16d0c5b)
2025-03-17 11:27:37 -05:00
zhmt
6b0d2e502c binding_generator.py: Don't error if directory already exists
It should be ok when folders exist. Exception shouldn't be thrown.

Update binding_generator.py

It should be ok when folds exist. It will fail to build without this patch,  in vs code on windows with compiler ( visual studio community 2022 amd 64) .

Co-Authored-By: Chris Cranford <ccranfor@redhat.com>
(cherry picked from commit d79959c79e)
2025-03-17 11:27:27 -05:00
Samuel Nicholas
21fba890d6 CMake: XCode dependency chain fixes - remastered
When attempting to generate XCode projects it would fail due to the target dependency chain not meeting expectations.

This PR, adds the required dependency infomation so that the XCode generator works.

(cherry picked from commit f83f364144)
2025-03-17 11:27:17 -05:00