[libusb] Use /Z7 to embed the PDB into the executable (#33010)

This commit is contained in:
MonicaLiu 2023-08-08 11:40:51 -07:00 committed by GitHub
parent 2ad5618a7a
commit 247662ef30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View File

@ -26,6 +26,13 @@ function(replace_runtime_library PROJ_FILE)
endfunction(replace_runtime_library)
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
# Use /Z7 to embed debug information into the executable
vcpkg_replace_string(
"${SOURCE_PATH}/msvc/Base.props"
"<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>"
"<DebugInformationFormat>OldStyle</DebugInformationFormat>"
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
set(LIBUSB_PROJECT_TYPE dll)
else()

View File

@ -1,7 +1,7 @@
{
"name": "libusb",
"version": "1.0.26.11791",
"port-version": 1,
"port-version": 2,
"description": "a cross-platform library to access USB devices",
"homepage": "https://github.com/libusb/libusb",
"license": "LGPL-2.1-or-later",

View File

@ -4750,7 +4750,7 @@
},
"libusb": {
"baseline": "1.0.26.11791",
"port-version": 1
"port-version": 2
},
"libusb-win32": {
"baseline": "1.2.6.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "87cd196b403364febf719d64fe6f08ab0bf6b285",
"version": "1.0.26.11791",
"port-version": 2
},
{
"git-tree": "653d47743e90abaa28a3d17b49fe479a0096f8ef",
"version": "1.0.26.11791",