diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-18 20:50:08 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-18 20:54:03 -0700 |
| commit | ccca198c1b1730b0241911cb56dc8e3504958b2a (patch) | |
| tree | a2dd9b8b087a09afdcecc5cbb3377bed15127eb2 /ports/libwebsockets | |
| download | vcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.tar.gz vcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.zip | |
Initial commit
Diffstat (limited to 'ports/libwebsockets')
| -rw-r--r-- | ports/libwebsockets/CONTROL | 4 | ||||
| -rw-r--r-- | ports/libwebsockets/portfile.cmake | 35 |
2 files changed, 39 insertions, 0 deletions
diff --git a/ports/libwebsockets/CONTROL b/ports/libwebsockets/CONTROL new file mode 100644 index 000000000..866c0ccbc --- /dev/null +++ b/ports/libwebsockets/CONTROL @@ -0,0 +1,4 @@ +Source: libwebsockets +Version: 2.0.0 +Build-Depends: zlib, openssl +Description: Libwebsockets is a lightweight pure C library built to use minimal CPU and memory resources, and provide fast throughput in both directions as client or server.
\ No newline at end of file diff --git a/ports/libwebsockets/portfile.cmake b/ports/libwebsockets/portfile.cmake new file mode 100644 index 000000000..5aa1e3ff5 --- /dev/null +++ b/ports/libwebsockets/portfile.cmake @@ -0,0 +1,35 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/warmcat/libwebsockets/archive/v2.0.0.zip" + FILENAME "libwebsockets-v2.0.0.zip" + MD5 1947a1887dda5b5f9624048f4b6b1507 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0 + OPTIONS + -DLWS_WITH_STATIC=OFF + -DLWS_USE_BUNDLED_ZLIB=OFF + -DLWS_WITHOUT_TESTAPPS=ON + -DLWS_IPV6=ON + -DLWS_HTTP2=ON + # OPTIONS_RELEASE -DOPTIMIZE=1 + # OPTIONS_DEBUG -DDEBUGGABLE=1 +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share) +file(RENAME ${CURRENT_PACKAGES_DIR}/cmake ${CURRENT_PACKAGES_DIR}/share/libwebsockets) +file(RENAME + ${CURRENT_PACKAGES_DIR}/debug/cmake/LibwebsocketsTargets-debug.cmake + ${CURRENT_PACKAGES_DIR}/share/libwebsockets/LibwebsocketsTargets-debug.cmake +) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake) + +file(COPY ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libwebsockets) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/libwebsockets/LICENSE ${CURRENT_PACKAGES_DIR}/share/libwebsockets/copyright) +vcpkg_copy_pdbs() |
