2021-03-30 01:11:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libtcod/libtcod
|
2022-10-25 07:27:31 +08:00
|
|
|
REF 1.23.0
|
|
|
|
SHA512 efb9d1bca56268bb467ea11f640ed3807f269cd6c6cd7ea3296b3e1fb26bbe688cd8a21d3c5bb070d747a5321088e5fe4fe2a9cc52c145958a9db120d9abf878
|
2022-07-19 05:12:32 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
INVERTED_FEATURES
|
2022-08-26 01:42:47 +08:00
|
|
|
"png" CMAKE_DISABLE_FIND_PACKAGE_lodepng-c
|
2022-07-19 05:12:32 +08:00
|
|
|
"sdl" CMAKE_DISABLE_FIND_PACKAGE_SDL2
|
|
|
|
"sdl" CMAKE_DISABLE_FIND_PACKAGE_GLAD
|
|
|
|
"threads" CMAKE_DISABLE_FIND_PACKAGE_Threads
|
2022-09-14 07:42:55 +08:00
|
|
|
"unicode" CMAKE_DISABLE_FIND_PACKAGE_utf8proc
|
|
|
|
"unicode" CMAKE_DISABLE_FIND_PACKAGE_unofficial-utf8proc
|
2022-08-26 01:42:47 +08:00
|
|
|
"zlib" CMAKE_DISABLE_FIND_PACKAGE_ZLIB
|
2021-03-30 01:11:07 +08:00
|
|
|
)
|
|
|
|
|
2021-05-07 08:42:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-03-30 01:11:07 +08:00
|
|
|
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
|
2022-07-19 05:12:32 +08:00
|
|
|
-DLIBTCOD_STB=find_package
|
2021-03-30 01:11:07 +08:00
|
|
|
)
|
|
|
|
|
2021-05-07 08:42:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-03-30 01:11:07 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-05-07 08:42:04 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2021-03-30 01:11:07 +08:00
|
|
|
|
2021-05-07 08:42:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|