mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 18:35:42 -04:00
Initial community commit
This commit is contained in:
30
vcpkg-ports/restclient-cpp/portfile.cmake
Normal file
30
vcpkg-ports/restclient-cpp/portfile.cmake
Normal file
@ -0,0 +1,30 @@
|
||||
if (VCPKG_TARGET_IS_WINDOWS)
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO mrtazz/restclient-cpp
|
||||
REF b782bd26539a3d1a8edcb6d8a3493b111f8fac66 #v2022-02-009
|
||||
SHA512 992b2c067c7b672432a202fea6b5263ff51ca77facace5078077e77e57390d3ddcb99e0e20ad1a1595612efbb625d34f4d2cd8c4a2ac4bb33e3f9d5d28c2c579
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_jsoncpp=TRUE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/restclient-cpp)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Remove includes in debug
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
18
vcpkg-ports/restclient-cpp/vcpkg.json
Normal file
18
vcpkg-ports/restclient-cpp/vcpkg.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "restclient-cpp",
|
||||
"version-date": "2022-02-09",
|
||||
"description": "Simple REST client for C++. It wraps libcurl for HTTP requests.",
|
||||
"homepage": "https://code.mrtazz.com/restclient-cpp/",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
"curl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user