mirror of
https://github.com/loot/libloot-python.git
synced 2026-07-27 14:14:13 -07:00
Build with debug info and package PDB
This commit is contained in:
+10
-2
@@ -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
@@ -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", ""
|
||||
|
||||
Reference in New Issue
Block a user