forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[via-httplib] add new port (microsoft#40351)
Co-authored-by: Emanuele Zavallone <[email protected]> Co-authored-by: Lily Wang <[email protected]> Co-authored-by: data-queue <[email protected]>
- Loading branch information
1 parent
a00ea19
commit bb002e6
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set(VCPKG_BUILD_TYPE release) # header-only | ||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO kenba/via-httplib | ||
REF ${VERSION} | ||
SHA512 3a36d251b6dfe9ad40d798761169a70877c6d12a94ea2799670d701a4449e2fe15558bc9f50fa46e17e3f2a53b91eb233254efd5000eeece07890e1a804f301d | ||
HEAD_REF master | ||
) | ||
|
||
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}") | ||
|
||
vcpkg_cmake_install() | ||
|
||
vcpkg_cmake_config_fixup(PACKAGE_NAME ViaHttpLib CONFIG_PATH lib/cmake/ViaHttpLib) | ||
|
||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/ViaHttpLib/ViaHttpLibConfig.cmake" | ||
"find_dependency(Boost 1.51)" | ||
[[find_dependency(Boost COMPONENTS system)]]) | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") | ||
|
||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "via-httplib", | ||
"version": "1.9.0", | ||
"description": "C++ HTTP Library", | ||
"homepage": "https://github.com/kenba/via-httplib", | ||
"license": "GPL-2.0-or-later", | ||
"dependencies": [ | ||
"boost-asio", | ||
"json-spirit", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"versions": [ | ||
{ | ||
"git-tree": "b8d9653408119df7140ccacc79ac7f75caddeea2", | ||
"version": "1.9.0", | ||
"port-version": 0 | ||
} | ||
] | ||
} |