2020-05-27 00:32:47 -04:00
|
|
|
set(LUAFILESYSTEM_VERSION 1.8.0)
|
|
|
|
set(LUAFILESYSTEM_REVISION v1_8_0)
|
|
|
|
set(LUAFILESYSTEM_HASH 79d964f13ae43716281dc8521d2f128b22f2261234c443e242b857cfdf621e208bdf4512f8ba710baa113e9b3b71e2544609de65e2c483f569c243a5cf058247)
|
2017-06-06 22:11:52 -04:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO keplerproject/luafilesystem
|
|
|
|
REF ${LUAFILESYSTEM_REVISION}
|
|
|
|
SHA512 ${LUAFILESYSTEM_HASH}
|
2019-10-07 19:35:13 +02:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2017-06-06 22:11:52 -04:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2024-05-27 17:17:22 -04:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-luafilesystem-config.cmake.in" DESTINATION "${SOURCE_PATH}")
|
2017-06-06 22:11:52 -04:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-05-27 17:17:22 -04:00
|
|
|
OPTIONS
|
|
|
|
-DLFS_VERSION="${VERSION}"
|
2023-03-08 06:14:52 +08:00
|
|
|
)
|
2017-06-06 22:11:52 -04:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-06-06 22:11:52 -04:00
|
|
|
vcpkg_copy_pdbs()
|
2024-05-27 17:17:22 -04:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "unofficial-luafilesystem")
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
)
|
2017-06-06 22:11:52 -04:00
|
|
|
|
|
|
|
# Handle copyright
|
2024-09-27 23:41:02 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2024-05-27 17:17:22 -04:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|