mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00

Some checks failed
Build macOS / build_macos (push) Has been cancelled
Build Android / build_android (apk) (push) Has been cancelled
Build Android / build_android (libretro) (push) Has been cancelled
Build Linux ARM32 / build_linux_arm32 (push) Has been cancelled
Build Linux ARM64 / build_linux_arm64 (push) Has been cancelled
Build Windows Psf / build_windows_psf (off, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Build Windows Psf / build_windows_psf (on, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Build Windows / build_windows (x86_32, Visual Studio 16 2019, installer32.nsi, win32_msvc2019, Win32) (push) Has been cancelled
Build Windows / build_windows (x86_64, Visual Studio 16 2019, installer64.nsi, win64_msvc2019_64, x64) (push) Has been cancelled
Check Format / run_clangformat (push) Has been cancelled
Build iOS / build_ios (push) Has been cancelled
Build JavaScript / build_js (push) Has been cancelled
Build Linux / build_linux (push) Has been cancelled
103 lines
2.2 KiB
CMake
103 lines
2.2 KiB
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
set(CMAKE_MODULE_PATH
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../../deps/Dependencies/cmake-modules
|
|
${CMAKE_MODULE_PATH}
|
|
)
|
|
include(Header)
|
|
|
|
project(PsfCore)
|
|
|
|
set(PSF_PROJECT_NAME "PsfPlayer")
|
|
set(PSF_PROJECT_VERSION "1.05")
|
|
set(PSF_RAR_SUPPORT ON)
|
|
|
|
if(NOT TARGET PlayCore)
|
|
add_subdirectory(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../../Source
|
|
${CMAKE_CURRENT_BINARY_DIR}/PlayCore
|
|
)
|
|
endif()
|
|
list(APPEND PSFCORE_PROJECT_LIBS PlayCore)
|
|
|
|
if(PSF_RAR_SUPPORT)
|
|
if(NOT TARGET unrar)
|
|
add_subdirectory(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../../deps/Dependencies/build_cmake/unrarsrc-5.2.5
|
|
${CMAKE_CURRENT_BINARY_DIR}/unrarsrc-5.2.5
|
|
)
|
|
endif()
|
|
list(APPEND PSFCORE_PROJECT_LIBS unrar)
|
|
endif()
|
|
|
|
##PsfPlayerCore
|
|
set(PSFCORE_SRC_FILES
|
|
AppDef.cpp
|
|
AppDef.h
|
|
Iop_PsfSubSystem.cpp
|
|
Iop_PsfSubSystem.h
|
|
PlaybackController.cpp
|
|
PlaybackController.h
|
|
Playlist.cpp
|
|
Playlist.h
|
|
PlaylistDiscoveryService.cpp
|
|
PlaylistDiscoveryService.h
|
|
ps2/Ps2_PsfDevice.cpp
|
|
ps2/Ps2_PsfDevice.h
|
|
PsfArchive.cpp
|
|
PsfArchive.h
|
|
PsfBase.cpp
|
|
PsfBase.h
|
|
PsfFs.cpp
|
|
PsfFs.h
|
|
PsfLoader.cpp
|
|
PsfLoader.h
|
|
PsfPathToken.cpp
|
|
PsfPathToken.h
|
|
PsfStreamProvider.cpp
|
|
PsfStreamProvider.h
|
|
PsfTags.cpp
|
|
PsfTags.h
|
|
PsfVm.cpp
|
|
PsfVm.h
|
|
PsfZipArchive.cpp
|
|
PsfZipArchive.h
|
|
psp/MA_ALLEGREX.cpp
|
|
psp/MA_ALLEGREX.h
|
|
psp/MA_ALLEGREX_Reflection.cpp
|
|
psp/Psp_Audio.cpp
|
|
psp/Psp_Audio.h
|
|
psp/Psp_IoDevice.h
|
|
psp/Psp_IoFileMgrForUser.cpp
|
|
psp/Psp_IoFileMgrForUser.h
|
|
psp/Psp_KernelLibrary.cpp
|
|
psp/Psp_KernelLibrary.h
|
|
psp/Psp_PsfBios.cpp
|
|
psp/Psp_PsfBios.h
|
|
psp/Psp_PsfDevice.cpp
|
|
psp/Psp_PsfDevice.h
|
|
psp/Psp_PsfSubSystem.cpp
|
|
psp/Psp_PsfSubSystem.h
|
|
psp/Psp_SasCore.cpp
|
|
psp/Psp_SasCore.h
|
|
psp/Psp_StdioForUser.cpp
|
|
psp/Psp_StdioForUser.h
|
|
psp/Psp_SysMemUserForUser.cpp
|
|
psp/Psp_SysMemUserForUser.h
|
|
psp/Psp_ThreadManForUser.cpp
|
|
psp/Psp_ThreadManForUser.h
|
|
psp/Psp_UmdUser.cpp
|
|
psp/Psp_UmdUser.h
|
|
psp/PspBios.cpp
|
|
psp/PspBios.h
|
|
)
|
|
|
|
if(PSF_RAR_SUPPORT)
|
|
list(APPEND PSFCORE_SRC_FILES PsfRarArchive.cpp)
|
|
list(APPEND PSFCORE_DEFINITIONS_LIST -DRAR_SUPPORT)
|
|
endif()
|
|
|
|
add_library(PsfCore STATIC ${PSFCORE_SRC_FILES})
|
|
target_link_libraries(PsfCore ${PSFCORE_PROJECT_LIBS})
|
|
target_include_directories(PsfCore PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_compile_definitions(PsfCore PRIVATE ${PSFCORE_DEFINITIONS_LIST})
|