1
0
mirror of synced 2025-01-18 09:04:52 +01:00

build: More pdb gen fixes

This commit is contained in:
WerWolv 2023-06-23 23:20:56 +02:00
parent 2c6f1503ef
commit 35d2fda0a4

View File

@ -590,10 +590,12 @@ function(generatePDBs)
set(PDBS_TO_GENERATE main libimhex ${PLUGINS}) set(PDBS_TO_GENERATE main libimhex ${PLUGINS})
add_custom_target(pdbs) add_custom_target(pdbs)
foreach (PDB ${PDBS_TO_GENERATE}) foreach (PDB ${PDBS_TO_GENERATE})
if (PDB STREQUAL "main") if (PDB STREQUAL "libimhex")
set(GENERATED_PDB imhex) set(GENERATED_PDB libimhex.dll)
elseif (PDB STREQUAL "main")
set(GENERATED_PDB imhex.exe)
else () else ()
set(GENERATED_PDB ${PDB}) set(GENERATED_PDB plugins/${PDB}.hexplug)
endif () endif ()
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb
@ -606,7 +608,8 @@ function(generatePDBs)
DEPENDS $<TARGET_FILE:${PDB}> DEPENDS $<TARGET_FILE:${PDB}>
COMMAND_EXPAND_LISTS) COMMAND_EXPAND_LISTS)
target_sources(imhex_all PRIVATE $<TARGET_FILE:${PDB}>.pdb) add_custom_target(${PDB}_pdb DEPENDS ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb)
add_dependencies(imhex_all ${PDB}_pdb)
install(FILES $<TARGET_FILE:${PDB}>.pdb DESTINATION ".") install(FILES $<TARGET_FILE:${PDB}>.pdb DESTINATION ".")
endforeach () endforeach ()