forked from hrydgard/ppsspp
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
152 lines (146 loc) · 3.39 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
set(SRCS
Debugger/Breakpoints.cpp
Debugger/SymbolMap.cpp
Dialog/PSPDialog.cpp
Dialog/PSPMsgDialog.cpp
Dialog/PSPPlaceholderDialog.cpp
Dialog/PSPSaveDialog.cpp
Dialog/SavedataParam.cpp
Dialog/PSPOskDialog.cpp
Dialog/PSPGamedataInstallDialog.cpp
Dialog/PSPNetconfDialog.cpp
Dialog/PSPScreenshotDialog.cpp
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/MIPSStackWalk.cpp
MIPS/MIPSTables.cpp
MIPS/MIPSVFPUUtils.cpp
MIPS/JitCommon/JitCommon.cpp
ELF/ElfReader.cpp
ELF/ParamSFO.cpp
ELF/PrxDecrypter.cpp
Font/PGF.cpp
HLE/HLE.cpp
HLE/HLEHelperThread.cpp
HLE/HLETables.cpp
HLE/sceAtrac.cpp
HLE/__sceAudio.cpp
HLE/sceAudio.cpp
HLE/sceAudioRouting.cpp
HLE/sceCcc.cpp
HLE/sceChnnlsv.cpp
HLE/sceCtrl.cpp
HLE/sceDeflt.cpp
HLE/sceDisplay.cpp
HLE/sceDmac.cpp
HLE/sceGe.cpp
HLE/sceFont.cpp
HLE/sceHprm.cpp
HLE/sceHttp.cpp
HLE/sceImpose.cpp
HLE/sceIo.cpp
HLE/sceJpeg.cpp
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
HLE/sceNp.cpp
HLE/sceP3da.cpp
HLE/sceMt19937.cpp
HLE/sceMd5.cpp
HLE/sceMp4.cpp
HLE/sceMp3.cpp
HLE/scePauth.cpp
HLE/scePower.cpp
HLE/scePsmf.cpp
HLE/sceRtc.cpp
HLE/sceSas.cpp
HLE/sceUmd.cpp
HLE/sceUsb.cpp
HLE/sceUsbGps.cpp
HLE/sceUtility.cpp
HLE/sceParseUri.cpp
HLE/sceSsl.cpp
HLE/sceParseUri.cpp
HLE/sceParseHttp.cpp
HLE/sceVaudio.cpp
HLE/sceAudiocodec.cpp
HW/AsyncIOManager.cpp
HW/MemoryStick.cpp
HW/MediaEngine.cpp
HW/SasAudio.cpp
FileSystems/BlockDevices.cpp
FileSystems/ISOFileSystem.cpp
FileSystems/DirectoryFileSystem.cpp
FileSystems/MetaFileSystem.cpp
FileSystems/VirtualDiscFileSystem.cpp
Util/BlockAllocator.cpp
Util/ppge_atlas.cpp
Util/PPGeDraw.cpp
CPU.cpp
CoreTiming.cpp
Config.cpp
Loaders.cpp
Host.cpp
MemMap.cpp
MemMapFunctions.cpp
PSPLoaders.cpp
System.cpp
Core.cpp
../git-version.cpp
)
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)
set(SRCS ${SRCS})
add_library(core STATIC ${SRCS})
target_link_libraries(core general common)
target_link_libraries(core general base)
# 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)
if(UNIX)
add_definitions(-fPIC)
add_definitions(-std=gnu++0x)
endif(UNIX)