early-access version 2853
This commit is contained in:
22
externals/vcpkg/ports/libhydrogen/portfile.cmake
vendored
Executable file
22
externals/vcpkg/ports/libhydrogen/portfile.cmake
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO jedisct1/libhydrogen
|
||||
REF 01c32862f6f6e864c113efc3f0142e05ea3531fe #2021-12-02
|
||||
SHA512 016181db4573a1ab31547fbfb51e19fa09e4ee4e0e788434a7654921956a02547b55eda14ccfea98425f4f615fb90e0534c5e1010d5320c1958b65b0489a2931
|
||||
HEAD_REF master
|
||||
PATCHES remove-tests.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/hydrogen)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
||||
30
externals/vcpkg/ports/libhydrogen/remove-tests.patch
vendored
Executable file
30
externals/vcpkg/ports/libhydrogen/remove-tests.patch
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -139,12 +139,13 @@
|
||||
# Tests
|
||||
|
||||
set(tests_executable "${PROJECT_NAME}-tests")
|
||||
set(tests_run_target "${PROJECT_NAME}-run-tests")
|
||||
set(tests_run_file "${PROJECT_BINARY_DIR}/${tests_run_target}.done")
|
||||
|
||||
+if(0)
|
||||
enable_testing()
|
||||
add_executable("${tests_executable}" ${test_files})
|
||||
target_compile_options("${tests_executable}" PRIVATE ${compile_options})
|
||||
target_link_libraries("${tests_executable}" "${PROJECT_NAME}")
|
||||
add_test(NAME "${tests_executable}" COMMAND "${tests_executable}")
|
||||
|
||||
@@ -166,12 +167,13 @@
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
ARGS -E touch "${tests_run_file}"
|
||||
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}"
|
||||
VERBATIM)
|
||||
add_custom_target("${tests_run_target}" ALL DEPENDS "${tests_run_file}" VERBATIM)
|
||||
endif()
|
||||
+endif()
|
||||
|
||||
# Generate Arduino package
|
||||
|
||||
set(arduino_package_file "${PROJECT_BINARY_DIR}/hydrogen-crypto.zip")
|
||||
|
||||
# Use the relative versions of the file path lists or else the full paths will end up in the
|
||||
17
externals/vcpkg/ports/libhydrogen/vcpkg.json
vendored
Executable file
17
externals/vcpkg/ports/libhydrogen/vcpkg.json
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "libhydrogen",
|
||||
"version-date": "2021-12-02",
|
||||
"port-version": 1,
|
||||
"description": "A lightweight, secure, easy-to-use crypto library suitable for constrained environments",
|
||||
"homepage": "https://github.com/jedisct1/libhydrogen",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user