early-access version 2853
This commit is contained in:
30
externals/vcpkg/ports/libtcod/portfile.cmake
vendored
Executable file
30
externals/vcpkg/ports/libtcod/portfile.cmake
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO libtcod/libtcod
|
||||
REF 1.20.1
|
||||
SHA512 bef3751dd1b190769163ff7c188479fe100d425fa98d3f0f97a3a81045fe0f0c24690b64bcde29f7af1eb7fd34915371223146598b1f0cab173e69a78c1dfc76
|
||||
HEAD_REF develop
|
||||
PATCHES
|
||||
stb-headers.patch
|
||||
)
|
||||
|
||||
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=vcpkg
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
11
externals/vcpkg/ports/libtcod/stb-headers.patch
vendored
Executable file
11
externals/vcpkg/ports/libtcod/stb-headers.patch
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -91,7 +91,7 @@
|
||||
message("Will be vendored: stb")
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE "vendor/")
|
||||
elseif(LIBTCOD_STB STREQUAL "vcpkg")
|
||||
- find_path(STB_INCLUDE_DIRS "stb.h")
|
||||
+ find_path(STB_INCLUDE_DIRS stb_ds.h)
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${STB_INCLUDE_DIRS})
|
||||
else()
|
||||
message(FATAL_ERROR "Unknown option for LIBTCOD_STB: '${LIBTCOD_STB}'")
|
26
externals/vcpkg/ports/libtcod/vcpkg.json
vendored
Executable file
26
externals/vcpkg/ports/libtcod/vcpkg.json
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "libtcod",
|
||||
"version": "1.20.1",
|
||||
"port-version": 1,
|
||||
"maintainers": "Kyle Benesch <4b796c65+github@gmail.com>",
|
||||
"description": "Common algorithms and tools for roguelikes.",
|
||||
"homepage": "https://github.com/libtcod/libtcod",
|
||||
"documentation": "https://libtcod.readthedocs.io/en/latest/",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": [
|
||||
"glad",
|
||||
"lodepng-c",
|
||||
"sdl2",
|
||||
"stb",
|
||||
"utf8proc",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
"zlib"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user