mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 15:59:01 +08:00
a68d803377
* STB patch no longer needed. * Replace deprecated dependency lodepng-c. * Added 'sdl' and 'threads' features. Libtcod can now be compiled without linking to SDL2. Problematic threading functions can be disabled, and are disabled by default. * Update to 1.21.0. Change head ref to 'main'.
36 lines
986 B
CMake
36 lines
986 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libtcod/libtcod
|
|
REF 1.21.0
|
|
SHA512 1d18a49b0d66337e2b29ad6b9a4a412cc4d2fd723d9a3d3c983ff3ef2f5bee4422ea3469513e0fe3b2f885773fb5d70e17128bc473b952ab6e0de27f687c905e
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
INVERTED_FEATURES
|
|
"sdl" CMAKE_DISABLE_FIND_PACKAGE_SDL2
|
|
"sdl" CMAKE_DISABLE_FIND_PACKAGE_GLAD
|
|
"threads" CMAKE_DISABLE_FIND_PACKAGE_Threads
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DCMAKE_INSTALL_INCLUDEDIR=${CURRENT_PACKAGES_DIR}/include
|
|
-DLIBTCOD_SDL2=find_package
|
|
-DLIBTCOD_ZLIB=find_package
|
|
-DLIBTCOD_GLAD=find_package
|
|
-DLIBTCOD_LODEPNG=find_package
|
|
-DLIBTCOD_UTF8PROC=vcpkg
|
|
-DLIBTCOD_STB=find_package
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|