mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 15:29:07 +08:00
621b7abe07
* [ports/keccak-tiny] New port * [ports/keccak-tiny] Resolve hand-lint from vcpkg team * [ports/keccak-tiny/portfile.cmake] Guard check linkage for Windows Co-authored-by: Kai Pastor <dg0yt@darc.de> * [versions/k-/keccak-tiny.json] `./vcpkg x-add-version --all --overwrite-version` --------- Co-authored-by: Kai Pastor <dg0yt@darc.de>
29 lines
916 B
CMake
29 lines
916 B
CMake
if(WIN32)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO coruus/${PORT}
|
|
REF 64b6647514212b76ae7bca0dea9b7b197d1d8186
|
|
SHA512 5cf14061efc1b3c934dfb28a08e2a478036109c449aed41d4deb975a9f0748db06f83c1de9e5d991009d04f0220a397f5f66232a4db04bbc0dea0c624522752c
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
|
DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
|
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "CC0-1.0")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
|
|
"${CURRENT_PACKAGES_DIR}/debug/include")
|