2 Commits
Author SHA1 Message Date
adminandClaude Opus 5.5 b24848ca5c Submodules: point at the Gitea repositories
The GitHub repositories are gone with the suspended account (or are
mirrored on Gitea). Relative URLs (../<repo>.git) resolve against wherever
this repository is cloned from.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:45:27 +01:00
Roman ChojnackiandClaude Opus 5.5 25aa00a192 MSVC: /Gw, so the linker drops unused data as it drops unused functions
The data counterpart of /Gy, which Release already sets, and of the
-fdata-sections GCC and Clang get. mojibake's unused tables go: the showcase
is about 100 KB smaller.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 10:38:36 +02:00
2 changed files with 18 additions and 15 deletions
+13 -13
View File
@@ -1,39 +1,39 @@
[submodule "external/nuklear"]
path = external/nuklear
url = https://github.com/Immediate-Mode-UI/Nuklear.git
url = ../Nuklear.git
[submodule "external/plutosvg"]
path = external/plutosvg
url = https://github.com/sammycage/plutosvg.git
url = ../plutosvg.git
[submodule "external/ionicons"]
path = external/ionicons
url = https://github.com/ionic-team/ionicons.git
url = ../ionicons.git
[submodule "external/SDL"]
path = external/SDL
url = https://github.com/libsdl-org/SDL.git
url = ../SDL.git
[submodule "external/lcui"]
path = external/lcui
url = https://github.com/lc-soft/LCUI.git
url = ../LCUI.git
[submodule "external/onlay"]
path = external/onlay
url = https://github.com/Alpaq92/Onlay.git
url = ../Onlay.git
[submodule "external/mojibake"]
path = external/mojibake
url = https://github.com/zaerl/mojibake.git
url = ../mojibake.git
[submodule "external/kb"]
path = external/kb
url = https://github.com/JimmyLefevre/kb.git
url = ../kb.git
[submodule "external/nukanim"]
path = external/nukanim
url = https://github.com/Alpaq92/NukAnim.git
url = ../NukAnim.git
[submodule "external/mglibs"]
path = external/mglibs
url = https://github.com/mattiasgustavsson/libs.git
url = ../libs.git
[submodule "external/watercss"]
path = external/watercss
url = https://github.com/kognise/water.css
url = ../water.css.git
[submodule "external/simplecss"]
path = external/simplecss
url = https://github.com/kevquirk/simple.css
url = ../simple.css.git
[submodule "external/freetype"]
path = external/freetype
url = https://github.com/freetype/freetype
url = ../freetype.git
+5 -2
View File
@@ -56,8 +56,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
set(SDL_DEPS_SHARED OFF CACHE BOOL "" FORCE)
endif()
# A static program keeps only the functions it calls; MSVC's Release does this already.
if(NOT MSVC AND NOT EMSCRIPTEN)
# A static program keeps only the functions and data it uses. MSVC's Release
# already splits functions; /Gw splits data.
if(MSVC)
add_compile_options(/Gw)
elseif(NOT EMSCRIPTEN)
add_compile_options(-ffunction-sections -fdata-sections)
endif()
add_subdirectory("${TP}/SDL" EXCLUDE_FROM_ALL)