-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[d3d12-transition-layer,winpixeventruntime] Support
pix
feature (#185)
* [winpixeventruntime] create a new port * [winpixeventruntime] update baseline * ci: test winpixeventruntime * [d3d12-transition-layer] update to latest, support features * use winpixeventruntime * [d3d12-transition-layer] update baseline * ci: test d3d12-transition-layer[pix]
- Loading branch information
Showing
9 changed files
with
130 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT) | ||
vcpkg_find_acquire_program(NUGET) | ||
|
||
set(ENV{NUGET_PACKAGES} "${BUILDTREES_DIR}/nuget") | ||
|
||
# https://devblogs.microsoft.com/pix/pix-2403/ | ||
# see https://www.nuget.org/packages/WinPixEventRuntime/ | ||
set(PACKAGE_NAME "WinPixEventRuntime") | ||
set(PACKAGE_VERSION "1.0.231030001") | ||
|
||
file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/${PACKAGE_NAME}") | ||
vcpkg_execute_required_process( | ||
COMMAND ${NUGET} install "${PACKAGE_NAME}" -Version "${PACKAGE_VERSION}" -Verbosity detailed | ||
-OutputDirectory "${CURRENT_BUILDTREES_DIR}" | ||
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}" | ||
LOGNAME install-nuget | ||
) | ||
|
||
get_filename_component(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/${PACKAGE_NAME}.${PACKAGE_VERSION}" ABSOLUTE) | ||
if(VCPKG_TARGET_IS_WINDOWS) | ||
if(NOT ((VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") OR (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64"))) | ||
message(WARNING "The architecture '${VCPKG_TARGET_ARCHITECTURE}' is not expected") | ||
endif() | ||
else() | ||
message(FATAL_ERROR "The triplet '${TARGET_TRIPLET}' is not supported") | ||
endif() | ||
|
||
if(VCPKG_TARGET_IS_WINDOWS) | ||
file(INSTALL "${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}/WinPixEventRuntime.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib") | ||
file(INSTALL "${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}/WinPixEventRuntime.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin") | ||
file(INSTALL "${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}/WinPixEventRuntime_UAP.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib") | ||
file(INSTALL "${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}/WinPixEventRuntime_UAP.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin") | ||
else() | ||
message(FATAL_ERROR "The target platform is not supported") | ||
endif() | ||
|
||
file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include") | ||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") | ||
|
||
file(INSTALL "${SOURCE_PATH}/ThirdPartyNotices.txt" | ||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" | ||
) | ||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license.txt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "winpixeventruntime", | ||
"version-semver": "1.0.231030001", | ||
"description": "llows applications to be instrumented with marker events, for use with Microsoft PIX.", | ||
"homepage": "https://devblogs.microsoft.com/pix/winpixeventruntime/", | ||
"license": null, | ||
"supports": "windows & (x64 | arm64)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"versions": [ | ||
{ | ||
"git-tree": "45169fcf58e8790c6f3b27c422f345bfc8d55b8d", | ||
"version-semver": "1.0.231030001", | ||
"port-version": 0 | ||
} | ||
] | ||
} |