2023-05-24 12:10:01 -07:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO "microsoft/LinuxTracepoints"
|
2023-10-16 20:05:06 +01:00
|
|
|
REF "v${VERSION}"
|
2024-06-24 18:14:14 -07:00
|
|
|
SHA512 baf27c967b2fa1fb8e8684951fd8e12e40fe9c23f5052a2d77c63eceab6ddfc112537422b97c37cfb0e479361fa8aedea6d8d7edfae91810f1ed696060fcb822
|
2023-05-24 12:10:01 -07:00
|
|
|
HEAD_REF main)
|
|
|
|
|
2024-06-24 18:14:14 -07:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tools BUILD_TOOLS
|
|
|
|
)
|
|
|
|
|
2023-05-24 12:10:01 -07:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/libeventheader-decode-cpp"
|
|
|
|
OPTIONS
|
2024-06-24 18:14:14 -07:00
|
|
|
${FEATURE_OPTIONS}
|
2023-05-24 12:10:01 -07:00
|
|
|
-DBUILD_SAMPLES=OFF
|
2024-06-24 18:14:14 -07:00
|
|
|
)
|
2023-05-24 12:10:01 -07:00
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
|
2024-06-24 18:14:14 -07:00
|
|
|
if (BUILD_TOOLS)
|
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES perf-decode
|
|
|
|
AUTO_CLEAN)
|
|
|
|
endif()
|
|
|
|
|
2023-05-24 12:10:01 -07:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
PACKAGE_NAME eventheader-decode
|
|
|
|
CONFIG_PATH lib/cmake/eventheader-decode)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|