Add debug symbols.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-08-16 18:03:26 +02:00
parent cd4893936e
commit 0983658913
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 10 additions and 6 deletions

View File

@ -41,6 +41,11 @@ foreach (_conanLib ${CONAN_LIBS})
message(STATUS "\t ${_conanLib}")
endforeach ()
if (NOT WINDOWS)
# Include debug symbols in all linux builds
add_compile_options(-g -gfull -g3)
endif ()
# Set whether we want a static or shared library.
set(LIBTYPE STATIC)
if (SHARED)
@ -75,16 +80,12 @@ add_library(pkmnLib ${LIBTYPE} ${CORE_SRC_FILES})
SET(_LINKS CreatureLib Arbutils)
SET(_TESTLINKS pkmnLib CreatureLib Arbutils)
if (NOT WINDOWS)
set(_LINKS ${_LINKS} -lbfd -ldl)
endif ()
if (SCRIPT_PROVIDER STREQUAL "angelscript")
message(STATUS "Using Angelscript as script provider.")
ADD_DEFINITIONS(-D ANGELSCRIPT=1)
SET(_LINKS angelscript ${_LINKS})
SET(_TESTLINKS angelscript ${_TESTLINKS})
SET(_LINKS ${_LINKS} angelscript)
SET(_TESTLINKS ${_TESTLINKS} angelscript)
endif ()
# If we are building for Windows we need to set some specific variables.
@ -97,6 +98,9 @@ if (WINDOWS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-allow-multiple-definition")
endif (WINDOWS)
if (NOT WINDOWS)
set(_LINKS ${_LINKS} -ldw)
endif ()
if (STATICC)
message(STATUS "Linking C library statically")