Skip to content

Commit 06b5b7f

Browse files
Include Win32 loader symbols in release artifact (#225)
* Copy openxr_loader PDB to install folder when building as a DLL for automatic inclusion in the release artifacts.
1 parent 8e62df7 commit 06b5b7f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.azure-pipelines/build_jobs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ jobs:
9898
- download: current
9999
patterns: "**/*.dll"
100100
displayName: Download dynamic libraries
101+
- download: current
102+
patterns: "**/*.pdb"
103+
displayName: Download dynamic library symbols
101104
- download: current
102105
patterns: "**/*.lib"
103106
displayName: Download link import libraries
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Include PDB symbols to go along with the openxr_loader.dll Windows artifacts.

src/loader/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ install(
283283
DESTINATION ${TARGET_DESTINATION}
284284
)
285285

286+
if(WIN32 AND DYNAMIC_LOADER)
287+
install(FILES $<TARGET_PDB_FILE:openxr_loader> DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
288+
endif()
286289

287290
# Make the "meta" cmake config/version file to redirect to the right arch/build
288291
if(WIN32 AND INSTALL_TO_ARCHITECTURE_PREFIXES)

0 commit comments

Comments
 (0)