Commit Graph

1315 Commits (c35e7545b75b53aafd5590fdfbbf2e70d06124be)

Author SHA1 Message Date
Thaddeus Crews c35e7545b7 Integrate `.pre-commit-config.yaml`
(cherry picked from commit e0d363aad8)
2024-07-17 09:17:36 -05:00
Thaddeus Crews 1a22e43075 Fix `#include` formatting
(cherry picked from commit 999018e7d1)
2024-07-17 09:14:04 -05:00
Thaddeus Crews 121ae8d116 Add `.editorconfig`, consolidate `.gitattributes`
(cherry picked from commit 7a96d0314e)
2024-07-17 09:13:49 -05:00
Fabio Alessandrelli 3bea67ce6c [CI] Update macOS workers to macos-latest
GitHub actions no longer allow `macos-11` runners

(cherry picked from commit 2dd8917508)
2024-07-17 09:13:32 -05:00
A Thousand Ships 19f56af1be Fix some style details in generation
(cherry picked from commit e7a13e3bf4)
2024-07-17 09:12:21 -05:00
A Thousand Ships 7f3e914c6d Enforce `p_` prefixes for arguments in binds
(cherry picked from commit 9e2771f918)
2024-07-17 09:11:54 -05:00
Fabio Alessandrelli 528b7801d2 Add support for build profiles.
Allow enabling or disabling specific classes (which will not be built).

(cherry picked from commit 1186c488bd)
2024-07-17 09:06:07 -05:00
David Snopek 9da6ecd144
Merge pull request #1492 from dsnopek/4.2-cherrypicks-5
Cherry-picks for the godot-cpp 4.2 branch - 5th batch
2024-06-14 13:32:50 -05:00
A Thousand Ships c5204a2e84 Add default argument processing for `NodePath`
(cherry picked from commit 37e7a6da05)
2024-06-14 12:44:10 -05:00
A Thousand Ships a6e5caacf8 Fix generating default values for `StringName`
Cases other than `&""` were not processed correctly

(cherry picked from commit 6cd6c8923a)
2024-06-14 12:44:10 -05:00
David Snopek 246fd4718c Fix vararg methods forwarded to the `ClassDB` singleton
(cherry picked from commit e04a26b2bc)
2024-06-14 12:44:10 -05:00
Richard Hozák b81b0599f9 Fix warnings emitted with -Wall
(cherry picked from commit 8c6cc1ec15)
2024-06-14 12:44:10 -05:00
David Snopek 07b6a03d77 Explicitly refer to `godot` namespace in `GDREGISTER_*_CLASS()` macros
(cherry picked from commit 246a803954)
2024-06-14 12:44:10 -05:00
David Snopek 7e72c8bf0a
Merge pull request #1494 from dsnopek/4.2-ci-godot-test-version
[4.2] Allow selecting Godot version to run the tests with
2024-06-14 12:43:54 -05:00
David Snopek f88b6a2f00 [4.2] Allow selecting Godot version to run the tests with 2024-06-14 11:24:24 -05:00
David Snopek 2b6eb6832e
Merge pull request #1465 from dsnopek/4.2-cherrypicks-4
Cherry-picks for the godot-cpp 4.2 branch - 4th batch
2024-05-28 08:35:12 -05:00
David Snopek a246aaaaf6 Fix NOTIFICATION_POSTINITIALIZE sent twice to native parent class
(cherry picked from commit 06373ce1cf)
2024-05-17 16:41:42 -05:00
Daylily-Zeleen e8e424ade8 mark return value of `get_class_static` and `get_parent_class_static` as const
(cherry picked from commit 3db8549e19)
2024-05-17 16:40:30 -05:00
David Snopek 18354f9b9b Clean up instance bindings for engine singletons to prevent crash
(cherry picked from commit 88df025aa0)
2024-05-17 16:40:13 -05:00
David Snopek acee69a3f6 Allow forwarding from `ClassDB` to `ClassDBSingleton` to support enumerations
(cherry picked from commit e1b3b32db5)
2024-05-17 16:35:22 -05:00
David Snopek ddfcca62a8 Correctly handle `Object *` arguments that were encoded as `nullptr`
(cherry picked from commit 37542dc2ec)
2024-05-17 16:34:41 -05:00
David Snopek 8aef77a64d Give compile-time error if registering a class without its own `_bind_methods()` function
(cherry picked from commit ca46ef4d25)
2024-05-17 16:33:38 -05:00
pupil1337 897280444b Add static_assert() for register_class
(cherry picked from commit 1fa7a9cb19)
2024-05-17 16:32:54 -05:00
A Thousand Ships 3d814f6e87 [Math] Add `is_finite` methods
(cherry picked from commit d389171905)
2024-05-17 16:32:05 -05:00
Chris Cranford 8f8ea90088 Implement to/from dict helpers for PropertyInfo/MethodInfo
(cherry picked from commit 2a041b5240)
2024-05-17 16:30:54 -05:00
David Snopek b28098e76b
Merge pull request #1460 from dsnopek/misc-backports
[4.2] Backport miscellaneous changes that can't be cherry-picked
2024-05-09 07:35:56 -05:00
David Snopek 9afbdb9cf6 Backport miscellaneous changes that can't be cherry-picked 2024-05-08 16:49:18 -05:00
David Snopek 98c143a483 gdextension: Sync with upstream commit 15073afe3856abd2aa1622492fe50026c7d63dc1 (4.2.2-stable) 2024-04-17 13:06:07 -05:00
David Snopek 28d43fb99a
Merge pull request #1442 from dsnopek/4.2-cherrypicks-3
Cherry-picks for the godot-cpp 4.2 branch - 3rd batch
2024-04-17 12:58:21 -05:00
Chris Cranford 77f1d228cd Fix PropertyInfo to use hint/usage default constants
(cherry picked from commit e160966163)
2024-04-17 11:09:24 -05:00
thimenesup ab5b9f2ceb Fix Projection create_orthogonal being incorrect
Title

