early-access version 2853
This commit is contained in:
1152
externals/vcpkg/ports/libsodium/CMakeLists.txt
vendored
Executable file
1152
externals/vcpkg/ports/libsodium/CMakeLists.txt
vendored
Executable file
File diff suppressed because it is too large
Load Diff
38
externals/vcpkg/ports/libsodium/portfile.cmake
vendored
Executable file
38
externals/vcpkg/ports/libsodium/portfile.cmake
vendored
Executable file
@@ -0,0 +1,38 @@
|
||||
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}"
|
||||
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(
|
||||
"${CMAKE_CURRENT_LIST_DIR}/sodiumConfig.cmake.in"
|
||||
"${CURRENT_PACKAGES_DIR}/share/unofficial-sodium/unofficial-sodiumConfig.cmake"
|
||||
@ONLY
|
||||
)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
7
externals/vcpkg/ports/libsodium/sodiumConfig.cmake.in
vendored
Executable file
7
externals/vcpkg/ports/libsodium/sodiumConfig.cmake.in
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
|
||||
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT WIN32)
|
||||
include(CMakeFindDependencyMacro)
|
||||
find_dependency(Threads)
|
||||
endif()
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/unofficial-sodiumTargets.cmake)
|
||||
18
externals/vcpkg/ports/libsodium/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/libsodium/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "libsodium",
|
||||
"version": "1.0.18",
|
||||
"port-version": 7,
|
||||
"description": "A modern and easy-to-use crypto library",
|
||||
"homepage": "https://github.com/jedisct1/libsodium",
|
||||
"license": "ISC",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user