all repos — mgba @ e2e0fe8f852b2c7bc81d8f3a272c5682a94e6de2

mGBA Game Boy Advance Emulator

3DS: Support debug libs
Vicki Pfau vi@endrift.com
Sat, 19 Aug 2017 15:59:17 -0700
commit

e2e0fe8f852b2c7bc81d8f3a272c5682a94e6de2

parent

86d094100c0b74316502195eb950d2f444fd6112

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/platform/3ds/CMakeLists.txtsrc/platform/3ds/CMakeLists.txt

@@ -13,7 +13,11 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format" PARENT_SCOPE)

set(OS_DEFINES COLOR_16_BIT COLOR_5_6_5 IOAPI_NO_64) include_directories(${CMAKE_CURRENT_BINARY_DIR}) -list(APPEND OS_LIB citro3d ctru) +if(${CMAKE_BUILD_TYPE} STREQUAL Debug OR ${CMAKE_BUILD_TYPE} STREQUAL RelWithDebInfo) + list(APPEND OS_LIB citro3dd ctrud) +else() + list(APPEND OS_LIB citro3d ctru) +endif() file(GLOB OS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/3ds-*.c ${CMAKE_CURRENT_SOURCE_DIR}/ctru-heap.c ${CMAKE_CURRENT_SOURCE_DIR}/socket.c) set(OS_SRC ${OS_SRC} PARENT_SCOPE) set(OS_LIB ${OS_LIB} PARENT_SCOPE)