diff --git a/ports/mvfst/portfile.cmake b/ports/mvfst/portfile.cmake new file mode 100644 index 00000000000000..16acf66fa5043f --- /dev/null +++ b/ports/mvfst/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_fail_port_install(ON_TARGET "Windows") + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO facebookincubator/mvfst + REF 531b935a + SHA512 47683907e5c19aa7392bffc0f23378636e73e03bbbd598640d20042234a9385ac7ca2fb8202905e1c101713bfb3467df78b12fd1629ca83a3ccf2bae2f58a2e1 + HEAD_REF main +) + + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTS=OFF + -DBUILD_EXAMPLES=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mvfst) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + diff --git a/ports/mvfst/vcpkg.json b/ports/mvfst/vcpkg.json new file mode 100644 index 00000000000000..7aec0054bd2489 --- /dev/null +++ b/ports/mvfst/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "mvfst", + "version": "0.1", + "description": "mvfst (Pronounced move fast) is a client and server implementation of IETF QUIC protocol in C++ by Facebook.", + "homepage": "https://github.com/facebookincubator/mvfst", + "supports": "!windows", + "dependencies": [ + "boost", + "fizz", + "fmt", + "folly", + "glog", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 8f110801d4c84c..51480c0e4a7189 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4600,6 +4600,10 @@ "baseline": "2016-01-09", "port-version": 4 }, + "mvfst": { + "baseline": "0.1", + "port-version": 0 + }, "mygui": { "baseline": "3.4.1", "port-version": 0 diff --git a/versions/m-/mvfst.json b/versions/m-/mvfst.json new file mode 100644 index 00000000000000..2bf6bed18a48de --- /dev/null +++ b/versions/m-/mvfst.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "9af76c6cd8bea86bff84e5ccddc9f9e39290391e", + "version": "0.1", + "port-version": 0 + } + ] +}