vcpkg/ports/libeventheader-tracepoint/portfile.cmake

38 lines
1.1 KiB
CMake
Raw Normal View History

if(VCPKG_TARGET_IS_WINDOWS)
set(VCPKG_BUILD_TYPE release) # Windows port only includes headers.
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO "microsoft/LinuxTracepoints"
REF "v${VERSION}"
SHA512 d2126bb8e89c952630e22d66f0c9f2be7e46debd8f8dbc27f3a886af77cf4c1d9c3efcf3b7cae886feacfb9fe142355b26a3fb468c9b3582d65eb16f4dc6c288
HEAD_REF main)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/libeventheader-tracepoint"
OPTIONS
-DBUILD_SAMPLES=OFF
-DBUILD_TOOLS=OFF)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
if(NOT VCPKG_TARGET_IS_WINDOWS)
vcpkg_cmake_config_fixup(
PACKAGE_NAME eventheader-tracepoint
CONFIG_PATH lib/cmake/eventheader-tracepoint
DO_NOT_DELETE_PARENT_CONFIG_PATH)
endif()
vcpkg_cmake_config_fixup(
PACKAGE_NAME eventheader-headers
CONFIG_PATH lib/cmake/eventheader-headers)
if(VCPKG_TARGET_IS_WINDOWS)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")