diff options
| author | Phil Christensen <philc@microsoft.com> | 2019-02-28 14:36:23 -0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-02-28 14:36:23 -0800 |
| commit | 773c8267dfb506f41c204f61042f30b6143a8095 (patch) | |
| tree | 5946d1526c3ad77a2df80786a1370d96389d931b /ports/fizz | |
| parent | 6afbceb27fd2aa39c66f810a22f5d4ad97575110 (diff) | |
| parent | 7859944528be28bee1fda9f325b78d6a7f02124e (diff) | |
| download | vcpkg-773c8267dfb506f41c204f61042f30b6143a8095.tar.gz vcpkg-773c8267dfb506f41c204f61042f30b6143a8095.zip | |
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/4564
Diffstat (limited to 'ports/fizz')
| -rw-r--r-- | ports/fizz/CONTROL | 4 | ||||
| -rw-r--r-- | ports/fizz/depend-zlib.patch | 20 | ||||
| -rw-r--r-- | ports/fizz/portfile.cmake | 42 |
3 files changed, 66 insertions, 0 deletions
diff --git a/ports/fizz/CONTROL b/ports/fizz/CONTROL new file mode 100644 index 000000000..9456fdb71 --- /dev/null +++ b/ports/fizz/CONTROL @@ -0,0 +1,4 @@ +Source: fizz
+Version: 2019.01.14.00
+Build-Depends: folly, openssl, libsodium, zlib
+Description: a TLS 1.3 implementation by Facebook
diff --git a/ports/fizz/depend-zlib.patch b/ports/fizz/depend-zlib.patch new file mode 100644 index 000000000..6e574b62e --- /dev/null +++ b/ports/fizz/depend-zlib.patch @@ -0,0 +1,20 @@ +diff --git a/fizz/CMakeLists.txt b/fizz/CMakeLists.txt
+index ab3b48f..c84890e 100644
+--- a/fizz/CMakeLists.txt
++++ b/fizz/CMakeLists.txt
+@@ -35,6 +35,7 @@ endif()
+
+ find_package(Boost REQUIRED COMPONENTS system thread filesystem regex context)
+ find_package(OpenSSL REQUIRED)
++find_package(ZLIB REQUIRED)
+ find_package(Glog REQUIRED)
+ find_package(Gflags REQUIRED)
+ find_package(Libevent REQUIRED)
+@@ -169,6 +170,7 @@ target_link_libraries(fizz
+ ${FOLLY_LIBRARIES}
+ ${Boost_LIBRARIES}
+ ${OPENSSL_LIBRARIES}
++ ${ZLIB_LIBRARIES}
+ # Don't use the sodium target here because it will break clients that
+ # consume fizz's exported targets (fizz-targets.cmake) since the sodium
+ # target is not exported.
diff --git a/ports/fizz/portfile.cmake b/ports/fizz/portfile.cmake new file mode 100644 index 000000000..add950fe3 --- /dev/null +++ b/ports/fizz/portfile.cmake @@ -0,0 +1,42 @@ +include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO facebookincubator/fizz
+ REF v2019.01.14.00
+ SHA512 9182e5e6eb795842fdc536adaae9aeae7ddd17a34776bda303015dbac95c95a1ceb42ea77c3b69c1018a9ea33bbd469fd23955ac7efcc2bfcc84e899c89b5981
+ HEAD_REF master
+ PATCHES depend-zlib.patch
+)
+
+# Prefer installed config files
+file(REMOVE
+ ${SOURCE_PATH}/fizz/cmake/FindGflags.cmake
+ ${SOURCE_PATH}/fizz/cmake/FindLibevent.cmake
+ ${SOURCE_PATH}/fizz/cmake/FindGlog.cmake
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH "${SOURCE_PATH}/fizz"
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_TESTS=OFF
+ -DINCLUDE_INSTALL_DIR:STRING=include
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/fizz")
+vcpkg_copy_pdbs()
+
+file(READ ${CURRENT_PACKAGES_DIR}/share/fizz/fizz-config.cmake _contents)
+string(REPLACE "lib/cmake/fizz" "share/fizz" _contents "${_contents}")
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/fizz/fizz-config.cmake "${_contents}")
+
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug/include
+)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/fizz RENAME copyright)
|
