set(debug_SRCS
        debug.hpp
        DebugPlayer.cpp
        DebugPlayer.hpp
        ExceptionHandler.hpp
        ExceptionHandler.cpp
        FileLog.hpp
        FileLog.cpp
        TraceLog.hpp
        TraceLog.cpp
        PrefixLog.hpp
        PrefixLog.cpp
        PrintLog.hpp
        PrintLog.cpp
        ThreadGuard.hpp
        ThreadGuard.cpp
        trace.hpp
        TraceCall.cpp
        TraceCall.hpp
)

if (TARGET_PLATFORM STREQUAL "WinStore" OR TARGET_PLATFORM STREQUAL "XboxOne" OR TARGET_PLATFORM STREQUAL "PS4" OR TARGET_PLATFORM STREQUAL "AppleTV" OR TARGET_PLATFORM STREQUAL "Win64")
  set(debugSpecialization_SRCS debug.cpp)
else()
  set(debugSpecialization_SRCS debugstub.cpp)
endif()

add_submodule(debug2
  SOURCES
    ${debugSpecialization_SRCS}
	${debug_SRCS}
  LINK_LIBRARIES
    json11
    mediaplayer
)
