Skip to content

Commit

Permalink
build: Generate pdb file for libpl, significantly reduce binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jan 5, 2025
1 parent f96c51e commit f7fa305
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/build_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -802,14 +802,16 @@ function(generatePDBs)
)
FetchContent_Populate(cv2pdb)

set(PDBS_TO_GENERATE main main-forwarder libimhex ${PLUGINS})
set(PDBS_TO_GENERATE main main-forwarder libimhex ${PLUGINS} libpl)
foreach (PDB ${PDBS_TO_GENERATE})
if (PDB STREQUAL "main")
set(GENERATED_PDB imhex)
elseif (PDB STREQUAL "main-forwarder")
set(GENERATED_PDB imhex-gui)
elseif (PDB STREQUAL "libimhex")
set(GENERATED_PDB libimhex)
elseif (PDB STREQUAL "libpl")
set(GENERATED_PDB libpl)
else ()
set(GENERATED_PDB plugins/${PDB})
endif ()
Expand Down

0 comments on commit f7fa305

Please sign in to comment.