Commit Graph

1288 Commits (98c143a48365f3f3bf5f99d6289a2cb25e6472d1)

Author SHA1 Message Date
bruvzg 0ee980abae
Rename OSX to macOS. 2022-07-20 11:01:47 +03:00
Rémi Verschelde 8772a7faca
Merge pull request #686 from ondy-personal/patch-1 2022-07-18 15:48:17 +02:00
Rémi Verschelde 4bd0dab16b
Merge pull request #687 from jtcooper10/cmake-default-build-type-fix 2022-07-18 13:59:29 +02:00
Joshua Cooper 165ad14b0f CMake: fix CMAKE_BUILD_TYPE and BITS check 2022-07-18 13:01:04 +02:00
Rémi Verschelde 9b4519280a CMake: Fixup build after #732 2022-07-18 12:58:50 +02:00
Rémi Verschelde 3c73d1a7a2
CMake: Don't use `-fPIC` on Windows (#732) 2022-07-18 11:55:30 +02:00
Rémi Verschelde c7a30aec03 CI: Use setup-python@v4 2022-07-18 11:42:01 +02:00
Rémi Verschelde c2b35fb226 Makefile: Dehardcode -j4, SCons defaults to max - 1
Follow-up to #788.
2022-07-18 11:40:52 +02:00
Rémi Verschelde 3ceb321b8e
Merge pull request #788 from akien-mga/scons-num_jobs-default-max 2022-07-17 15:43:50 +02:00
Rémi Verschelde cdcd473371 SCons: Default `num_jobs` to max CPUs minus 1 if not specified
This doesn't change the behavior when `--jobs`/`-j` is specified as a
command-line argument or in `SCONSFLAGS`.

The SCons hack used to know if `num_jobs` was set by the user is derived
from the MongoDB setup.

We use `os.cpu_count()` for portability (available since Python 3.4).

With 4 CPUs or less, we use the max. With more than 4 we use max - 1 to
preserve some bandwidth for the user's other programs.
2022-07-17 12:37:13 +02:00
Rémi Verschelde 17c1d1fd50 headers: Sync with upstream commit 9904a9db5 2022-07-15 09:57:17 +02:00
Rémi Verschelde c0fead40e9
Merge pull request #774 from Naryosha/patch-1 2022-07-14 23:59:53 +02:00
Rémi Verschelde cc1a2e1986 headers: Sync with upstream commit 2c11e6d9e (4.0-alpha12) 2022-07-14 23:51:09 +02:00
Rémi Verschelde 9fc3fd7196
Merge pull request #783 from bruvzg/bitfields 2022-07-14 23:49:27 +02:00
Fabio Alessandrelli cdc8f74939
Merge pull request #782 from Kev/build/support-clang-cl
Add clang-cl support
2022-07-12 21:58:24 +02:00
Kevin Smith b038fe556b Add clang-cl support
Visual C++ has a clang-based driver, available through the
clang-cl wrapper (which provides the same interface as
cl) - this generates objects binary-compatible with the
default (traditional) driver, and can then be linked in
the normal way. As such, this patch simply configures for
MSVCC and then overwrites the cl compiler with clang-cl
in the environment.

Clang gives (subjectively) much more understandable compiler warnings
and errors than MSVCC, which was my motivation for switching.

