2018-03-25 22:07:02 +00:00
|
|
|
|
2018-03-24 11:44:53 +00:00
|
|
|
set(LIBRETRO_SRCS
|
2018-03-25 22:07:02 +00:00
|
|
|
libretro.cpp
|
|
|
|
LibretroGraphicsContext.cpp
|
|
|
|
LibretroGLContext.cpp
|
2020-09-27 13:24:17 +00:00
|
|
|
LibretroGLCoreContext.cpp
|
2018-03-25 22:07:02 +00:00
|
|
|
LibretroVulkanContext.cpp
|
|
|
|
libretro_vulkan.cpp)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set(LIBRETRO_SRCS ${LIBRETRO_SRCS}
|
|
|
|
LibretroD3D11Context.cpp)
|
|
|
|
endif()
|
2018-03-24 11:44:53 +00:00
|
|
|
|
|
|
|
include_directories(libretro)
|
|
|
|
|
|
|
|
add_library(ppsspp_libretro SHARED ${LIBRETRO_SRCS})
|
|
|
|
set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}")
|
|
|
|
set_target_properties(ppsspp_libretro PROPERTIES PREFIX "")
|
|
|
|
if(ANDROID)
|
|
|
|
set_target_properties(ppsspp_libretro PROPERTIES SUFFIX "_android.so")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT MSVC)
|
2023-01-31 04:33:40 +00:00
|
|
|
if (APPLE OR IOS)
|
2023-02-01 07:02:09 +00:00
|
|
|
target_link_libraries(ppsspp_libretro "-Wl,-exported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/libretro.osx.def")
|
2022-12-06 17:23:09 +00:00
|
|
|
else()
|
|
|
|
target_link_libraries(ppsspp_libretro "-Wl,-Bsymbolic")
|
|
|
|
endif()
|
2018-03-24 11:44:53 +00:00
|
|
|
endif()
|
|
|
|
target_link_libraries(ppsspp_libretro ${LinkCommon})
|