677 Commits

Author SHA1 Message Date
dobbry-vechur e2454fec33 Fix clang debug builds with mold and libstdc++ 16
- drop -fuse-ld from CXXFLAGS
- add -Wno-pass-failed for clang in Makefile and CMake
2026-10-26 11:28:46 +04:00
dobbry-vechur b616b9aeb1 Share memory and night vision shader formulas
- moved memory preset formulas into memory_presets.glsl
- moved night vision formulas into nightvision_presets.glsl
- included both from the variant shaders
- tracked *.glsl as shader dependencies in Make and CMake
2026-10-03 20:28:22 +04:00
dobbry-vechur 080986b032 Drop the SDL2 emscripten ports and mark the target unsupported 2026-08-12 06:16:51 +04:00
dobbry-vechur 6de37a3430 Remove SDL2 from the build systems
- deleted the SDL2 branches and the bundled FindSDL2 modules
- made SDL3=0 and USE_SDL3=OFF hard errors
2026-08-12 05:46:34 +04:00
dobbry-vechur c306363d82 Remove SDL2 code paths from the game sources
- collapsed the SDL version conditionals to their SDL3 arms
- deleted the SDL2 sound and ImGui backends
- kept the SDL2-era graphics options registered and hidden
2026-08-12 05:44:00 +04:00
ergolyam 3c9647918c [f] remove the x86 only compiler flag for aarch64 2026-06-15 00:04:07 +03:00
dobbry-vechur b12efd156a Make SDL3 the default tiled build
- add shared SDL3 stack and shader actions
- move tiled CI jobs onto SDL3
- fold SDL3 release artifacts into default names
- keep SDL2 fallback flags for local builds
- update compiling docs for SDL3 defaults
2026-06-07 17:05:22 +04:00
dobbry-vechur 5b58f07d02 Bundle and sign SDL3 stack in macOS app bundle
- add build-scripts/codesign-macos.sh nested Mach-O signer
- invoke codesign from dmgdist after plutil rewrite
- set macOS SDL_mixer to VENDORED=OFF with MacPorts universal codecs
- add mpg123 link-edge and bundled-dylib verification gates
- ship LICENSE files in DMG root via dmgsettings.py
2026-06-05 20:59:35 +04:00
dobbry-vechur fdade18e5a Bundle SDL3 closure into Linux bindist with rpath
- add build-scripts/bundle-sdl3-linux.sh closure walker and rpath patcher
- set LDFLAGS rpath $ORIGIN/lib and BUNDLE_SDL3_LINUX on Linux SDL3
- invoke bundle script from bindist target
- pin Linux SDL3 job to ubuntu-22.04 with clang-18 and patchelf
- prepend lib dir in cataclysm-launcher LD_LIBRARY_PATH
2026-06-05 19:55:56 +04:00
dumb-kevin 2cbb49f36c Upgrade vendored Dear ImGui to 1.92.8
- vendored upstream 1.92.8 sources, flattened backends/misc
- migrated CDDA call sites to renamed font, freetype, selectable, clipper APIs
- removed obsolete fallback-glyph callback subsystem from cata_imgui
- removed CLDR per-language glyph-range tables
- reapplied freetype include path patch in imgui_draw
- reapplied SDL2 Vulkan header guard
2026-05-20 18:28:59 +04:00
dumb-kevin 5c9ea2d527 Add SDL3 shader build pipeline
- new tools/build_shaders.py drives GLSL to spv/dxil/msl
- Make/CMake/MSVC invoke under SDL3=1 only
- pin SDL3 >= 3.4.0 with version-check error
- vcpkg overlay-port + msvc prebuild integration
- doc SDL3 toolchain section in COMPILING.md
- gitignore data/shaders build artifacts
2026-05-14 10:50:29 -07:00
dumb-kevin e6ab542b25 Release: fix SDL3 lanes for Linux, macOS, Windows
- Linux SDL3: source-build full SDL3 stack into cached prefix
- Linux SDL3: expand apt deps, set PKG_CONFIG_PATH/LD_LIBRARY_PATH
- macOS SDL3: source-build SDL3 stack universal with vendored codecs
- macOS SDL3: keep macports freetype/pkgconfig +universal for imgui_freetype
- Windows: cache vcpkg_installed keyed per SDL feature
- Makefile: bundle libSDL3*.so and LICENSE-SDL3_mixer in Linux bindist
- Makefile: separate install commands per INSTALL_EXTRAS lib
2026-05-05 09:39:06 +04:00
dumb-kevin 0680f3459c Build: demote GCC 16 -Wsfinae-incomplete to warning
- Makefile: add -Wno-error=sfinae-incomplete on GCC >= 16
- CMakeLists.txt: same gate via CMAKE_CXX_COMPILER_VERSION
2026-05-04 22:16:49 +04:00
dumb-kevin 9e1c26f33d Add SDL3 sound backend stub and dual-build source selection
- Added src/sound_backend_sdl3.cpp with no-op stub implementation
- Self-guarded sound_backend_sdl2.cpp and sdlsound.cpp on !USE_SDL3
- Narrowed SDL3+SOUND hard-error guards in Makefile and CMakeLists.txt to macOS only
- Gated SDL2_mixer find_package, link, and Windows runtime copy on NOT USE_SDL3
- Added missing sfx stub signatures needed for SDL3+SOUND link
- Migrated sdlsound.cpp SFX cache from Mix_Chunk to sound_backend::sfx_audio
- Routed get_sfx_resource and sfx wrappers through backend play_reserved and play_oneshot
- Dropped sdlsound_sdl3_stub.cpp in favor of shared sdlsound.cpp compiling under both backends
2026-05-03 01:00:56 +04:00
dumb-kevin d1098b9550 Add SDL3 support to OSX build paths
- Added SDL3 branch to OSX Makefile TILES block for framework and libsdl modes
- Switched framework discovery glob between SDL2 and SDL3 via SDL3 flag
- Copy SDL3 frameworks into Cataclysm.app bundle when SDL3=1
- Brew install sdl3 sdl3_image sdl3_ttf in requirements.sh when SDL3=1
2026-05-03 01:00:56 +04:00
dumb-kevin 89e9f225b8 Add SDL3 compilation support with dual SDL2/SDL3 build
- Added Makefile SDL3=1 flag with pkg-config for sdl3/sdl3-image/sdl3-ttf
- Added imgui SDL3 backend selection and SDL3_mixer SOUND=0 guard
- Added #if SDL_MAJOR_VERSION >= 3 branches to all wrapper functions
- Added KMOD_CTRL/SHIFT/ALT aliases for SDL3 KMOD rename
- Added SDL3 branch to SDL_Surface_deleter
- Added SDL3 include paths in wrappers, version, allocator, sound
- Vendored imgui SDL3 backends from upstream v1.91.5
- Added conditional imgui backend calls in cata_imgui.cpp
- Guarded SDL_TEXTEDITING_EXT and Linux XMODIFIERS for SDL2 only
- Dropped SDL_INIT_TIMER and IMG_Init under SDL3
- Added +SDL3 suffix to version string for SDL3 builds
2026-05-03 01:00:56 +04:00
akrieger f48f8e5495 Add missing win32 libs to msys/mingw build post-snmalloc 2026-03-22 22:32:39 -07:00
Andrew Krieger 72ce0b4a52 Use -fvisibility=hidden with global allocator functions to make strip better. 2026-03-03 09:56:17 -08:00
Andrew Krieger d6e0d45c08 Don't strip the entire binary, only strip debug symbols and locals 2026-03-02 13:31:37 -08:00
Andrew Krieger 1464c209f9 Use snmalloc for improved native performance. 2026-02-24 14:41:35 -08:00
akrieger ae59c8298a Add some boilerplate to make it easier to substitute different allocators. 2026-02-24 12:26:09 -08:00
Kevin Granade d4a123f6c3 Change default linux optimization level to 2 2026-02-16 18:33:10 -08:00
akrieger f61d9d2114 Merge pull request #84922 from akrieger/zstd_under_the_rug
Also delete zstd.a on `make clean`
2026-01-26 13:26:48 -08:00
akrieger 7de68332af Use fmt instead of string_formatter 2026-01-13 09:06:26 -08:00
Andrew Krieger b3c2eb53e6 Fix my mac build 2026-01-09 10:51:58 -08:00
Binrui Dong 9c9b4c1789 Fix make clean error on macOS 2026-01-03 12:45:50 +08:00
alef bc67465eaa Add macOS arch to CFLAGS for zstd 2025-12-29 21:38:45 +01:00
alef 880be99433 Use COMPILE.c for IWYU *.inc files 2025-12-29 18:58:58 +01:00
alef 69390cc7ed Do not set CFLAGS with C++ flags 2025-12-29 18:55:55 +01:00
alef 7492e9b6ed Use LINK.cc but remove extra libraries 2025-12-29 18:55:18 +01:00
alef 2c6042daae Move no-unknown-warning to WARNINGS
-Werror will stop compilation because some warnings
are meant for C++ and not for third-party C
2025-12-29 18:22:50 +01:00
alef 0d85a2adf5 Add C++ warnings to C flags 2025-12-29 01:19:22 +01:00
alef 4053e65aa0 Move built pch files into obj dir
Avoid mixing them during parallel builds
Remove clean-pch, clean is enough
2025-12-28 18:39:53 +01:00
alef a45eb6cc51 Add clang C compiler 2025-12-28 17:13:13 +01:00
alef 2eea9b225a Use C rules for third-party C sources 2025-12-28 16:41:15 +01:00
alef d8c17422e0 Restore zzip link rule, fixes #84353 2025-12-28 16:41:01 +01:00
alef 225dace376 Add C built-in rules debug 2025-12-28 16:40:03 +01:00
alef 6cbf41e8bc Restore original C to .inc 2025-12-26 19:48:10 +01:00
alef d1b03db11b Compile C to .inc using C 2025-12-26 19:36:13 +01:00
alef 6ce1fff6f8 Re-add C rules for third-party sources 2025-12-26 19:26:59 +01:00
alef d7c3f9bd93 Fix unknown-warning for non-clang 2025-12-26 18:38:22 +01:00
alef de743f638d Use built-in C++ to compile C in third-party 2025-12-26 18:37:38 +01:00
alef 4748cd804f Merge the two into DEFINES 2025-12-26 18:36:56 +01:00
alef 2532fdd31f Call uname once 2025-12-26 18:36:25 +01:00
alef e047ee4135 Add a target to debug built-in rules 2025-12-26 18:36:08 +01:00
alef 55e8308643 Remove C rules for src/ 2025-12-26 15:04:41 +01:00
alef 70ac5899b8 Prefer GNU's make built-in rules 2025-12-26 15:04:00 +01:00
alef c7498e031c Add DEFINES to all CPPFLAGS 2025-12-26 14:56:06 +01:00
alef 88329611b5 Fix compiler warning for clang only 2025-12-23 18:04:46 +01:00
alef 2d77da363a UCRT64 ncurses build fix (#84266)
* Apply this warning to clang only

* Mute git CRLF warnings

* Fix gcc complaining ncruses.h uses C casts
2025-12-21 10:07:20 -05:00