mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 04:09:01 +08:00
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 9ad6f314e6e56558f7062290afef840d81689776bf3a31708a61fef9ea8d80ac00892b5316856adc784b17e71c67a8429500602b301958ccba24fc4a3b6ac6f8
|
||
|
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")
|