early-access version 2853
This commit is contained in:
32
externals/vcpkg/ports/libjuice/fix-for-vcpkg.patch
vendored
Executable file
32
externals/vcpkg/ports/libjuice/fix-for-vcpkg.patch
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3e2a2dc..011a4ca 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -66,7 +66,7 @@ set(TESTS_SOURCES
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
-add_library(juice SHARED ${LIBJUICE_SOURCES})
|
||||
+add_library(juice ${LIBJUICE_SOURCES})
|
||||
set_target_properties(juice PROPERTIES VERSION ${PROJECT_VERSION})
|
||||
target_include_directories(juice PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
@@ -96,11 +96,15 @@ if(WIN32)
|
||||
endif()
|
||||
|
||||
if (USE_NETTLE)
|
||||
- find_package(Nettle REQUIRED)
|
||||
+ find_path(NETTLE_INCLUDE_PATH "nettle/hmac.h" REQUIRED)
|
||||
+ find_library(NETTLE_LIBRARY_PATH NAMES nettle libnettle REQUIRED)
|
||||
+ target_include_directories(juice PRIVATE ${NETTLE_INCLUDE_PATH})
|
||||
+ target_include_directories(juice-static PRIVATE ${NETTLE_INCLUDE_PATH})
|
||||
+
|
||||
target_compile_definitions(juice PRIVATE USE_NETTLE=1)
|
||||
- target_link_libraries(juice PRIVATE Nettle::Nettle)
|
||||
+ target_link_libraries(juice PRIVATE ${NETTLE_LIBRARY_PATH})
|
||||
target_compile_definitions(juice-static PRIVATE USE_NETTLE=1)
|
||||
- target_link_libraries(juice-static PRIVATE Nettle::Nettle)
|
||||
+ target_link_libraries(juice-static PRIVATE ${NETTLE_LIBRARY_PATH})
|
||||
else()
|
||||
target_compile_definitions(juice PRIVATE USE_NETTLE=0)
|
||||
target_compile_definitions(juice-static PRIVATE USE_NETTLE=0)
|
||||
30
externals/vcpkg/ports/libjuice/portfile.cmake
vendored
Executable file
30
externals/vcpkg/ports/libjuice/portfile.cmake
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO paullouisageneau/libjuice
|
||||
REF ae954be55f17a100e99650d6c1286e80929a66bb #v1.0.0
|
||||
SHA512 1b303ddfc7b903e0ba5f35580a6ce2350e12d4ef6cbbe97dbd090e863b664ca7b2f13da24d70b20cfd30a9c1208779b9b9c8c2df9ff9a21f12f3fc1bfdc09b0e
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-for-vcpkg.patch
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
nettle USE_NETTLE
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DNO_TESTS=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME LibJuice CONFIG_PATH lib/cmake/LibJuice)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
25
externals/vcpkg/ports/libjuice/vcpkg.json
vendored
Executable file
25
externals/vcpkg/ports/libjuice/vcpkg.json
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "libjuice",
|
||||
"version": "1.0.0",
|
||||
"description": "The library is a simplified implementation of the Interactive Connectivity Establishment (ICE) protocol in C for POSIX platforms (including Linux and Apple macOS) and Microsoft Windows.",
|
||||
"homepage": "https://github.com/paullouisageneau/libjuice",
|
||||
"license": "LGPL-2.1-only",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"nettle": {
|
||||
"description": "Use nettle for HMAC computation instead of the Builtin",
|
||||
"dependencies": [
|
||||
"nettle"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user