Build with debug info and package PDB

This commit is contained in:
Oliver Hamlet
2018-05-12 19:26:21 +01:00
parent bcc536d4b0
commit e06227f437
2 changed files with 13 additions and 5 deletions
+10 -2
View File
@@ -128,12 +128,20 @@ add_custom_command(TARGET loot_api POST_BUILD
install(TARGETS loot_api
DESTINATION "."
CONFIGURATIONS Release)
CONFIGURATIONS Release RelWithDebInfo)
install(FILES "${LOOT_API_EXTRACTED_PATH}/${LOOT_API_SHARED_LIBRARY}"
"${CMAKE_SOURCE_DIR}/docs/README.md"
DESTINATION "."
CONFIGURATIONS Release)
CONFIGURATIONS Release RelWithDebInfo)
IF (MSVC)
install(FILES $<TARGET_PDB_FILE:loot_api>
DESTINATION .
OPTIONAL
CONFIGURATIONS RelWithDebInfo
RENAME loot_api_python.pdb)
ENDIF ()
########################################
# CPack
+3 -3
View File
@@ -2,7 +2,7 @@ os: Visual Studio 2015
version: "{build}-{branch}"
configuration: Release
configuration: RelWithDebInfo
environment:
bintray_auth_token:
@@ -22,12 +22,12 @@ build:
project: 'c:\projects\loot-api-python\build\loot_api_python.sln'
test_script:
- cd %APPVEYOR_BUILD_FOLDER%\build\Release
- cd %APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION%
- python -m unittest test
after_test:
- cd %APPVEYOR_BUILD_FOLDER%\build
- cpack
- cpack -C %CONFIGURATION%
# AppVeyor checks out a specific commit, but that means the archive script
# can't tell which branch it's on, so rename the 7z archives.
- ps: $env:GIT_DESCRIBE = ((git describe --tags --long --always) | Out-String) -replace "`n|`r", ""