Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions ports/kuku/CMakeLists-windows.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c4a87db..10d3eb2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,10 +13,6 @@ cmake_minimum_required(VERSION 3.12)

project(Kuku VERSION 2.0.0 LANGUAGES CXX C)

-if(${MSVC})
- message(FATAL_ERROR "Please build using the attached Visual Studio solution/project files.")
-endif()
-
########################
# Global configuration #
########################
4 changes: 4 additions & 0 deletions ports/kuku/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Source: kuku
Version: 2.0
Homepage: https://github.com/microsoft/Kuku
Description: Kuku is a simple open-source (MIT licensed) cuckoo hashing library developed by the Cryptography and Privacy Research group at Microsoft.
24 changes: 24 additions & 0 deletions ports/kuku/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO microsoft/Kuku
REF e7cd2d6ad7f8886061c8e4b85890ede69cec3929
SHA512 8220a8e839bd247d6a8d1049562028c620353d0cabee0681383d1457bda544ff1394709eeaa82a92a8c0d3491cc9f15de1a14b78a86e8f97ee1da68eb50c982e
HEAD_REF master
PATCHES CMakeLists-windows.patch
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
)

vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Kuku-2.0)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)