godot/modules
Viktor Ferenczi c5bd0c37ce Running builder (content generator) functions in subprocesses on Windows
- Refactored all builder (make_*) functions into separate Python modules along to the build tree
- Introduced utility function to wrap all invocations on Windows, but does not change it elsewhere
- Introduced stub to use the builders module as a stand alone script and invoke a selected function

There is a problem with file handles related to writing generated content (*.gen.h and *.gen.cpp)
on Windows, which randomly causes a SHARING VIOLATION error to the compiler resulting in flaky
builds. Running all such content generators in a new subprocess instead of directly inside the
build script works around the issue.

Yes, I tried the multiprocessing module. It did not work due to conflict with SCons on cPickle.
Suggested workaround did not fully work either.

Using the run_in_subprocess wrapper on osx and x11 platforms as well for consistency. In case of
running a cross-compilation on Windows they would still be used, but likely it will not happen
in practice. What counts is that the build itself is running on which platform, not the target
platform.

Some generated files are written directly in an SConstruct or SCsub file, before the parallel build starts. They don't need to be written in a subprocess, apparently, so I left them as is.
2018-07-27 21:37:55 +02:00
..
bmp Fix bits_per_pixel validation in BMP and TGA loader modules. 2018-07-08 18:51:20 +01:00
bullet Merge pull request #15643 from organicpencil/bullet_contact_impulse 2018-07-26 15:36:37 +02:00
csg Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
dds SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
enet Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
etc SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
freetype SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
gdnative Running builder (content generator) functions in subprocesses on Windows 2018-07-27 21:37:55 +02:00
gdscript GDScript: Fix parse error in string formatting 2018-07-26 10:52:11 -03:00
gridmap Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
hdr SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
jpg Add webp buffer loader for Image 2018-07-17 12:03:45 +08:00
mbedtls Implement non blocking-handshake for StreamPeerSSL 2018-07-16 13:08:17 +02:00
mobile_vr Reenabled module and fixed missing const 2018-07-27 18:43:50 +10:00
mono Running builder (content generator) functions in subprocesses on Windows 2018-07-27 21:37:55 +02:00
ogg SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
opus SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
pvr Style: Format code with clang-format 6.0.1 2018-07-18 16:27:03 +02:00
recast Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
regex Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
squish SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
stb_vorbis SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
svg Merge pull request #19272 from akien-mga/svg-buildsystem 2018-05-30 22:10:03 +02:00
tga Fix bits_per_pixel validation in BMP and TGA loader modules. 2018-07-08 18:51:20 +01:00
thekla_unwrap SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
theora Fix loading and exporting of Theora and WebM video streams 2018-07-03 20:21:46 +02:00
tinyexr SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
upnp Add UPnP support (port forwarding, querying external IP) 2018-06-07 01:52:04 +02:00
visual_script Fix Visual Script duplicate issue 2018-07-26 14:01:48 +05:30
vorbis Style: Format code with clang-format 6.0.1 2018-07-18 16:27:03 +02:00
webm Fix loading and exporting of Theora and WebM video streams 2018-07-03 20:21:46 +02:00
webp Add webp buffer loader for Image 2018-07-17 12:03:45 +08:00
websocket Removed unnecessary assignments 2018-07-24 09:51:03 +02:00
register_module_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub - Improves portability in joystick buttons enum 2018-01-24 19:12:54 -03:00