Commit Graph

1070 Commits (155f2e2a62b2e6526aeab927a217d9dbc06f21b5)

Author SHA1 Message Date
Fabio Alessandrelli 8d6982be3b [SCons] Platform agnostic default toolchain (GNU).
Create the SCons Environment with an empty PLATFORM variable to force
the default tools to use the GNU toolchain.

Platform specific toolchains are then setup in our custom tools.
2022-12-20 17:41:34 +01:00
Rémi Verschelde 104997e83e
Merge pull request #961 from mihe/char-string-length
Fix incorrect length passed to `CharString`
2022-12-20 10:44:08 +01:00
Fabio Alessandrelli c0eaadac86
Merge pull request #903 from PapyChacal/build_library
Make build_library=no usable at godot-cpp's root
2022-12-19 23:03:17 +01:00
Emilien Bauer e52d4b6486 Remove gen from emitted files to solve circular dependency with build_library=no.
Use env variable to pass the output dir instead.
Add a CI step to guard regression on this. Clean the generated sources to avoid interfering with next steps.
2022-12-19 21:20:15 +00:00
Rémi Verschelde 0233683173
gdextension: Sync with upstream commit e780dc332a0a3f642a6daf8548cb211d79a2cc45 (4.0-beta9) 2022-12-19 16:10:14 +01:00
Rackoon 72d537fd95 Fix GDCLASS needs explicit ClassDB fwd declaration 2022-12-16 13:49:10 +01:00
Rémi Verschelde 91a4a03356
Merge pull request #962 from Bromeon/gdextension-const-correctness
Extension header: amend const correctness of `p_args` parameters
2022-12-14 17:13:40 +01:00
Jan Haller fce753c05d Extension header: amend const correctness of `p_args` parameters 2022-12-14 15:47:42 +01:00
Mikael Hermansson 1f6b0118dc Fix incorrect length passed to `CharString` 2022-12-14 15:08:45 +01:00
Rémi Verschelde a0b0560e20
Merge pull request #960 from akien-mga/godot-headers-is-dead-long-live-godot-headers
Rename godot-headers to gdextension, move header to top folder
2022-12-14 14:09:52 +01:00
Rémi Verschelde bab247dcb6
Rename godot-headers to gdextension, move header to top folder
Changes the `<godot/gdextension_interface.h>` include to simply
`<gdextension_interface.h>`.

Refactor and better document the SCons and CMake logic around setting
the paths to the header and API JSON file.
2022-12-14 12:36:59 +01:00
Rémi Verschelde 1e8eb1c1f2
Merge pull request #958 from BastiaanOlij/improve_gdextension_virtual_ref
Fix virtual GDExtension method Ref<T> conversion
2022-12-14 12:36:12 +01:00
Rémi Verschelde 0d926a76a7
Merge pull request #959 from DmitriySalnikov/bitfield_int64
Use `int64_t` for `BitField` as in Godot itself
2022-12-13 12:13:46 +01:00
Rémi Verschelde 49a478a879
Merge pull request #949 from BastiaanOlij/fix_tests_refcounting
Change example code to properly test refcounted objects
2022-12-13 12:13:39 +01:00
Дмитрий Сальников b7eeddcf52 Use int64_t for BitField as in Godot itself 2022-12-13 13:36:16 +03:00
Bastiaan Olij 992d85e6f8 Fix virtual GDExtension method Ref<T> conversion 2022-12-13 10:41:55 +11:00
Rémi Verschelde c21705982e
Merge pull request #952 from groud/rename_gdnative_to_gdextension
Rename GDNative to GDExtension
2022-12-12 18:58:39 +01:00
Gilles Roudière c02e644679 Rename GDNative to GDExtension
Non-exhaustive list of case-sensitive renames:

