mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 15:28:59 +08:00
2980294114
* !wip Use targets to organize build * !wip Add separate file list for MSVC builds * Restructure to match autoconf I re-ordered everything so it is easier to compare directly with the project's autoconf build files. * Move config files to expected location * Convert CONTROL file to manifest file Use vcpkg helper ports. * Use sqlite3's approach to creating config file * Fix MSVC source list I was originally using libsodium:master as a reference, not the release. * Turn off tests * Fix definition scope * Fix JSON formatting Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update libsodium version metadata * [libsodium] Fix x64-windows-static[-md] builds * [libsodium] Update port version metadata Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Glob headers and sources on Windows * [libsodium] Fix GLOB on Windows * [libsodium] Update verson hash Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
44 lines
993 B
CMake
44 lines
993 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO jedisct1/libsodium
|
|
REF 1.0.18
|
|
SHA512 727fe50a5fb1df86ec5d807770f408a52609cbeb8510b4f4183b2a35a537905719bdb6348afcb103ff00ce946a8094ac9559b6e3e5b2ccc2a2d0c08f75577eeb
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DBUILD_TESTING=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(
|
|
PACKAGE_NAME unofficial-sodium
|
|
)
|
|
|
|
file(REMOVE_RECURSE
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
|
)
|
|
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/Makefile.am)
|
|
|
|
configure_file(
|
|
${SOURCE_PATH}/LICENSE
|
|
${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright
|
|
COPYONLY
|
|
)
|
|
|
|
configure_file(
|
|
${CMAKE_CURRENT_LIST_DIR}/sodiumConfig.cmake.in
|
|
${CURRENT_PACKAGES_DIR}/share/unofficial-sodium/unofficial-sodiumConfig.cmake
|
|
@ONLY
|
|
)
|