summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1451 from Faless/build/to_threads_or_not_to_threadsDavid Snopek2024-05-162-2/+10
|\ | | | | [SCons] Add option to build without threads
| * [SCons] Add option to build without threadsFabio Alessandrelli2024-04-302-2/+10
| | | | | | | | | | This is relevant for the Web platform, where builds with and without threads are incompatible.
* | Allow submitting documentation to the Godot editorDavid Snopek2024-05-071-1/+47
|/
* Implement `verbose` toggle from godot repoThaddeus Crews2024-04-091-1/+72
|
* [SCons] Split `targets.py`, apply flags from toolsFabio Alessandrelli2024-02-169-180/+180
| | | | | | | | | 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`.
* [SCons] Add support for custom build tools and platformsFabio Alessandrelli2024-02-141-6/+38
| | | | | | | | Use with: `scons platform=os2 custom_tools=/path/to/tools` (assuming you have an `os2.py` inside `/path/to/tools/`)
* Merge pull request #1344 from ArchLinus/ndk-errorDavid Snopek2024-01-041-0/+6
|\ | | | | Add an error message if android NDK is not installed
| * Add an error message if android NDK is not installedArchLinus2023-12-301-0/+6
| |
* | Allow detecting when building as a GDExtensionAaron Franke2023-12-181-0/+3
|/
* Merge pull request #1313 from DmitriySalnikov/visibility_hiddenDavid Snopek2023-11-241-0/+17
|\ | | | | [Scons] Added the ability to change the visibility of symbols
| * [Scons] Added the ability to change the visibility of symbolsDmitriySalnikov2023-11-211-0/+17
| |
* | [Scons] Set the minimum Android API level to 21DmitriySalnikov2023-11-231-5/+3
|/
* [iOS] Bump default version to 12 to match engine.bruvzg2023-11-211-1/+1
|
* fix is_msvc and use_hot_reload variablesThaddeus Crews2023-11-061-10/+12
|
* Update the environment variables used to access the Android NDK toolchainFredia Huya-Kouadio2023-11-011-7/+19
|
* SCons: Disable C++ exception handling by defaultRémi Verschelde2023-10-222-1/+17
| | | | Counterpart to https://github.com/godotengine/godot/pull/80612.
* Refactor compiledb implementationAdam Scott2023-10-191-4/+9
| | | | | | | | | 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.
* Let gdextension_dir function as only argumentThaddeus Crews2023-10-181-1/+1
|
* [SCons] Rename javascript tool to webFabio Alessandrelli2023-10-152-18/+18
| | | | And clean it up a bit.
* Merge pull request #1247 from nicholas-maltbie/nickmaltbie/javascript-wasm-fixDavid Snopek2023-10-041-9/+6
|\ | | | | Javascript Web WASM Fix
| * Added fix for javascript build for godot 4.xNick Maltbie2023-10-011-9/+6
| | | | | | | | | | | | 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.
* | Changes necessary for hot reload to workDavid Snopek2023-09-252-0/+14
|/
* [SCons] Fixed crashes in several scriptsDmitriySalnikov2023-09-094-6/+7
|
* [SCons] Move the GodotCPP build to its own tool.Fabio Alessandrelli2023-08-291-0/+309
|
* SCons: Sync `targets.py` fully with upstream GodotRémi Verschelde2023-08-101-9/+61
| | | | | | | - 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.
* Statically link mingw/msvc runtime libraries on WindowsFeiyun Wang2023-08-092-16/+34
| | | | Co-authored-by: David Snopek <dsnopek@gmail.com>
* Merge pull request #1191 from Faless/build/unify_osxcrossDavid Snopek2023-07-314-65/+54
|\ | | | | [SCons] Merge OSXCross tools into platform ones
| * [SCons] Merge OSXCross tools into platofrm onesFabio Alessandrelli2023-07-234-65/+54
| |
* | Add platform macrosAdam Scott2023-07-236-0/+12
|/
* [MSVC] Force UTF-8 encoding.bruvzg2023-07-111-1/+1
|
* [SCons] Platform agnostic default toolchain (GNU).Fabio Alessandrelli2022-12-201-0/+5
| | | | | | | 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.
* [SCons] Link MSVC debug runtime for optimize=none|debug only.Fabio Alessandrelli2022-11-212-7/+7
| | | | | Select windows runtime in "targets" tool, use "/MDd" flag only when building with optimize="none" and optimize="debug".
* Fix Android build on macOS.bruvzg2022-11-101-0/+1
|
* [SCons] Remove bogus CCFLAGS from windows toolchain.Fabio Alessandrelli2022-11-021-2/+0
| | | | The c++ standard is added as part of the main SConstruct
* [SCons] Refactor targets, symbols, optimizations.Fabio Alessandrelli2022-10-041-19/+50
| | | | | | | | | Now matches Godot `master` target names and supports the same flags with the following notable exceptions: - The default target is "template_debug", since it's compatible with editor builds (and TOOLS_ENABLED is never used internally). - separate_debug_symbols is still not supported, and will be done in a separate commit.
* [SCons] Add "optimize" and "debug_symbols" optionsFabio Alessandrelli2022-09-126-26/+64
| | | | | | | | | optimize = auto|none|debug|speed|size|0|1|2|3 debug_symbol = True|False optimize == "auto" will produce: - "debug" for "debug" builds - "speed" for "release" builds
* [MSVC] Add NOMINMAX flag to scons and cmake.Fabio Alessandrelli2022-09-121-1/+1
| | | | | Ensures user inclusion of windows.h do not define "min" and "max" macros.
* Add debug information to Windows buildsKevin Smith2022-07-281-0/+1
| | | | | | | | | | | | | | | Previously, Windows builds were being produced without debug information, leading to somewhat unhelpful backtraces etc. without symbols. This builds the symbols in (only for debug builds - I've deliberately not touched release builds here) so gdextension bugs are a little more tractable. Test-Information: Have been running this patch for weeks, and getting useful traces out on the commandline, and useful debugging from debuggers.
* [CI] Fix Android builds after GH container update.Fabio Alessandrelli2022-07-281-6/+2
|
* Rename OSX to macOS.bruvzg2022-07-204-16/+16
|
* Add clang-cl supportKevin Smith2022-07-121-0/+4
| | | | | | | | | | | | | | | | | 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.
* [SCons] Fix msvc, linux-clang, add version check.Fabio Alessandrelli2022-07-042-9/+9
|
* [SCons] Add iOS OSXCross support, min version override.Fabio Alessandrelli2022-06-272-18/+56
|
* [SCons] Add OSXCross tool.Fabio Alessandrelli2022-06-272-1/+34
|
* [SCons] Move toolchains logic to tools folder.Fabio Alessandrelli2022-06-277-0/+437