vcpkg/ports/fizz/portfile.cmake
Cheney Wang 16e95cee85
[folly related] update to 05.20 (#38931)
Update `folly` and its related ports to the latest version
`2024.05.20.00`.

The recent update to `folly` includes this commit:
99767aa88e,
which caused downstream `rsocket` to fail with the following error
during build.
```
vcpkg\rsocket\src\84ec7fc921-d730564084\rsocket\RSocketServer.cpp(32): error C2665: 'folly::ThreadLocal<rsocket::SetupResumeAcceptor,rsocket::RSocketServer::SetupResumeAcceptorTag,void>::ThreadLocal': no overloaded function could convert all the argument types
```
A patch has now been submitted to fix this issue.
- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [ ] ~The "supports" clause reflects platforms that may be fixed by
this new version.~
- [ ] ~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~
- [ ] ~Any patches that are no longer applied are deleted from the
port's directory.~
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
2024-05-29 01:51:10 -07:00

44 lines
1.4 KiB
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebookincubator/fizz
REF "v${VERSION}"
SHA512 b4242fbbab4954588cfc3daf4a29891f9267ac12ac07ef7b45f547ee6d00a47f9c8fe7df1ecbaad2d75f4449db07a268431482c9ea1248979d0fe4b2ba6fb6e7
HEAD_REF main
PATCHES
fix-build.patch
)
# Prefer installed config files
file(REMOVE
"${SOURCE_PATH}/fizz/cmake/FindGMock.cmake"
"${SOURCE_PATH}/fizz/cmake/FindGflags.cmake"
"${SOURCE_PATH}/fizz/cmake/FindGlog.cmake"
"${SOURCE_PATH}/fizz/cmake/FindLibevent.cmake"
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/fizz"
OPTIONS
-DBUILD_TESTS=OFF
-DBUILD_EXAMPLES=OFF
-DINCLUDE_INSTALL_DIR:STRING=include
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/fizz)
vcpkg_copy_pdbs()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/fizz/fizz-config.cmake" "lib/cmake/fizz" "share/fizz")
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/include/fizz/crypto/aead/test/facebook"
"${CURRENT_PACKAGES_DIR}/include/fizz/record/test/facebook"
"${CURRENT_PACKAGES_DIR}/include/fizz/server/test/facebook"
"${CURRENT_PACKAGES_DIR}/include/fizz/tool/test"
"${CURRENT_PACKAGES_DIR}/include/fizz/util/test")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")