Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 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
13 changes: 0 additions & 13 deletions ports/restclient-cpp/0001_fix_cmake_linking.patch

This file was deleted.

3 changes: 2 additions & 1 deletion ports/restclient-cpp/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Source: restclient-cpp
Version: 0.5.1-3
Build-Depends: curl
Description: Binn is a binary data serialization format designed to be compact, fast and easy to use.
Homepage: https://code.mrtazz.com/restclient-cpp/
Description: Simple REST client for C++. It wraps libcurl for HTTP requests.
12 changes: 4 additions & 8 deletions ports/restclient-cpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()

vcpkg_from_github(
Comment thread
et-nik marked this conversation as resolved.
OUT_SOURCE_PATH SOURCE_PATH
REPO mrtazz/restclient-cpp
REF 0.5.1
SHA512 d5e17a984af44f863bc7cdc7307c2b06cae9252f86c6c6c2377cdb317f61b6419d8e9aedc5e5ccdb08fd1ee13848ec3b9ef8067a8d26dcf438a5c8793b5a2ce3
REF 6336cae5275c9aeddf99f13c49e8f9320f7ca4bc
SHA512 fbc638f82db8d0d101f4239152be67eb460659f3a7204db9523d3b5740b007b8fe434f78bf5d9f8059901aa639ba96c15b28b1e2fe5f09471accf64c2d577684
HEAD_REF master
PATCHES
0001_fix_cmake_linking.patch
)

vcpkg_configure_cmake(
Expand All @@ -18,6 +12,7 @@ vcpkg_configure_cmake(
OPTIONS
-DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE
-DCMAKE_DISABLE_FIND_PACKAGE_jsoncpp=TRUE
-DCOMPILE_TYPE=STATIC
Comment thread
et-nik marked this conversation as resolved.
Outdated
)

vcpkg_install_cmake()
Expand All @@ -26,6 +21,7 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/restclient-cpp)

vcpkg_copy_pdbs()

# Remove includes in debug
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

# Handle copyright
Expand Down