Test-Information:
Builds for me with VS2022, and my gdextension library
builds and links.
2022-07-12 18:13:25 +01:00
bruvzg 713b122b84
Add support for BitField hint, sync API files. 2022-07-11 15:00:17 +03:00
Rémi Verschelde bffedfed1e Fix typo in static method binding generator
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-07-08 15:30:23 +02:00
Rémi Verschelde 666a378336
Merge pull request #781 from Faless/build/4.x_msvc_clang_scons_ver 2022-07-05 18:06:24 +02:00
Fabio Alessandrelli 7901986dcf [SCons] Fix msvc, linux-clang, add version check. 2022-07-04 18:00:29 +02:00
Fabio Alessandrelli 794dea0dd7
Merge pull request #778 from alessandrofama/4.x_fix_static_no_return
Fix crash when using static methods without return value due to uninitialized GDNativePropertyInfo struct members
2022-07-03 21:11:35 +02:00
Alessandro Famà d894f48f25 Fix crash when using static methods without return value 2022-07-03 17:00:43 +02:00
Rémi Verschelde d8a65edc4a headers: Sync with upstream commit afdae67cc (4.0-alpha11) 2022-07-01 10:16:08 +02:00
Rémi Verschelde 89786cf032
Merge pull request #762 from Faless/build/4.x_scons_tools
[SCons] Move toolchains logic to tools folder, various improvements.
2022-06-27 21:50:29 +02:00
Fabio Alessandrelli 7850785ccb [SCons] Add iOS OSXCross support, min version override. 2022-06-27 20:44:12 +02:00
Fabio Alessandrelli 8dbfe03d17 [SCons] Add OSXCross tool. 2022-06-27 20:44:12 +02:00
Fabio Alessandrelli 93f2091185 [SCons] Move toolchains logic to tools folder. 2022-06-27 20:44:12 +02:00
Fabio Alessandrelli a0fcd8a735 Add windows x86_32 library to example gdextension. 2022-06-27 20:44:12 +02:00
Rémi Verschelde 7adc5360d7
Merge pull request #771 from Faless/fix/4.x_mingw_export 2022-06-27 14:10:30 +02:00
Naryosha 832e04b93b
Update register initializer/terminator in README
Referencing https://github.com/godotengine/godot-cpp/pull/750
2022-06-26 16:25:42 +07:00
Fabio Alessandrelli 5bbcd42378 Fix GDN_EXPORT define with mingw.
This commit changes the platform detection order to detect mingw
compiling for windows (which defines `__GNUC__`).

This commit also wraps the definition around a guard so it can be
overridden via a define at build-time.
2022-06-18 14:38:18 +02:00
Fabio Alessandrelli 40f5bfda22
Merge pull request #767 from Faless/headers/sync_alpha10
headers: Sync to Godot 4.0 alpha10.
2022-06-15 17:18:09 +02:00
Fabio Alessandrelli 4d99c82327 headers: Sync to Godot 4.0 alpha10. 2022-06-15 15:59:21 +02:00
Fabio Alessandrelli 4bebac4372
Merge pull request #766 from Faless/build/4.x_fix_android_runner
[SCons] Fix Android builds with modern NDKs.
2022-06-15 01:50:43 +02:00
Fabio Alessandrelli b8ae658981 [SCons] Fix Android builds with modern NDKs. 2022-06-15 00:00:36 +02:00
Rémi Verschelde 8dbaf5a7ff
Merge pull request #761 from bruvzg/sync_containers 2022-06-06 13:30:27 +02:00
bruvzg e3119e7d05
Sync containers with new HashMap/HashSet, sync API headers. 2022-06-06 12:18:07 +03:00
Fabio Alessandrelli 851ec2f923
Merge pull request #759 from aaronfranke/scons-cpu-arch
Unify bits, android_arch, macos_arch ios_arch into arch, support non-x86 Linux
2022-06-05 13:31:13 +02:00
Aaron Franke e5c4351bc7
Unify bits, android_arch, macos_arch ios_arch into arch, support non-x86
Unify arguments and add support for ARM64 and RV64 Linux
2022-06-01 13:00:25 -05:00
Rémi Verschelde eaaf941c10
Merge pull request #757 from pooroligarch/master 2022-05-17 08:32:52 +02:00
Teodor Potancok 5c32dc3948 Cast `Variant::Type` to `GDNativeVariantType` 2022-05-17 07:01:43 +02:00
Rémi Verschelde 95a2303e37 headers: Sync with upstream commit 917fd65 (4.0-alpha8) 2022-05-12 12:28:02 +02:00
Rémi Verschelde 6f8e2308d5
Merge pull request #752 from bruvzg/bind_imp 2022-05-06 14:55:39 +02:00
bruvzg 031a83b0ea
[Method Bind] Add support for default argument values and static method binding. Sync headers. 2022-05-06 10:17:51 +03:00
Fabio Alessandrelli 24e4aeb2c6
Merge pull request #746 from NicholasShatokhin/master
Build javascript target on windows host
2022-05-04 15:59:36 +02:00
Rémi Verschelde d00e46966d
Merge pull request #728 from bruvzg/double_pr_build 2022-05-04 15:57:59 +02:00
bruvzg e06d5cd414
Add double precision build support. 2022-05-04 15:56:35 +03:00
Rémi Verschelde f262ae9a6f
Merge pull request #750 from bruvzg/init_levels
Change registered initializers / terminators to the single function with level argument.
2022-05-04 11:00:42 +02:00
bruvzg 8bf5a532de
Change registered initializers / terminators to the single function with level argument. 2022-05-04 11:14:51 +03:00
Rémi Verschelde 20a17eb71d
Merge pull request #748 from Faless/build/4.x_deps 2022-05-03 11:56:30 +02:00