mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Build LOOT API with debug info on Windows and package pdb
This commit is contained in:
+9
-1
@@ -331,8 +331,9 @@ IF (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
ENDIF ()
|
||||
|
||||
IF (MSVC)
|
||||
# Set /bigobj to allow building Debug tests
|
||||
# Set /bigobj to allow building Debug and RelWithDebInfo tests
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
|
||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /bigobj")
|
||||
|
||||
# Update compiler flags.
|
||||
IF (MSVC_STATIC_RUNTIME)
|
||||
@@ -421,6 +422,13 @@ add_custom_command(TARGET loot_api_tests POST_BUILD
|
||||
install(TARGETS loot_api
|
||||
DESTINATION ".")
|
||||
|
||||
IF (MSVC)
|
||||
install(FILES $<TARGET_PDB_FILE:loot_api>
|
||||
DESTINATION .
|
||||
OPTIONAL
|
||||
CONFIGURATIONS RelWithDebInfo)
|
||||
ENDIF ()
|
||||
|
||||
install(DIRECTORY "${CMAKE_SOURCE_DIR}/include"
|
||||
DESTINATION ".")
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ os: Visual Studio 2015
|
||||
|
||||
version: "{build}-{branch}"
|
||||
|
||||
configuration: Release
|
||||
configuration: RelWithDebInfo
|
||||
|
||||
platform:
|
||||
- Win32
|
||||
@@ -55,7 +55,7 @@ after_test:
|
||||
- C:\Python27\Scripts\sphinx-build -b html docs build\docs\html
|
||||
- ps: $env:GIT_DESCRIBE = ((git describe --tags --long --always --abbrev=7) | Out-String) -replace "`n|`r", ""
|
||||
- cd build
|
||||
- cpack
|
||||
- cpack -C %CONFIGURATION%
|
||||
|
||||
artifacts:
|
||||
- path: build\package\loot_api-$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH)-win$(ADDRESS_MODEL).7z
|
||||
|
||||
Reference in New Issue
Block a user