2012-11-01 16:19:01 +01:00
|
|
|
set(SRCS
|
|
|
|
Debugger/Breakpoints.cpp
|
|
|
|
Debugger/SymbolMap.cpp
|
2012-12-15 17:39:05 +00:00
|
|
|
Dialog/PSPDialog.cpp
|
|
|
|
Dialog/PSPMsgDialog.cpp
|
|
|
|
Dialog/PSPPlaceholderDialog.cpp
|
|
|
|
Dialog/PSPSaveDialog.cpp
|
|
|
|
Dialog/SavedataParam.cpp
|
|
|
|
Dialog/PSPOskDialog.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
MIPS/MIPS.cpp
|
|
|
|
MIPS/MIPSAnalyst.cpp
|
|
|
|
MIPS/MIPSCodeUtils.cpp
|
|
|
|
MIPS/MIPSDebugInterface.cpp
|
|
|
|
MIPS/MIPSDis.cpp
|
|
|
|
MIPS/MIPSDisVFPU.cpp
|
|
|
|
MIPS/MIPSInt.cpp
|
|
|
|
MIPS/MIPSIntVFPU.cpp
|
|
|
|
MIPS/MIPSTables.cpp
|
|
|
|
MIPS/MIPSVFPUUtils.cpp
|
|
|
|
MIPS/JitCommon/JitCommon.cpp
|
|
|
|
ELF/ElfReader.cpp
|
2012-11-30 21:49:59 +01:00
|
|
|
ELF/ParamSFO.cpp
|
2012-11-05 14:54:28 +01:00
|
|
|
ELF/PrxDecrypter.cpp
|
2013-02-22 20:05:07 +01:00
|
|
|
Font/PGF.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
HLE/HLE.cpp
|
|
|
|
HLE/HLETables.cpp
|
|
|
|
HLE/sceAtrac.cpp
|
|
|
|
HLE/__sceAudio.cpp
|
|
|
|
HLE/sceAudio.cpp
|
2013-06-30 20:21:56 +08:00
|
|
|
HLE/sceCcc.cpp
|
2013-01-29 08:17:41 -08:00
|
|
|
HLE/sceChnnlsv.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
HLE/sceCtrl.cpp
|
2013-04-05 10:14:12 -07:00
|
|
|
HLE/sceDeflt.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
HLE/sceDisplay.cpp
|
|
|
|
HLE/sceDmac.cpp
|
|
|
|
HLE/sceGe.cpp
|
2012-11-22 22:29:51 +01:00
|
|
|
HLE/sceFont.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
HLE/sceHprm.cpp
|
|
|
|
HLE/sceHttp.cpp
|
2012-11-09 12:31:58 +01:00
|
|
|
HLE/sceImpose.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
HLE/sceIo.cpp
|
2013-05-15 19:49:34 +08:00
|
|
|
HLE/sceJpeg.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
HLE/sceKernel.cpp
|
|
|
|
HLE/sceKernelAlarm.cpp
|
|
|
|
HLE/sceKernelEventFlag.cpp
|
|
|
|
HLE/sceKernelInterrupt.cpp
|
|
|
|
HLE/sceKernelMemory.cpp
|
|
|
|
HLE/sceKernelModule.cpp
|
|
|
|
HLE/sceKernelMutex.cpp
|
|
|
|
HLE/sceKernelMbx.cpp
|
|
|
|
HLE/sceKernelMsgPipe.cpp
|
|
|
|
HLE/sceKernelSemaphore.cpp
|
|
|
|
HLE/sceKernelThread.cpp
|
|
|
|
HLE/sceKernelTime.cpp
|
|
|
|
HLE/sceKernelVTimer.cpp
|
|
|
|
HLE/sceMpeg.cpp
|
|
|
|
HLE/sceNet.cpp
|
2013-04-30 01:34:23 +08:00
|
|
|
HLE/sceNp.cpp
|
2013-03-15 07:45:00 -07:00
|
|
|
HLE/sceP3da.cpp
|
2013-05-15 19:49:34 +08:00
|
|
|
HLE/sceMd5.cpp
|
2013-04-28 21:02:45 +08:00
|
|
|
HLE/sceMp4.cpp
|
2013-05-06 21:09:40 +08:00
|
|
|
HLE/sceMp3.cpp
|
2013-04-30 01:34:23 +08:00
|
|
|
HLE/scePauth.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
HLE/scePower.cpp
|
|
|
|
HLE/scePsmf.cpp
|
|
|
|
HLE/sceRtc.cpp
|
|
|
|
HLE/sceSas.cpp
|
|
|
|
HLE/sceUmd.cpp
|
2012-12-17 21:45:32 +01:00
|
|
|
HLE/sceUsb.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
HLE/sceUtility.cpp
|
2012-12-06 15:24:25 +00:00
|
|
|
HLE/sceParseUri.cpp
|
|
|
|
HLE/sceSsl.cpp
|
|
|
|
HLE/sceParseUri.cpp
|
|
|
|
HLE/sceParseHttp.cpp
|
2012-12-06 17:44:33 +00:00
|
|
|
HLE/sceVaudio.cpp
|
2013-06-09 01:28:58 +08:00
|
|
|
HLE/sceAudiocodec.cpp
|
2012-11-06 15:45:13 +01:00
|
|
|
HW/MemoryStick.cpp
|
2012-11-12 20:53:16 +01:00
|
|
|
HW/MediaEngine.cpp
|
2012-12-16 20:40:49 +01:00
|
|
|
HW/SasAudio.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
FileSystems/BlockDevices.cpp
|
|
|
|
FileSystems/ISOFileSystem.cpp
|
|
|
|
FileSystems/DirectoryFileSystem.cpp
|
|
|
|
FileSystems/MetaFileSystem.cpp
|
|
|
|
Util/BlockAllocator.cpp
|
2012-11-18 13:04:49 +01:00
|
|
|
Util/ppge_atlas.cpp
|
|
|
|
Util/PPGeDraw.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
CPU.cpp
|
|
|
|
CoreTiming.cpp
|
|
|
|
Config.cpp
|
|
|
|
Loaders.cpp
|
|
|
|
Host.cpp
|
|
|
|
MemMap.cpp
|
|
|
|
MemMapFunctions.cpp
|
|
|
|
PSPLoaders.cpp
|
|
|
|
PSPMixer.cpp
|
|
|
|
System.cpp
|
|
|
|
Core.cpp
|
2013-03-02 12:41:39 -08:00
|
|
|
../git-version.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
)
|
|
|
|
|
2012-11-05 23:09:49 +10:00
|
|
|
if(ARM)
|
|
|
|
set(SRCS ${SRCS} MIPS/ARM/Asm.cpp
|
|
|
|
MIPS/ARM/CompALU.cpp
|
|
|
|
MIPS/ARM/CompBranch.cpp
|
|
|
|
MIPS/ARM/CompLoadStore.cpp
|
|
|
|
MIPS/ARM/CompFPU.cpp
|
|
|
|
MIPS/ARM/Jit.cpp
|
|
|
|
MIPS/ARM/JitCache.cpp
|
|
|
|
MIPS/ARM/RegCache.cpp
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(SRCS ${SRCS} MIPS/x86/Asm.cpp
|
|
|
|
MIPS/x86/CompALU.cpp
|
|
|
|
MIPS/x86/CompBranch.cpp
|
|
|
|
MIPS/x86/CompLoadStore.cpp
|
|
|
|
MIPS/x86/CompFPU.cpp
|
|
|
|
MIPS/x86/Jit.cpp
|
|
|
|
MIPS/x86/JitCache.cpp
|
|
|
|
MIPS/x86/RegCache.cpp
|
|
|
|
)
|
|
|
|
endif(ARM)
|
|
|
|
|
2012-11-01 16:19:01 +01:00
|
|
|
set(SRCS ${SRCS})
|
|
|
|
|
|
|
|
add_library(core STATIC ${SRCS})
|
2012-11-03 10:33:24 +08:00
|
|
|
target_link_libraries(core general common)
|
|
|
|
target_link_libraries(core general base)
|
2012-11-01 16:19:01 +01:00
|
|
|
|
2013-03-02 12:41:39 -08:00
|
|
|
# Generate git-version.cpp at build time.
|
|
|
|
add_custom_target(GitVersion ALL
|
|
|
|
DEPENDS something_that_never_exists)
|
|
|
|
add_custom_command(OUTPUT something_that_never_exists
|
|
|
|
COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/../git-version.cmake)
|
|
|
|
|
|
|
|
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/../git-version.cpp
|
|
|
|
PROPERTIES GENERATED TRUE)
|
|
|
|
add_dependencies(core GitVersion)
|
|
|
|
|
2012-11-01 16:19:01 +01:00
|
|
|
if(UNIX)
|
|
|
|
add_definitions(-fPIC)
|
2012-11-03 10:33:24 +08:00
|
|
|
add_definitions(-std=gnu++0x)
|
2012-11-01 16:19:01 +01:00
|
|
|
endif(UNIX)
|