mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 15:29:03 +08:00
4d73751b34
* [ports/libaes-siv] New port * [ports/libaes-siv/CMakeLists.txt] Only include one C file ; use compile flags from their official CMakeLists.txt ; link OpenSSL * Update ports/libaes-siv/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * `./vcpkg x-add-version --all --overwrite-version` * [ports/libaes-siv/CMakeLists.txt] Copy yara port's approach to depending on OpenSSL * [ports/libaes-siv/CMakeLists.txt] Use @ for escaping vars and use https://cmake.org/cmake/help/latest/command/file.html#configure instead of `file(WRITE` following by `configure_file` * Update ports/libaes-siv/CMakeLists.txt Co-authored-by: Kai Pastor <dg0yt@darc.de> * Update ports/libaes-siv/CMakeLists.txt Co-authored-by: Kai Pastor <dg0yt@darc.de> * Update ports/libaes-siv/CMakeLists.txt Co-authored-by: Kai Pastor <dg0yt@darc.de> * ./vcpkg x-add-version libaes-siv --overwrite-version --------- Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Kai Pastor <dg0yt@darc.de>
35 lines
1.0 KiB
CMake
35 lines
1.0 KiB
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO dfoxfranke/libaes_siv
|
|
REF 9681279cfaa6e6399bb7ca3afbbc27fc2e19df4b
|
|
SHA512 96441420339bd11f37f4feff29f9306afa60e5b07ac7e7b879778c0e6964f8f679ffb7c1deca43ca054b7851e4e7bf5fca548dc60c92469fe9d3235cb5a37776
|
|
HEAD_REF master
|
|
PATCHES
|
|
header_rename.patch
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
|
DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"-DVERSION=${VERSION}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
|
|
|
|
# Handle copyright
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
|
|
|
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")
|