1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

SCons: Add an option to enable the experimental ninja build backend

With this option turned on, if properly set up, SCons generates a
`build.ninja` file and quits. To actually build the engine, the user can
then call `ninja` with whatever options they might prefer (not
everything is yet transferred properly to this new generated file).

Ideally, the scons file should never be called again, as ninja
automatically detects any SCons build script change and invokes
the required commands to regenerate itself.

This approach speeds up incremental builds considerably, as it limits
SCons to code generation and uses ninja's extremely fast timestamp-based
file change detector.
This commit is contained in:
Riteo
2024-03-12 22:51:19 +01:00
parent a5cf92664d
commit 55558fb175
3 changed files with 24 additions and 4 deletions

View File

@@ -66,7 +66,6 @@ def generate_export_icons(platform_path, platform_name):
svg_str += '";\n'
# NOTE: It is safe to generate this file here, since this is still executed serially.
wf = export_path + "/" + name + "_svg.gen.h"
methods.write_file_if_needed(wf, svg_str)