godot/platform
Rémi Verschelde 513bfe496c SCons: Add 'split_libmodules' option to workaround linker issue
The new 'split_libmodules=yes' option is useful to work around linker
command line size limitations when linking a huge number of objects.
We're currently over 64k chars when linking libmodules.a on Windows
with MinGW, which triggers issues as seen in #30892.

Even on Linux, we can also reach linker command line size limitations
by adding more custom modules.

We force this option to True for MinGW on Windows, which fixes #30892.

Additional changes to lib splitting:

- Fix linking of the split module libs with interdependent symbols,
  hacking our way into LINKCOM and SHLINKCOM to set the `--start-group`
  and `--end-group` flags.
- Fix Python 3 compatibility in `methods.split_lib()`.
- Drop seemingly obsolete condition for 'msys' on 'posix'.
- Drop the unnecessary 'split_drivers' as the drivers lib is no longer
  too big since we moved all thirdparty builds to modules.

Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
(cherry picked from commit c320a82213)
2020-01-06 12:52:07 +01:00
..
android Android: Bump gradle version to 5.1.1 2019-11-12 13:09:36 +01:00
haiku Add Input::get_current_cursor_shape 2019-11-12 11:10:53 +01:00
iphone iOS>=11 platform - when handling gestures on screen edges, godot apps should have priority over OS 2019-11-12 13:09:36 +01:00
javascript Fixed running the export templates with newer emscripten versions. 2019-12-03 15:02:03 +01:00
osx [macOS] Fix locale detection. 2019-11-29 16:05:07 +01:00
server Add Input::get_current_cursor_shape 2019-11-12 11:10:53 +01:00
uwp Fix memory leak after closing files 2019-11-12 13:09:35 +01:00
windows SCons: Add 'split_libmodules' option to workaround linker issue 2020-01-06 12:52:07 +01:00
x11 [X11] Add window borderless state detection, fix borderless state restoration after exiting fullscreen. 2019-11-12 13:09:35 +01:00
SCsub Always use lists for `LIBS` in SCons 2019-11-12 13:09:36 +01:00
register_platform_apis.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00