diff options
| author | Gregor Jasny <gjasny@googlemail.com> | 2018-11-14 20:16:07 +0100 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-11-14 11:16:07 -0800 |
| commit | 74360420458e01b72e519830cb2bc4017a986a90 (patch) | |
| tree | 658464bc1e31a0c89c6be7432b1dc8b79c5c3a65 /ports/civetweb | |
| parent | 075d0d4ecd95c3567580411087a1d7f2cda3c6bd (diff) | |
| download | vcpkg-74360420458e01b72e519830cb2bc4017a986a90.tar.gz vcpkg-74360420458e01b72e519830cb2bc4017a986a90.zip | |
Add prometheus-cpp (and civetweb) (#4694)
* [prometheus-cpp] Initial port
Closes: jupp0r/prometheus-cpp#130
* [civetweb] Initial port
* [prometheus-cpp][civetweb] Cleanup. Update to 0.6.0.
Diffstat (limited to 'ports/civetweb')
| -rw-r--r-- | ports/civetweb/CONTROL | 3 | ||||
| -rw-r--r-- | ports/civetweb/portfile.cmake | 36 |
2 files changed, 39 insertions, 0 deletions
diff --git a/ports/civetweb/CONTROL b/ports/civetweb/CONTROL new file mode 100644 index 000000000..a8b0832e0 --- /dev/null +++ b/ports/civetweb/CONTROL @@ -0,0 +1,3 @@ +Source: civetweb +Version: 1.11-1 +Description: Easy to use, powerful, C/C++ embeddable web server. diff --git a/ports/civetweb/portfile.cmake b/ports/civetweb/portfile.cmake new file mode 100644 index 000000000..8ad7af538 --- /dev/null +++ b/ports/civetweb/portfile.cmake @@ -0,0 +1,36 @@ +include(vcpkg_common_functions) + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") + message(FATAL_ERROR "${PORT} does not currently support UWP") +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO civetweb/civetweb + REF v1.11 + SHA512 e1520fd2f4a54b6ab4838f4da2ce3f0956e9884059467d196078935a3fce61dad619f3bb1bc2b4c6a757e1a8abfed0e83cba38957c7c52fff235676e9dd1d428 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DCIVETWEB_BUILD_TESTING=OFF + -DCIVETWEB_ENABLE_ASAN=OFF + -DCIVETWEB_ENABLE_CXX=ON + -DCIVETWEB_ENABLE_IPV6=ON + -DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF + -DCIVETWEB_ENABLE_SSL=OFF +) + +vcpkg_install_cmake() + +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +# Handle copyright +configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/civetweb/copyright COPYONLY) |
