Thaddeus Crews
a1ae58448c
fix is_msvc and use_hot_reload variables
...
(cherry picked from commit 648b8c4489
)
2023-11-13 13:00:24 -06:00
Thaddeus Crews
805cdde0b7
GDCLASS synced by ending with "private:"
...
• Matches implementation used by modules and godot itself
• Apply same to GDEXTENSION_CLASS, setup with same diff-friendly spacers as GDCLASS
(cherry picked from commit 6eb5d450bd
)
2023-11-13 13:00:24 -06:00
Fredia Huya-Kouadio
29335d8f5c
Update the environment variables used to access the Android NDK toolchain
...
(cherry picked from commit 86dbd5fa0d
)
2023-11-13 13:00:24 -06:00
Rémi Verschelde
c5f47b2a4e
CI: Workaround upstream issue with .NET editor build not exiting
...
We force closing the process after 10 s, which should be ample time to generate
the .godot folder.
(cherry picked from commit 306774b5a4
)
2023-11-13 19:15:07 +01:00
Rémi Verschelde
df5b1a9a69
gdextension: Sync with upstream commit fc79201851a16215f9554884aa242ed957801b10 (4.1.3-stable)
2023-11-09 13:25:22 +01:00
Rémi Verschelde
04b34077d8
Merge pull request #1281 from dsnopek/4.1-cherrypicks-5
...
Cherry-picks for the godot-cpp 4.1 branch - 5th batch
2023-10-24 11:38:55 +02:00
David Snopek
9d813310bb
Add protections against registering classes that didn't use GDCLASS()
...
(cherry picked from commit a61cdc8860
)
2023-10-23 10:11:04 -05:00
Rémi Verschelde
ef8a499eac
SCons: Disable C++ exception handling by default
...
Counterpart to https://github.com/godotengine/godot/pull/80612 .
(cherry picked from commit bf1c03ab5f
)
2023-10-23 10:10:59 -05:00
gilzoide
698da13d66
Fix return value and r_valid value in Variant::iter_init and iter_next
...
(cherry picked from commit 60dfa3445a
)
2023-10-22 14:47:10 -05:00
Adam Scott
8295486fdb
Refactor compiledb implementation
...
This comment enables the possibility to build the "compile_commands.json"
file by only using `scons -Q compiledb`. No need to use the argument
`compiledb=yes`.
And when using the `compiledb=yes`, it will create a
"compiled_commands.json" automatically.
(cherry picked from commit 2d5024ac8e
)
2023-10-22 14:46:58 -05:00
Thaddeus Crews
7704a9d054
Let gdextension_dir function as only argument
...
(cherry picked from commit 7a5cbcac21
)
2023-10-22 14:46:48 -05:00
David Snopek
f7ffc4fe4d
Automatically register only engine classes whose header has been included
...
(cherry picked from commit b507b3e591
)
2023-10-22 14:46:26 -05:00
Fabio Alessandrelli
62cb5eac47
[SCons] Rename javascript tool to web
...
And clean it up a bit.
(cherry picked from commit 18bfa133ab
)
2023-10-22 14:03:20 -05:00
Mikael Hermansson
03ea717742
Declare explicit specializations for `CharStringT`
...
(cherry picked from commit 6e05b978b8
)
2023-10-22 14:03:10 -05:00
Rémi Verschelde
e389f7a50c
Merge pull request #1261 from dsnopek/4.1-cherrypicks-4
...
Cherry-picks for the godot-cpp 4.1 branch - 4th batch
2023-10-12 18:08:12 +02:00
Nick Maltbie
0b1c8bcac3
Added fix for javascript build for godot 4.x
...
Added changes to tools/javascript.py to add PFlags to fix SharedArrayBuffer memory error.
Corrected some small errors in tools/javascript.py to support new target names.
Also updated ci to include validation for web build.
(cherry picked from commit 2b4bcbb0ce
)
2023-10-09 08:43:36 -05:00
Matthew Murphy
857d8e3a56
Fix variant call compiler error
...
Co-authored-by: David Snopek <dsnopek@gmail.com>
(cherry picked from commit ca3e25de04
)
2023-10-09 08:43:23 -05:00
David Snopek
ec6e51b3a4
Handle missing instance binding callbacks by finding the closest parent
...
(cherry picked from commit 52ca3ef547
)
2023-10-09 08:42:55 -05:00
Adam Scott
f8054cca80
Add support to import custom variables from parent SConstruct (redux)
...
(cherry picked from commit 982e01ec7f
)
2023-10-09 08:42:43 -05:00
A Thousand Ships
59ebcfd744
Fix allocation size overflow check in `CowData`
...
(cherry picked from commit 06ffc7e952
)
2023-10-09 08:42:31 -05:00
A Thousand Ships
205beacc5b
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
...
(cherry picked from commit 1e5767693e
)
2023-10-09 08:42:16 -05:00
Rémi Verschelde
3b3f357de9
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:01 +02:00
Rémi Verschelde
48b92acf8c
gdextension: Sync with upstream commit 399c9dc393f6f84c0b4e4d4117906c70c048ecf2 (4.1.2-stable)
2023-10-04 12:02:54 +02:00
Rémi Verschelde
4eed2d7be0
Merge pull request #1244 from dsnopek/4.1-cherrypicks-3
...
Cherry-picks for the godot-cpp 4.1 branch - 3rd batch
2023-09-20 23:48:26 +02:00
David Snopek
bc82ae8b0b
Add static methods to `ClassDB` for the methods bound to the `ClassDB` singleton
...
(cherry picked from commit 6f913563d8
)
2023-09-19 21:30:03 -05:00
David Snopek
590e267902
Load 'print_error_with_message' function
...
(cherry picked from commit 634ed09ec0
)
2023-09-19 21:29:29 -05:00
David Snopek
3be7ec4162
Check that GDExtension is opened by compatible Godot version
...
(cherry picked from commit fecb2959b4
)
2023-09-19 21:27:40 -05:00
DmitriySalnikov
dd8e1def67
[SCons] Fixed crashes in several scripts
...
(cherry picked from commit 0e5975dd26
)
2023-09-19 21:23:20 -05:00
David Snopek
dcd7a69512
Ensure that PtrToArg specializations for native structs are used
...
(cherry picked from commit 3cd3f24150
)
2023-09-19 21:22:54 -05:00
dependabot[bot]
354ed1e79d
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 5d4ff63930
)
2023-09-19 21:22:20 -05:00
A Thousand Ships
014132d4c0
Ensure `const` correctness for wrappers
...
(cherry picked from commit f651df5e7a
)
2023-09-19 21:21:20 -05:00
David Snopek
bc980b59ff
Merge pull request #1227 from dsnopek/4.1-cherrypicks-2
...
Cherry-picks for the godot-cpp 4.1 branch - 2nd batch
2023-09-02 12:38:20 -05:00
A Thousand Ships
c3771fb065
Fix formatting of `compatibility_minimum` examples
...
Without quotes the values is parsed as a float, breaking in various
cases.
(cherry picked from commit b3596a18e1
)
2023-09-01 17:08:03 -05:00
Fabio Alessandrelli
63755b2a32
[SCons] Move the GodotCPP build to its own tool.
...
(cherry picked from commit f8b4f60cb9
)
2023-09-01 17:07:53 -05:00
David Snopek
ce5dd378d9
Clarify versions and examples in the README
...
(cherry picked from commit 1588dc8437
)
2023-09-01 17:07:41 -05:00
A Thousand Ships
c6fe6533f9
Fix link to test project in readme
...
Also updated format for library paths
(cherry picked from commit e586e11637
)
2023-09-01 17:07:30 -05:00
A Thousand Ships
170a691a7e
Add remaining component-wise `min/max` functions to `Vector*`
...
(cherry picked from commit 52eb77efd4
)
2023-09-01 17:07:18 -05:00
Rémi Verschelde
738ef9baf8
SCons: Sync `targets.py` fully with upstream Godot
...
- Reorders existing code to match Godot.
- Adds `NDEBUG` for non-dev builds.
- Adds `-gdwarf-4` for Clang debug symbols.
- Adds strip link flag for GCC/Clang builds without debug symbols.
(cherry picked from commit 600e749d9b
)
2023-09-01 17:07:03 -05:00
Adam Scott
c7afd0f89a
Fix forgotten not operator
...
(cherry picked from commit f5c8e5190f
)
2023-09-01 17:06:51 -05:00
Adam Scott
6789b29b72
Fix Clang deprecated builtins
...
It seems that Clang and GCC have different interpretations of certain
builtins. So this PR uses std <type_traits> functions just as cowdata.h
does in the godot project.
(cherry picked from commit 5c262844ad
)
2023-09-01 17:06:39 -05:00
David Snopek
960c906da1
Add automated tests to verify some previous fixes
...
(cherry picked from commit d5fab0b9f8
)
2023-09-01 17:06:20 -05:00
Marc Gilleron
0f2d3652e5
Added generated version header
...
(cherry picked from commit c6b2c82570
)
2023-09-01 17:06:03 -05:00
David Snopek
28494f0bd5
Merge pull request #1205 from dsnopek/4.1-cherrypicks-1
...
Cherry-picks for the godot-cpp 4.1 branch - 1st batch
2023-08-11 10:35:12 -05:00
Feiyun Wang
4fb9af7fb2
Statically link mingw/msvc runtime libraries on Windows
...
Co-authored-by: David Snopek <dsnopek@gmail.com>
(cherry picked from commit a745c2ac47
)
2023-08-10 09:10:04 -05:00
Fabio Alessandrelli
6fa6b8b178
[SCons] Merge OSXCross tools into platofrm ones
...
(cherry picked from commit 6d195137fe
)
2023-08-10 09:09:49 -05:00
Fabio Alessandrelli
784c3dc012
[SCons] Add option to generate a compilation database.
...
(cherry picked from commit 2586ad016e
)
2023-08-10 09:09:30 -05:00
Adam Scott
7a9b323931
Add platform macros
...
(cherry picked from commit 9d9f4279ed
)
2023-08-10 09:09:14 -05:00
Marc Gilleron
e75ec636db
Don't cache `null` forever if a singleton isn't available yet
...
# Conflicts:
# binding_generator.py
(cherry picked from commit 548c758677
)
2023-08-10 09:08:56 -05:00
David Snopek
5dda0212f6
In generated methods, only construct the method StringName the first time
...
(cherry picked from commit efc16b49d9
)
2023-08-10 09:06:33 -05:00
David Snopek
011965d864
Attempt to fully implement CharString
...
(cherry picked from commit 4df112cd95
)
2023-08-10 09:06:09 -05:00