mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 05:29:15 +08:00
4bd5a2954e
Bug-fix update. - [ 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. - [ X] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [ X] 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.
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
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 b296ad3ee102d45cd8bccb2e3ed478f3d7adff8b3650251926189fd6efbca38728db61208af1627c08c16641b349e31e9366c6bc1965795063f39a167181f067
|
|
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")
|