(cherry picked from commit e4ae69f607)
2024-04-17 11:09:00 -05:00
Thaddeus Crews ef4d771444 Implement `verbose` toggle from godot repo
(cherry picked from commit b05c21bb1d)
2024-04-17 11:08:41 -05:00
dependabot[bot] 66ced64c1e Bump mymindstorm/setup-emsdk from 13 to 14
Bumps [mymindstorm/setup-emsdk](https://github.com/mymindstorm/setup-emsdk) from 13 to 14.
- [Release notes](https://github.com/mymindstorm/setup-emsdk/releases)
- [Commits](https://github.com/mymindstorm/setup-emsdk/compare/v13...v14)

---
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 32ca574f49)
2024-04-17 11:08:29 -05:00
Thaddeus Crews fc5366c026 Use `GDREGISTER` defines in example
(cherry picked from commit a537b4af4d)
2024-04-17 11:08:14 -05:00
David Snopek 7e5fa8e7a9
Merge pull request #1410 from dsnopek/4.2-cherrypicks-2
Cherry-picks for the godot-cpp 4.2 branch - 2nd batch
2024-04-08 13:09:13 -05:00
A Thousand Ships f8477fb9f2 Fix incorrect utility call signature
(cherry picked from commit d055b575fb)
2024-04-08 11:50:07 -05:00
ytnuf ef723ca9ec Change cmake_minimum_required to match actual requirements
This is because target_link_options was added in v3.13
So this wouldn't build with cmake v3.12

Likewise in CMAKE_CXX_STANDARD only supports value of 17 starting with
cmake v3.9
So the test wouldn't build properly with cmake v3.6

(cherry picked from commit 5c12bd2287)
2024-04-08 11:49:53 -05:00
Thaddeus Crews 7473b984cb Enforce template syntax `typename` over `class`
(cherry picked from commit 87f5fb0691)
2024-04-08 11:49:37 -05:00
David Snopek 98ad839827 Avoid creating most objects that Godot is going to use placement new to initialize
(cherry picked from commit c4fde852e6)
2024-04-08 11:45:25 -05:00
bruvzg a07b1f6e07 [Packed*Array] Add support for initializer lists.
(cherry picked from commit 8c98a90f32)
2024-04-08 11:44:28 -05:00
A Thousand Ships f002ca18c7 Fix invalid `void` return in `BitField`
(cherry picked from commit 7ed8ef7221)
2024-03-11 12:51:07 -05:00
Marc Gilleron 3fe7c2e87b Fix explicit namespaces in macros
(cherry picked from commit e607790647)
2024-03-11 12:50:56 -05:00
David Snopek 7ddd278dea Fix _notification with parent and child classes
(cherry picked from commit 23c010900c)
2024-03-11 12:50:43 -05:00
bruvzg cae4bf58ac [Core] Improve `CowData` and `Memory` metadata alignment.
(cherry picked from commit b173a4d935)
2024-03-11 12:47:09 -05:00
Fabio Alessandrelli 1517a24f72 [SCons] Split `targets.py`, apply flags from tools
Split `targets` tool logic, moving all the compiler-specific flags to a
new `common_compiler_flags.py` file, and everything else (CPPDEFINES,
optimize option logic, dev build logic, etc) to the `godotcpp` tool.

The default tools now apply the common compiler flags by importing the
file and explicitly calling `configure`.

(cherry picked from commit 16df4bff30)
2024-03-11 12:46:58 -05:00
Fabio Alessandrelli 1b8cfaab71 [SCons] Add support for custom build tools and platforms
Use with:

`scons platform=os2 custom_tools=/path/to/tools`

(assuming you have an `os2.py` inside `/path/to/tools/`)

(cherry picked from commit baaad7ada2)
2024-03-11 12:46:48 -05:00
DaylilyZeleen dc19986497 Fix object return value of builtin types' methods.
(cherry picked from commit 6a3753c076)
2024-03-11 12:46:39 -05:00
bruvzg c2d4ccd592 Switch to 64-bit ints.
(cherry picked from commit 59a5a8b104)
2024-03-11 12:46:27 -05:00
David Snopek 51c752c46b
Merge pull request #1372 from dsnopek/4.2-cherrypicks-1
Cherry-picks for the godot-cpp 4.2 branch - 1st batch
2024-02-16 09:03:54 -06:00
MJacred 45dc04f2cf Update README: fix godot-cpp issue tracker url
(cherry picked from commit 8a535d0ecc)
2024-01-24 08:43:31 -06:00