Mercurial > devkit
view libsdl.md @ 62:c11f18adb87f default tip @
libjansson: fix CMake installation for release
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 10 Mar 2023 14:28:09 +0100 |
parents | bfd88ff3c3aa |
children |
line wrap: on
line source
Build libsdl ============ Version: 2.26.4 Download -------- https://github.com/libsdl-org/SDL/releases/download/release-2.26.4/SDL2-2.26.4.tar.gz Dependencies ------------ - [CMake](https://cmake.org). Configure --------- ### Visual Studio (debug) cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=C:/pkg/vs/debug -DSDL2_DISABLE_UNINSTALL=On -DSDL_INSTALL_CMAKEDIR=C:/pkg/vs/debug/lib/cmake/SDL2 -DSDL_SHARED=On -DSDL_STATIC=On -DSDL_TEST=Off -G"NMake Makefiles" ### Visual Studio (release) cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:/pkg/vs/release -DSDL2_DISABLE_UNINSTALL=On -DSDL_INSTALL_CMAKEDIR=C:/pkg/vs/release/lib/cmake/SDL2 -DSDL_SHARED=On -DSDL_STATIC=On -DSDL_TEST=Off -G"NMake Makefiles" Build ----- ### Visual Studio cmake --build build && cmake --install build ### For debug rmdir /s /q C:\pkg\vs\debug\lib\pkgconfig rmdir /s /q C:\pkg\vs\debug\licenses ### For release rmdir /s /q C:\pkg\vs\release\lib\pkgconfig rmdir /s /q C:\pkg\vs\release\licenses