mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 01:30:27 +08:00
119bd592c3
### Change - Upgrade `perfetto` version to [v44.0](https://github.com/google/perfetto/releases/tag/v44.0) - Remove dependency `pthread` because the lib is a system library which just requires the `find_package` and will only be used on NON-WINDOWS. The checks in upstream [perfetto/ext/base/thread_checker.h#L22-L24](https://github.com/google/perfetto/blob/v44.0/include/perfetto/ext/base/thread_checker.h#L22-L24) - Remove the `x86` exclusion from https://github.com/microsoft/vcpkg/pull/37959#discussion_r1556850729 ### Checklist - [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. - [x] 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. ### Test Port usage tests pass with following triplets: * x64-linux * x64-windows * x64-windows-static * x64-windows-static-md * x86-windows
29 lines
736 B
CMake
29 lines
736 B
CMake
if (VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/perfetto
|
|
REF "v${VERSION}"
|
|
SHA512 890d749be738ed7dd20ff18c190b66f1738d1e43ba64e4001cc9f49ca478710a9f5d316346ae33a2a1d66dde1e45843f2228ea785b32b7443b7a96f82cf5f6a1
|
|
HEAD_REF main
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|