2019-08-17 16:08:47 +02:00
|
|
|
|
add_library(rpcs3_emu
|
2019-07-27 00:34:10 +02:00
|
|
|
|
IdManager.cpp
|
|
|
|
|
|
System.cpp
|
|
|
|
|
|
VFS.cpp
|
2019-10-08 02:19:59 +02:00
|
|
|
|
GDB.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
target_link_libraries(rpcs3_emu
|
|
|
|
|
|
PRIVATE
|
2018-09-18 17:06:49 +02:00
|
|
|
|
3rdparty::zlib 3rdparty::yaml-cpp
|
|
|
|
|
|
PUBLIC
|
|
|
|
|
|
3rdparty::libevdev)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
2019-06-20 04:58:46 +02:00
|
|
|
|
|
|
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
|
target_link_libraries(rpcs3_emu
|
|
|
|
|
|
PUBLIC Threads::Threads)
|
|
|
|
|
|
|
2018-09-18 12:07:33 +02:00
|
|
|
|
# For stdafx.h
|
|
|
|
|
|
target_include_directories(rpcs3_emu
|
|
|
|
|
|
PUBLIC
|
|
|
|
|
|
${RPCS3_SRC_DIR})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Utilities
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
|
|
|
|
|
../util/atomic.cpp
|
2019-11-01 17:10:10 +01:00
|
|
|
|
../util/atomic2.cpp
|
2020-01-20 14:00:57 +01:00
|
|
|
|
../util/shared_cptr.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
../../Utilities/bin_patch.cpp
|
|
|
|
|
|
../../Utilities/cond.cpp
|
|
|
|
|
|
../../Utilities/Config.cpp
|
|
|
|
|
|
../../Utilities/dynamic_library.cpp
|
|
|
|
|
|
../../Utilities/File.cpp
|
|
|
|
|
|
../../Utilities/JIT.cpp
|
|
|
|
|
|
../../Utilities/Log.cpp
|
|
|
|
|
|
../../Utilities/LUrlParser.cpp
|
|
|
|
|
|
../../Utilities/mutex.cpp
|
|
|
|
|
|
../../Utilities/rXml.cpp
|
|
|
|
|
|
../../Utilities/sema.cpp
|
|
|
|
|
|
../../Utilities/StrFmt.cpp
|
|
|
|
|
|
../../Utilities/sysinfo.cpp
|
|
|
|
|
|
../../Utilities/Thread.cpp
|
|
|
|
|
|
../../Utilities/version.cpp
|
|
|
|
|
|
../../Utilities/VirtualMemory.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
target_include_directories(rpcs3_emu PUBLIC "${CMAKE_SOURCE_DIR}")
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(rpcs3_emu
|
|
|
|
|
|
PUBLIC
|
|
|
|
|
|
3rdparty::pugixml
|
2019-11-09 16:09:09 +01:00
|
|
|
|
3rdparty::span)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
2018-09-28 22:44:46 +02:00
|
|
|
|
if (MSVC)
|
|
|
|
|
|
set_source_files_properties("../../Utilities/JIT.cpp" PROPERTIES COMPILE_FLAGS /GR-)
|
|
|
|
|
|
else()
|
2018-09-28 22:20:38 +02:00
|
|
|
|
set_source_files_properties("../../Utilities/JIT.cpp" PROPERTIES COMPILE_FLAGS -fno-rtti)
|
|
|
|
|
|
endif()
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Crypto
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
|
|
|
|
|
../Crypto/aes.cpp
|
2018-07-05 03:45:32 +02:00
|
|
|
|
../Crypto/aesni.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
../Crypto/ec.cpp
|
|
|
|
|
|
../Crypto/key_vault.cpp
|
|
|
|
|
|
../Crypto/lz.cpp
|
2019-02-25 11:23:15 +01:00
|
|
|
|
../Crypto/md5.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
../Crypto/sha1.cpp
|
2019-09-11 09:55:43 +02:00
|
|
|
|
../Crypto/sha256.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
../Crypto/unedat.cpp
|
|
|
|
|
|
../Crypto/unpkg.cpp
|
|
|
|
|
|
../Crypto/unself.cpp
|
|
|
|
|
|
../Crypto/utils.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
# Loader
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
|
|
|
|
|
../Loader/ELF.cpp
|
|
|
|
|
|
../Loader/PSF.cpp
|
|
|
|
|
|
../Loader/PUP.cpp
|
|
|
|
|
|
../Loader/TAR.cpp
|
|
|
|
|
|
../Loader/TROPUSR.cpp
|
|
|
|
|
|
../Loader/TRP.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Audio
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
|
|
|
|
|
Audio/AudioDumper.cpp
|
|
|
|
|
|
Audio/AL/OpenALBackend.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
2019-11-01 17:13:24 +01:00
|
|
|
|
if(USE_ALSA)
|
|
|
|
|
|
find_package(ALSA)
|
|
|
|
|
|
if(ALSA_FOUND)
|
|
|
|
|
|
target_sources(rpcs3_emu PRIVATE Audio/ALSA/ALSABackend.cpp)
|
|
|
|
|
|
target_link_libraries(rpcs3_emu PUBLIC 3rdparty::alsa)
|
|
|
|
|
|
endif()
|
2019-10-27 23:49:31 +01:00
|
|
|
|
endif()
|
|
|
|
|
|
|
2019-11-01 17:13:24 +01:00
|
|
|
|
if(USE_PULSE AND PULSE_FOUND)
|
2019-10-27 23:49:31 +01:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE Audio/Pulse/PulseBackend.cpp)
|
|
|
|
|
|
target_link_libraries(rpcs3_emu PUBLIC 3rdparty::pulse)
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
2019-11-01 17:13:24 +01:00
|
|
|
|
if(USE_FAUDIO AND SDL2_FOUND AND NOT SDL2_VERSION VERSION_LESS 2.0.9)
|
2019-10-27 23:49:31 +01:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE Audio/FAudio/FAudioBackend.cpp)
|
|
|
|
|
|
target_link_libraries(rpcs3_emu PUBLIC 3rdparty::faudio)
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
2018-09-18 12:07:33 +02:00
|
|
|
|
if(WIN32)
|
2019-10-22 23:59:09 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
|
|
|
|
|
Audio/XAudio2/XAudio27Backend.cpp
|
|
|
|
|
|
Audio/XAudio2/XAudio28Backend.cpp
|
|
|
|
|
|
Audio/XAudio2/XAudio2Backend.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
# Slimmed down version of minidx9 for XAudio2_7 only
|
|
|
|
|
|
include_directories(BEFORE "${RPCS3_SRC_DIR}/../3rdparty/XAudio2_7")
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(rpcs3_emu
|
2018-09-18 17:06:49 +02:00
|
|
|
|
PUBLIC
|
2019-10-27 23:49:31 +01:00
|
|
|
|
3rdparty::openal)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Cell
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
|
|
|
|
|
Cell/MFC.cpp
|
|
|
|
|
|
Cell/PPUAnalyser.cpp
|
|
|
|
|
|
Cell/PPUDisAsm.cpp
|
|
|
|
|
|
Cell/PPUFunction.cpp
|
|
|
|
|
|
Cell/PPUInterpreter.cpp
|
|
|
|
|
|
Cell/PPUModule.cpp
|
|
|
|
|
|
Cell/PPUThread.cpp
|
|
|
|
|
|
Cell/PPUTranslator.cpp
|
|
|
|
|
|
Cell/RawSPUThread.cpp
|
|
|
|
|
|
Cell/SPUAnalyser.cpp
|
|
|
|
|
|
Cell/SPUASMJITRecompiler.cpp
|
|
|
|
|
|
Cell/SPUDisAsm.cpp
|
|
|
|
|
|
Cell/SPUInterpreter.cpp
|
|
|
|
|
|
Cell/SPURecompiler.cpp
|
|
|
|
|
|
Cell/SPUThread.cpp
|
|
|
|
|
|
Cell/lv2/lv2.cpp
|
2020-02-07 10:31:33 +01:00
|
|
|
|
Cell/lv2/sys_bdemu.cpp
|
|
|
|
|
|
Cell/lv2/sys_btsetting.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/lv2/sys_cond.cpp
|
2020-02-07 10:31:33 +01:00
|
|
|
|
Cell/lv2/sys_console.cpp
|
|
|
|
|
|
Cell/lv2/sys_crypto_engine.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/lv2/sys_config.cpp
|
|
|
|
|
|
Cell/lv2/sys_dbg.cpp
|
|
|
|
|
|
Cell/lv2/sys_event.cpp
|
|
|
|
|
|
Cell/lv2/sys_event_flag.cpp
|
|
|
|
|
|
Cell/lv2/sys_fs.cpp
|
|
|
|
|
|
Cell/lv2/sys_gamepad.cpp
|
|
|
|
|
|
Cell/lv2/sys_gpio.cpp
|
2020-02-07 10:31:33 +01:00
|
|
|
|
Cell/lv2/sys_hid.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/lv2/sys_interrupt.cpp
|
2020-02-07 10:31:33 +01:00
|
|
|
|
Cell/lv2/sys_io.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/lv2/sys_lwcond.cpp
|
|
|
|
|
|
Cell/lv2/sys_lwmutex.cpp
|
|
|
|
|
|
Cell/lv2/sys_memory.cpp
|
|
|
|
|
|
Cell/lv2/sys_mmapper.cpp
|
|
|
|
|
|
Cell/lv2/sys_mutex.cpp
|
|
|
|
|
|
Cell/lv2/sys_net.cpp
|
|
|
|
|
|
Cell/lv2/sys_overlay.cpp
|
|
|
|
|
|
Cell/lv2/sys_ppu_thread.cpp
|
|
|
|
|
|
Cell/lv2/sys_process.cpp
|
|
|
|
|
|
Cell/lv2/sys_prx.cpp
|
|
|
|
|
|
Cell/lv2/sys_rsx.cpp
|
2020-02-07 10:31:33 +01:00
|
|
|
|
Cell/lv2/sys_rsxaudio.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/lv2/sys_rwlock.cpp
|
|
|
|
|
|
Cell/lv2/sys_semaphore.cpp
|
|
|
|
|
|
Cell/lv2/sys_spu.cpp
|
2020-02-07 10:31:33 +01:00
|
|
|
|
Cell/lv2/sys_sm.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/lv2/sys_ss.cpp
|
2020-02-07 10:31:33 +01:00
|
|
|
|
Cell/lv2/sys_storage.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/lv2/sys_time.cpp
|
|
|
|
|
|
Cell/lv2/sys_timer.cpp
|
|
|
|
|
|
Cell/lv2/sys_trace.cpp
|
|
|
|
|
|
Cell/lv2/sys_tty.cpp
|
2020-02-07 10:31:33 +01:00
|
|
|
|
Cell/lv2/sys_uart.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/lv2/sys_usbd.cpp
|
|
|
|
|
|
Cell/lv2/sys_vm.cpp
|
|
|
|
|
|
Cell/Modules/cellAdec.cpp
|
|
|
|
|
|
Cell/Modules/cellAtrac.cpp
|
|
|
|
|
|
Cell/Modules/cellAtracMulti.cpp
|
|
|
|
|
|
Cell/Modules/cellAudio.cpp
|
|
|
|
|
|
Cell/Modules/cellAudioOut.cpp
|
|
|
|
|
|
Cell/Modules/cellAvconfExt.cpp
|
|
|
|
|
|
Cell/Modules/cellBgdl.cpp
|
|
|
|
|
|
Cell/Modules/cellCamera.cpp
|
|
|
|
|
|
Cell/Modules/cellCelp8Enc.cpp
|
|
|
|
|
|
Cell/Modules/cellCelpEnc.cpp
|
|
|
|
|
|
Cell/Modules/cellCrossController.cpp
|
|
|
|
|
|
Cell/Modules/cellDaisy.cpp
|
|
|
|
|
|
Cell/Modules/cellDmux.cpp
|
|
|
|
|
|
Cell/Modules/cellDtcpIpUtility.cpp
|
|
|
|
|
|
Cell/Modules/cellFiber.cpp
|
|
|
|
|
|
Cell/Modules/cellFont.cpp
|
|
|
|
|
|
Cell/Modules/cellFontFT.cpp
|
|
|
|
|
|
Cell/Modules/cell_FreeType2.cpp
|
|
|
|
|
|
Cell/Modules/cellFs.cpp
|
|
|
|
|
|
Cell/Modules/cellGame.cpp
|
|
|
|
|
|
Cell/Modules/cellGameExec.cpp
|
|
|
|
|
|
Cell/Modules/cellGcmSys.cpp
|
|
|
|
|
|
Cell/Modules/cellGem.cpp
|
|
|
|
|
|
Cell/Modules/cellGifDec.cpp
|
|
|
|
|
|
Cell/Modules/cellHttp.cpp
|
|
|
|
|
|
Cell/Modules/cellHttpUtil.cpp
|
|
|
|
|
|
Cell/Modules/cellImeJp.cpp
|
|
|
|
|
|
Cell/Modules/cellJpgDec.cpp
|
|
|
|
|
|
Cell/Modules/cellJpgEnc.cpp
|
|
|
|
|
|
Cell/Modules/cellKb.cpp
|
|
|
|
|
|
Cell/Modules/cellKey2char.cpp
|
|
|
|
|
|
Cell/Modules/cellL10n.cpp
|
|
|
|
|
|
Cell/Modules/cellLibprof.cpp
|
|
|
|
|
|
Cell/Modules/cellMic.cpp
|
|
|
|
|
|
Cell/Modules/cellMouse.cpp
|
|
|
|
|
|
Cell/Modules/cellMsgDialog.cpp
|
|
|
|
|
|
Cell/Modules/cellMusic.cpp
|
|
|
|
|
|
Cell/Modules/cellMusicDecode.cpp
|
|
|
|
|
|
Cell/Modules/cellMusicExport.cpp
|
|
|
|
|
|
Cell/Modules/cellNetAoi.cpp
|
|
|
|
|
|
Cell/Modules/cellNetCtl.cpp
|
|
|
|
|
|
Cell/Modules/cellOskDialog.cpp
|
|
|
|
|
|
Cell/Modules/cellOvis.cpp
|
|
|
|
|
|
Cell/Modules/cellPad.cpp
|
|
|
|
|
|
Cell/Modules/cellPamf.cpp
|
|
|
|
|
|
Cell/Modules/cellPesmUtility.cpp
|
|
|
|
|
|
Cell/Modules/cellPhotoDecode.cpp
|
|
|
|
|
|
Cell/Modules/cellPhotoExport.cpp
|
|
|
|
|
|
Cell/Modules/cellPhotoImport.cpp
|
|
|
|
|
|
Cell/Modules/cellPngDec.cpp
|
|
|
|
|
|
Cell/Modules/cellPngEnc.cpp
|
|
|
|
|
|
Cell/Modules/cellPrint.cpp
|
|
|
|
|
|
Cell/Modules/cellRec.cpp
|
|
|
|
|
|
Cell/Modules/cellRemotePlay.cpp
|
|
|
|
|
|
Cell/Modules/cellResc.cpp
|
|
|
|
|
|
Cell/Modules/cellRtcAlarm.cpp
|
|
|
|
|
|
Cell/Modules/cellRtc.cpp
|
|
|
|
|
|
Cell/Modules/cellRudp.cpp
|
|
|
|
|
|
Cell/Modules/cellSail.cpp
|
|
|
|
|
|
Cell/Modules/cellSailRec.cpp
|
|
|
|
|
|
Cell/Modules/cellSaveData.cpp
|
|
|
|
|
|
Cell/Modules/cellScreenshot.cpp
|
|
|
|
|
|
Cell/Modules/cellSearch.cpp
|
|
|
|
|
|
Cell/Modules/cellSheap.cpp
|
|
|
|
|
|
Cell/Modules/cellSpudll.cpp
|
|
|
|
|
|
Cell/Modules/cellSpurs.cpp
|
|
|
|
|
|
Cell/Modules/cellSpursJq.cpp
|
|
|
|
|
|
Cell/Modules/cellSpursSpu.cpp
|
|
|
|
|
|
Cell/Modules/cellSsl.cpp
|
|
|
|
|
|
Cell/Modules/cellStorage.cpp
|
|
|
|
|
|
Cell/Modules/cellSubDisplay.cpp
|
|
|
|
|
|
Cell/Modules/cellSync2.cpp
|
|
|
|
|
|
Cell/Modules/cellSync.cpp
|
|
|
|
|
|
Cell/Modules/cellSysconf.cpp
|
2019-11-05 16:09:03 +01:00
|
|
|
|
Cell/Modules/cellSysCache.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/Modules/cellSysmodule.cpp
|
|
|
|
|
|
Cell/Modules/cellSysutilAp.cpp
|
|
|
|
|
|
Cell/Modules/cellSysutilAvc2.cpp
|
|
|
|
|
|
Cell/Modules/cellSysutilAvc.cpp
|
|
|
|
|
|
Cell/Modules/cellSysutilAvcExt.cpp
|
|
|
|
|
|
Cell/Modules/cellSysutil.cpp
|
|
|
|
|
|
Cell/Modules/cellSysutilMisc.cpp
|
|
|
|
|
|
Cell/Modules/cellSysutilNpEula.cpp
|
|
|
|
|
|
Cell/Modules/cellUsbd.cpp
|
|
|
|
|
|
Cell/Modules/cellUsbpspcm.cpp
|
|
|
|
|
|
Cell/Modules/cellUserInfo.cpp
|
|
|
|
|
|
Cell/Modules/cellVdec.cpp
|
|
|
|
|
|
Cell/Modules/cellVideoExport.cpp
|
|
|
|
|
|
Cell/Modules/cellVideoOut.cpp
|
|
|
|
|
|
Cell/Modules/cellVideoPlayerUtility.cpp
|
|
|
|
|
|
Cell/Modules/cellVideoUpload.cpp
|
|
|
|
|
|
Cell/Modules/cellVoice.cpp
|
|
|
|
|
|
Cell/Modules/cellVpost.cpp
|
|
|
|
|
|
Cell/Modules/cellWebBrowser.cpp
|
|
|
|
|
|
Cell/Modules/libad_async.cpp
|
|
|
|
|
|
Cell/Modules/libad_core.cpp
|
|
|
|
|
|
Cell/Modules/libmedi.cpp
|
|
|
|
|
|
Cell/Modules/libmixer.cpp
|
|
|
|
|
|
Cell/Modules/libsnd3.cpp
|
|
|
|
|
|
Cell/Modules/libsynth2.cpp
|
|
|
|
|
|
Cell/Modules/sceNp2.cpp
|
|
|
|
|
|
Cell/Modules/sceNpClans.cpp
|
|
|
|
|
|
Cell/Modules/sceNpCommerce2.cpp
|
|
|
|
|
|
Cell/Modules/sceNp.cpp
|
|
|
|
|
|
Cell/Modules/sceNpMatchingInt.cpp
|
|
|
|
|
|
Cell/Modules/sceNpSns.cpp
|
|
|
|
|
|
Cell/Modules/sceNpTrophy.cpp
|
|
|
|
|
|
Cell/Modules/sceNpTus.cpp
|
|
|
|
|
|
Cell/Modules/sceNpUtil.cpp
|
|
|
|
|
|
Cell/Modules/StaticHLE.cpp
|
|
|
|
|
|
Cell/Modules/sys_game.cpp
|
|
|
|
|
|
Cell/Modules/sys_heap.cpp
|
2020-02-07 10:31:33 +01:00
|
|
|
|
Cell/Modules/sys_io_.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Cell/Modules/sys_libc_.cpp
|
|
|
|
|
|
Cell/Modules/sys_libc.cpp
|
|
|
|
|
|
Cell/Modules/sys_lv2dbg.cpp
|
|
|
|
|
|
Cell/Modules/sys_lwcond_.cpp
|
|
|
|
|
|
Cell/Modules/sys_lwmutex_.cpp
|
|
|
|
|
|
Cell/Modules/sys_mempool.cpp
|
|
|
|
|
|
Cell/Modules/sys_mmapper_.cpp
|
|
|
|
|
|
Cell/Modules/sys_net_.cpp
|
|
|
|
|
|
Cell/Modules/sys_ppu_thread_.cpp
|
|
|
|
|
|
Cell/Modules/sys_prx_.cpp
|
|
|
|
|
|
Cell/Modules/sysPrxForUser.cpp
|
|
|
|
|
|
Cell/Modules/sys_rsxaudio_.cpp
|
|
|
|
|
|
Cell/Modules/sys_spinlock.cpp
|
|
|
|
|
|
Cell/Modules/sys_spu_.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
if(NOT MSVC)
|
|
|
|
|
|
set_source_files_properties(Cell/PPUTranslator.cpp PROPERTIES COMPILE_FLAGS -fno-rtti)
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(rpcs3_emu
|
|
|
|
|
|
PRIVATE
|
|
|
|
|
|
3rdparty::stblib 3rdparty::libpng)
|
|
|
|
|
|
|
2019-06-10 21:52:07 +02:00
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
target_link_libraries(rpcs3_emu PUBLIC -latomic)
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# CPU
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
|
|
|
|
|
CPU/CPUThread.cpp
|
|
|
|
|
|
CPU/CPUTranslator.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
target_link_libraries(rpcs3_emu
|
2018-09-18 17:06:49 +02:00
|
|
|
|
PUBLIC 3rdparty::llvm 3rdparty::asmjit)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Io
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
2019-08-17 16:08:47 +02:00
|
|
|
|
Io/KeyboardHandler.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
Io/PadHandler.cpp
|
2019-02-25 11:23:15 +01:00
|
|
|
|
Io/usb_device.cpp
|
|
|
|
|
|
Io/Skylander.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Memory
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
|
|
|
|
|
Memory/vm.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# RSX
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
|
|
|
|
|
RSX/CgBinaryFragmentProgram.cpp
|
|
|
|
|
|
RSX/CgBinaryVertexProgram.cpp
|
|
|
|
|
|
RSX/gcm_enums.cpp
|
|
|
|
|
|
RSX/gcm_printing.cpp
|
|
|
|
|
|
RSX/GSRender.cpp
|
|
|
|
|
|
RSX/RSXFIFO.cpp
|
|
|
|
|
|
RSX/rsx_methods.cpp
|
|
|
|
|
|
RSX/RSXOffload.cpp
|
|
|
|
|
|
RSX/RSXTexture.cpp
|
|
|
|
|
|
RSX/RSXThread.cpp
|
|
|
|
|
|
RSX/rsx_utils.cpp
|
|
|
|
|
|
RSX/Common/BufferUtils.cpp
|
|
|
|
|
|
RSX/Common/FragmentProgramDecompiler.cpp
|
|
|
|
|
|
RSX/Common/ProgramStateCache.cpp
|
|
|
|
|
|
RSX/Common/surface_store.cpp
|
|
|
|
|
|
RSX/Common/TextureUtils.cpp
|
|
|
|
|
|
RSX/Common/VertexProgramDecompiler.cpp
|
|
|
|
|
|
RSX/Null/NullGSRender.cpp
|
2020-01-03 13:41:34 +01:00
|
|
|
|
RSX/Overlays/overlay_animation.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
RSX/Overlays/overlay_edit_text.cpp
|
|
|
|
|
|
RSX/Overlays/overlay_font.cpp
|
|
|
|
|
|
RSX/Overlays/overlay_list_view.cpp
|
|
|
|
|
|
RSX/Overlays/overlay_message_dialog.cpp
|
|
|
|
|
|
RSX/Overlays/overlay_osk.cpp
|
|
|
|
|
|
RSX/Overlays/overlay_perf_metrics.cpp
|
|
|
|
|
|
RSX/Overlays/overlay_progress_bar.cpp
|
|
|
|
|
|
RSX/Overlays/overlay_save_dialog.cpp
|
|
|
|
|
|
RSX/Overlays/overlays.cpp
|
|
|
|
|
|
RSX/Overlays/overlay_shader_compile_notification.cpp
|
|
|
|
|
|
RSX/Overlays/overlay_trophy_notification.cpp
|
2020-01-03 12:04:18 +01:00
|
|
|
|
RSX/Overlays/Shaders/shader_loading_dialog.cpp
|
|
|
|
|
|
RSX/Overlays/Shaders/shader_loading_dialog_native.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
RSX/Capture/rsx_capture.cpp
|
|
|
|
|
|
RSX/Capture/rsx_replay.cpp
|
|
|
|
|
|
RSX/GL/GLCommonDecompiler.cpp
|
|
|
|
|
|
RSX/GL/GLFragmentProgram.cpp
|
|
|
|
|
|
RSX/GL/GLGSRender.cpp
|
|
|
|
|
|
RSX/GL/GLHelpers.cpp
|
2020-01-17 17:24:33 +01:00
|
|
|
|
RSX/GL/GLPresent.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
RSX/GL/GLRenderTargets.cpp
|
|
|
|
|
|
RSX/GL/GLTexture.cpp
|
|
|
|
|
|
RSX/GL/GLVertexBuffers.cpp
|
|
|
|
|
|
RSX/GL/GLVertexProgram.cpp
|
|
|
|
|
|
RSX/GL/OpenGL.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
if(TARGET 3rdparty_vulkan)
|
2019-07-27 00:34:10 +02:00
|
|
|
|
target_sources(rpcs3_emu PRIVATE
|
2019-12-07 14:28:35 +01:00
|
|
|
|
RSX/VK/VKCommandStream.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
RSX/VK/VKCommonDecompiler.cpp
|
2019-08-17 13:06:38 +02:00
|
|
|
|
RSX/VK/VKDMA.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
RSX/VK/VKFormats.cpp
|
|
|
|
|
|
RSX/VK/VKFragmentProgram.cpp
|
|
|
|
|
|
RSX/VK/VKFramebuffer.cpp
|
|
|
|
|
|
RSX/VK/VKGSRender.cpp
|
|
|
|
|
|
RSX/VK/VKHelpers.cpp
|
|
|
|
|
|
RSX/VK/VKMemAlloc.cpp
|
2020-01-17 17:24:33 +01:00
|
|
|
|
RSX/VK/VKPresent.cpp
|
2019-07-27 00:34:10 +02:00
|
|
|
|
RSX/VK/VKProgramPipeline.cpp
|
|
|
|
|
|
RSX/VK/VKRenderPass.cpp
|
|
|
|
|
|
RSX/VK/VKResolveHelper.cpp
|
|
|
|
|
|
RSX/VK/VKResourceManager.cpp
|
|
|
|
|
|
RSX/VK/VKTexture.cpp
|
|
|
|
|
|
RSX/VK/VKVertexBuffers.cpp
|
|
|
|
|
|
RSX/VK/VKVertexProgram.cpp
|
|
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(rpcs3_emu
|
|
|
|
|
|
PUBLIC
|
|
|
|
|
|
3rdparty::ffmpeg 3rdparty::cereal
|
|
|
|
|
|
3rdparty::opengl 3rdparty::stblib
|
2019-04-02 00:41:32 +02:00
|
|
|
|
3rdparty::vulkan 3rdparty::glew
|
2019-02-25 11:23:15 +01:00
|
|
|
|
3rdparty::libusb
|
2018-09-18 12:07:33 +02:00
|
|
|
|
PRIVATE
|
2019-11-09 16:13:20 +01:00
|
|
|
|
3rdparty::span 3rdparty::xxhash
|
2019-10-22 18:09:11 +02:00
|
|
|
|
)
|
2018-09-18 12:07:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Setup cotire
|
|
|
|
|
|
option(UNITY_BUILD_EMU "Use unity build for rpcs3_emu target" OFF)
|
|
|
|
|
|
|
|
|
|
|
|
set_target_properties(rpcs3_emu PROPERTIES
|
|
|
|
|
|
COTIRE_CXX_PREFIX_HEADER_INIT "${RPCS3_SRC_DIR}/stdafx.h"
|
|
|
|
|
|
COTIRE_ADD_UNITY_BUILD ${UNITY_BUILD_EMU})
|
|
|
|
|
|
|
|
|
|
|
|
cotire(rpcs3_emu)
|