Re-add libretro core

This commit is contained in:
Connor McLaughlin
2021-05-10 13:36:00 +10:00
parent d38a1c9430
commit 1392a64a93
6 changed files with 62 additions and 6 deletions

View File

@ -1,10 +1,16 @@
if(BUILD_LIBRETRO_CORE)
add_definitions("-DLIBRETRO=1")
endif()
add_subdirectory(common)
add_subdirectory(core)
add_subdirectory(scmversion)
add_subdirectory(common-tests)
if(WIN32)
add_subdirectory(updater)
if(NOT BUILD_LIBRETRO_CORE)
add_subdirectory(common-tests)
if(WIN32)
add_subdirectory(updater)
endif()
endif()
add_subdirectory(frontend-common)
@ -16,3 +22,8 @@ endif()
if(BUILD_QT_FRONTEND)
add_subdirectory(duckstation-qt)
endif()
if(BUILD_LIBRETRO_CORE)
add_subdirectory(duckstation-libretro)
endif()

View File

@ -222,6 +222,9 @@ endif()
if(APPLE)
# Needed for Vulkan Swap Chain.
target_link_libraries(common PRIVATE "objc")
endif()
if(APPLE AND NOT BUILD_LIBRETRO_CORE)
target_sources(common PRIVATE
gl/context_agl.mm
gl/context_agl.h

View File

@ -124,7 +124,9 @@ bool InitializeGlslang()
return false;
}
#ifndef LIBRETRO
std::atexit([]() { glslang::FinalizeProcess(); });
#endif
glslang_initialized = true;
return true;

View File

@ -13,6 +13,7 @@ struct WindowInfo
MacOS,
Android,
Display,
Libretro,
};
enum class SurfaceFormat