vcpkg/ports/restc-cpp/portfile.cmake

47 lines
1.5 KiB
CMake
Raw Normal View History

[restc-cpp] new port (#15739) * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc_cpp] updated MSVC CRT linkage * [restc-cpp] reformated vcpkg.json * [restc-cpp] updated port's version * [restc-cpp] excluded dependency on cmake external projects * [restc-cpp] updated version hash * [rest-cpp] Remove changes about CRT linkage * update version record * Update ports/restc-cpp/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added an error message for mutual exclusive logging features * [restc-cpp] updated port version * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [restc-cpp] updated port version * [restc-cpp] version file has to declare version as 'version-semver' Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-02-11 09:54:25 +01:00
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jgaa/restc-cpp
REF "v${VERSION}"
[restc-cpp] new port (#15739) * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc_cpp] updated MSVC CRT linkage * [restc-cpp] reformated vcpkg.json * [restc-cpp] updated port's version * [restc-cpp] excluded dependency on cmake external projects * [restc-cpp] updated version hash * [rest-cpp] Remove changes about CRT linkage * update version record * Update ports/restc-cpp/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added an error message for mutual exclusive logging features * [restc-cpp] updated port version * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [restc-cpp] updated port version * [restc-cpp] version file has to declare version as 'version-semver' Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-02-11 09:54:25 +01:00
SHA512 0f74d825d3958810c270748c2810953fe394d0bf1f147d81b9177803e29a86c702715d5995c5966c4fe671b7689f26d9a0fad4e82d111277bbd3ddce1a68f73a
HEAD_REF master
PATCHES
0001-exclude-cmake-external-projects.patch
# This patch is a combination of these two commits:
# https://github.com/jgaa/restc-cpp/commit/f6144b1a93a00e11335e2cfa724da91925b08adb
# https://github.com/jgaa/restc-cpp/commit/5470ee36b973fac960b3566e47efe873c21b43fa
boost-1.86-fix.patch
[restc-cpp] new port (#15739) * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc_cpp] updated MSVC CRT linkage * [restc-cpp] reformated vcpkg.json * [restc-cpp] updated port's version * [restc-cpp] excluded dependency on cmake external projects * [restc-cpp] updated version hash * [rest-cpp] Remove changes about CRT linkage * update version record * Update ports/restc-cpp/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added an error message for mutual exclusive logging features * [restc-cpp] updated port version * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [restc-cpp] updated port version * [restc-cpp] version file has to declare version as 'version-semver' Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-02-11 09:54:25 +01:00
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
openssl RESTC_CPP_WITH_TLS
zlib RESTC_CPP_WITH_ZLIB
threaded-ctx RESTC_CPP_THREADED_CTX
boost-log RESTC_CPP_LOG_WITH_BOOST_LOG
[restc-cpp] new port (#15739) * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc_cpp] updated MSVC CRT linkage * [restc-cpp] reformated vcpkg.json * [restc-cpp] updated port's version * [restc-cpp] excluded dependency on cmake external projects * [restc-cpp] updated version hash * [rest-cpp] Remove changes about CRT linkage * update version record * Update ports/restc-cpp/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added an error message for mutual exclusive logging features * [restc-cpp] updated port version * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [restc-cpp] updated port version * [restc-cpp] version file has to declare version as 'version-semver' Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-02-11 09:54:25 +01:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
WINDOWS_USE_MSBUILD
[restc-cpp] new port (#15739) * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc_cpp] updated MSVC CRT linkage * [restc-cpp] reformated vcpkg.json * [restc-cpp] updated port's version * [restc-cpp] excluded dependency on cmake external projects * [restc-cpp] updated version hash * [rest-cpp] Remove changes about CRT linkage * update version record * Update ports/restc-cpp/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added an error message for mutual exclusive logging features * [restc-cpp] updated port version * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [restc-cpp] updated port version * [restc-cpp] version file has to declare version as 'version-semver' Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-02-11 09:54:25 +01:00
OPTIONS
-DINSTALL_RAPIDJSON_HEADERS=OFF
-DRESTC_CPP_WITH_EXAMPLES=OFF
-DRESTC_CPP_WITH_UNIT_TESTS=OFF
-DRESTC_CPP_WITH_FUNCTIONALT_TESTS=OFF
-DRESTC_CPP_USE_CPP17=ON
[restc-cpp] new port (#15739) * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc_cpp] updated MSVC CRT linkage * [restc-cpp] reformated vcpkg.json * [restc-cpp] updated port's version * [restc-cpp] excluded dependency on cmake external projects * [restc-cpp] updated version hash * [rest-cpp] Remove changes about CRT linkage * update version record * Update ports/restc-cpp/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added an error message for mutual exclusive logging features * [restc-cpp] updated port version * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [restc-cpp] updated port version * [restc-cpp] version file has to declare version as 'version-semver' Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-02-11 09:54:25 +01:00
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
[restc-cpp] new port (#15739) * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc_cpp] updated MSVC CRT linkage * [restc-cpp] reformated vcpkg.json * [restc-cpp] updated port's version * [restc-cpp] excluded dependency on cmake external projects * [restc-cpp] updated version hash * [rest-cpp] Remove changes about CRT linkage * update version record * Update ports/restc-cpp/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added an error message for mutual exclusive logging features * [restc-cpp] updated port version * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [restc-cpp] updated port version * [restc-cpp] version file has to declare version as 'version-semver' Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-02-11 09:54:25 +01:00
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
[restc-cpp] new port (#15739) * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc_cpp] updated MSVC CRT linkage * [restc-cpp] reformated vcpkg.json * [restc-cpp] updated port's version * [restc-cpp] excluded dependency on cmake external projects * [restc-cpp] updated version hash * [rest-cpp] Remove changes about CRT linkage * update version record * Update ports/restc-cpp/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added an error message for mutual exclusive logging features * [restc-cpp] updated port version * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [restc-cpp] updated port version * [restc-cpp] version file has to declare version as 'version-semver' Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-02-11 09:54:25 +01:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
"${CURRENT_PACKAGES_DIR}/debug/include")
[restc-cpp] new port (#15739) * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc-cpp] new port * Updated port's version-string Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added port version * [restc_cpp] updated MSVC CRT linkage * [restc-cpp] reformated vcpkg.json * [restc-cpp] updated port's version * [restc-cpp] excluded dependency on cmake external projects * [restc-cpp] updated version hash * [rest-cpp] Remove changes about CRT linkage * update version record * Update ports/restc-cpp/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [restc-cpp] added an error message for mutual exclusive logging features * [restc-cpp] updated port version * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Updated ports/restc-cpp/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [restc-cpp] updated port version * [restc-cpp] version file has to declare version as 'version-semver' Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-02-11 09:54:25 +01:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")