GDExtension -> GDNative
GDNATIVE -> GDEXTENSION
gdextension -> gdnative
ExtensionExtension -> Extension (for where there was GDNativeExtension)
EXTENSION_EXTENSION -> EXTENSION (for where there was GDNATIVE_EXTENSION)
gdnlib -> gdextension
gdn_interface -> gde_interface
gdni -> gde_interface
2022-12-12 11:06:38 +01:00
Rémi Verschelde c20ecea090
headers: Sync with upstream commit 45cac42c0 (4.0-beta8) 2022-12-09 18:00:49 +01:00
Rémi Verschelde f74c472203
Merge pull request #948 from touilleMan/issue-946
Fix cast on PtrToArg::convert
2022-12-06 10:21:44 +01:00
Rémi Verschelde 9fb5b764af
Add CODEOWNERS so GDExtension team gets assigned for reviews 2022-12-06 10:17:13 +01:00
Bastiaan Olij f24ee56c5d Change example code to properly represent test cases with refcounted objects 2022-12-05 22:28:28 +11:00
Emmanuel Leblond fe79449969
Fix cast on PtrToArg::convert 2022-12-05 03:30:50 +01:00
Rémi Verschelde f9f9a1bab4
Merge pull request #947 from asmaloney/cmake-cleanup
{cmake} Updates for target-based approach
2022-12-04 23:58:15 +01:00
Andy Maloney bb13b957de {cmake} Updates for target-based approach
- instead of setting globals which can effect other projects including this as a subdirectory, set them on the target if possible
- add "CONFIGURE_DEPENDS" to GLOBs to check for changes
- update required CMake version to 3.12 (still ancient - 2018) to support these
2022-12-04 17:37:38 -05:00
Emmanuel Leblond 32859ea25c
Merge pull request #897 from touilleMan/gdextension-fix-gdnative-types-const-qualifier
Fix const qualifier for parameters in GDExtension api functions
2022-12-03 11:13:23 +01:00
Emmanuel Leblond fe86a94dcf
Fix const qualifier for parameters in GDExtension api functions 2022-12-03 00:27:07 +01:00
Rémi Verschelde f1d501f977
headers: Sync with upstream commit 0ff874291 (4.0-beta7) 2022-12-01 18:17:11 +01:00
Rémi Verschelde 4c5cfe3876
Merge pull request #940 from touilleMan/fix-get_property_list-stringname-lifetime
Fix lifetime of StringName objects returned by Wrapped::_get_property_list
2022-11-29 22:37:57 +01:00
Emmanuel Leblond fa405a8337
Fix lifetime of StringName objects returned by Wrapped::_get_property_list 2022-11-29 18:23:56 +01:00
Rémi Verschelde 576bd17285
headers: Sync with upstream commit 7f8ecffa5 (4.0-beta6) 2022-11-23 15:43:17 +01:00
Rémi Verschelde 12c022ee37
Merge pull request #927 from asmaloney/type-warnings
Fix some type warnings in example
2022-11-23 15:42:47 +01:00
Rémi Verschelde 4a4e2b0239
Merge pull request #930 from rune-scape/rune-missing-string-ops
Add missing String operators
2022-11-22 10:25:02 +01:00
Rémi Verschelde 6bebaa36bf
Merge pull request #932 from Faless/build/4.x_msvc_runtime
[SCons] Link MSVC debug runtime for optimize=none|debug only.
2022-11-21 11:38:55 +01:00
Rémi Verschelde 17170fe23c
Merge pull request #929 from asmaloney/static-analysis-fixes
Basic static analysis fixes
2022-11-21 11:38:37 +01:00
Fabio Alessandrelli edf02f8319 [SCons] Link MSVC debug runtime for optimize=none|debug only.
Select windows runtime in "targets" tool, use "/MDd" flag only when
building with optimize="none" and optimize="debug".
2022-11-21 11:04:10 +01:00
rune-scape d04ce481c4 Add missing String operators 2022-11-20 03:44:54 -05:00
Andy Maloney c7e34c2f9d Basic static analysis fixes
- remove extraneous semicolons
- use "nullptr" instead of "0"
- remove "break" after "return"
- use <cstdio> instead of <stdio.h>
2022-11-18 17:46:13 -05:00
Andy Maloney fbf7f7bc36 Fix some type warnings in example 2022-11-16 16:43:44 -05:00
Rémi Verschelde 6c2f9196d7
headers: Resync with actual 4.0-beta5 release build 2022-11-16 12:36:01 +01:00
Rémi Verschelde 00db31c4f0
headers: Sync with upstream commit 89a33d28f (4.0-beta5) 2022-11-16 10:36:25 +01:00
Rémi Verschelde d9c72c6773
Fixup after 243ec87918 2022-11-16 10:33:39 +01:00
Rémi Verschelde 243ec87918
Sync gdnative_interface.h with upstream refactoring
Syncs with https://github.com/godotengine/godot/pull/68701.
Breaks compat slightly by reordering member variables.
2022-11-16 09:55:03 +01:00
Rémi Verschelde dc38c72432
Merge pull request #924 from aaronfranke/color-names 2022-11-14 09:16:54 +01:00
Aaron Franke 1858e349c8
Update named colors to be in sync with the engine 2022-11-12 00:31:06 -06:00
Rémi Verschelde bb5579d075
Merge pull request #920 from touilleMan/fix-using-godot-required
fix https://github.com/godotengine/godot-cpp/issues/918
2022-11-11 22:59:31 +01:00
Emmanuel Leblond 2745d341aa
Fix broken namespace isolation in GDCLASS macro 2022-11-11 16:45:42 +01:00
Rémi Verschelde 10467e3062
Merge pull request #913 from bruvzg/mac_android 2022-11-11 13:14:05 +01:00
bruvzg 6e7a24d390
Fix Android build on macOS. 2022-11-10 15:20:15 +02:00
Emmanuel Leblond ce3c08359a
Merge pull request #896 from touilleMan/stringname-in-gdextension-api
Uses `StringName` in GDExtension perf critical instance creation & method/properties setter/getter
2022-11-08 23:00:42 +01:00