Merge pull request #90 from gizmo98/patch-2
[libretro-ppsspp.git] / Core / CMakeLists.txt
blob351b28e3201970f558fef279dc83bfa81e09182d
1 set(SRCS
2   Debugger/Breakpoints.cpp
3   Debugger/SymbolMap.cpp
4   Dialog/PSPDialog.cpp
5   Dialog/PSPMsgDialog.cpp
6   Dialog/PSPPlaceholderDialog.cpp
7   Dialog/PSPSaveDialog.cpp
8   Dialog/SavedataParam.cpp
9   Dialog/PSPOskDialog.cpp
10   Dialog/PSPGamedataInstallDialog.cpp
11   Dialog/PSPNetconfDialog.cpp
12   Dialog/PSPScreenshotDialog.cpp
13   MIPS/MIPS.cpp
14   MIPS/MIPSAnalyst.cpp
15   MIPS/MIPSCodeUtils.cpp
16   MIPS/MIPSDebugInterface.cpp
17   MIPS/MIPSDis.cpp
18   MIPS/MIPSDisVFPU.cpp
19   MIPS/MIPSInt.cpp
20   MIPS/MIPSIntVFPU.cpp
21   MIPS/MIPSStackWalk.cpp
22   MIPS/MIPSTables.cpp
23   MIPS/MIPSVFPUUtils.cpp
24   MIPS/JitCommon/JitCommon.cpp
25   ELF/ElfReader.cpp
26   ELF/ParamSFO.cpp
27   ELF/PrxDecrypter.cpp
28   Font/PGF.cpp
29   HLE/HLE.cpp
30   HLE/HLEHelperThread.cpp
31   HLE/HLETables.cpp
32   HLE/sceAtrac.cpp
33   HLE/__sceAudio.cpp
34   HLE/sceAudio.cpp
35   HLE/sceAudioRouting.cpp
36   HLE/sceCcc.cpp
37   HLE/sceChnnlsv.cpp
38   HLE/sceCtrl.cpp
39   HLE/sceDeflt.cpp
40   HLE/sceDisplay.cpp
41   HLE/sceDmac.cpp
42   HLE/sceGe.cpp
43   HLE/sceFont.cpp
44   HLE/sceHprm.cpp
45   HLE/sceHttp.cpp
46   HLE/sceImpose.cpp
47   HLE/sceIo.cpp
48   HLE/sceJpeg.cpp
49   HLE/sceKernel.cpp
50   HLE/sceKernelAlarm.cpp
51   HLE/sceKernelEventFlag.cpp
52   HLE/sceKernelInterrupt.cpp
53   HLE/sceKernelMemory.cpp
54   HLE/sceKernelModule.cpp
55   HLE/sceKernelMutex.cpp
56   HLE/sceKernelMbx.cpp
57   HLE/sceKernelMsgPipe.cpp
58   HLE/sceKernelSemaphore.cpp
59   HLE/sceKernelThread.cpp
60   HLE/sceKernelTime.cpp
61   HLE/sceKernelVTimer.cpp
62   HLE/sceMpeg.cpp
63   HLE/sceNet.cpp
64   HLE/sceNp.cpp
65   HLE/sceP3da.cpp
66   HLE/sceMt19937.cpp
67   HLE/sceMd5.cpp
68   HLE/sceMp4.cpp
69   HLE/sceMp3.cpp
70   HLE/scePauth.cpp
71   HLE/scePower.cpp
72   HLE/scePsmf.cpp
73   HLE/sceRtc.cpp
74   HLE/sceSas.cpp
75   HLE/sceUmd.cpp
76   HLE/sceUsb.cpp
77   HLE/sceUsbGps.cpp
78   HLE/sceUtility.cpp
79   HLE/sceParseUri.cpp
80   HLE/sceSsl.cpp
81   HLE/sceParseUri.cpp
82   HLE/sceParseHttp.cpp
83   HLE/sceVaudio.cpp
84   HLE/sceAudiocodec.cpp
85   HW/AsyncIOManager.cpp
86   HW/MemoryStick.cpp
87   HW/MediaEngine.cpp
88   HW/SasAudio.cpp
89   FileSystems/BlockDevices.cpp
90   FileSystems/ISOFileSystem.cpp
91   FileSystems/DirectoryFileSystem.cpp
92   FileSystems/MetaFileSystem.cpp
93   FileSystems/VirtualDiscFileSystem.cpp
94   Util/BlockAllocator.cpp
95   Util/ppge_atlas.cpp
96   Util/PPGeDraw.cpp
97   CPU.cpp
98   CoreTiming.cpp
99   Config.cpp
100   Loaders.cpp
101   Host.cpp
102   MemMap.cpp
103   MemMapFunctions.cpp
104   PSPLoaders.cpp
105   System.cpp
106   Core.cpp
107   ../git-version.cpp
110 if(ARM)
111         set(SRCS ${SRCS} MIPS/ARM/Asm.cpp
112                                          MIPS/ARM/CompALU.cpp
113                                          MIPS/ARM/CompBranch.cpp
114                                          MIPS/ARM/CompLoadStore.cpp
115                                          MIPS/ARM/CompFPU.cpp
116                                          MIPS/ARM/Jit.cpp
117                                          MIPS/ARM/JitCache.cpp
118                                          MIPS/ARM/RegCache.cpp
119         )
120 else()
121         set(SRCS ${SRCS} MIPS/x86/Asm.cpp
122                                          MIPS/x86/CompALU.cpp
123                                          MIPS/x86/CompBranch.cpp
124                                          MIPS/x86/CompLoadStore.cpp
125                                          MIPS/x86/CompFPU.cpp
126                                          MIPS/x86/Jit.cpp
127                                          MIPS/x86/JitCache.cpp
128                                          MIPS/x86/RegCache.cpp
129         )
130 endif(ARM)
132 set(SRCS ${SRCS})
134 add_library(core STATIC ${SRCS})
135 target_link_libraries(core general common)
136 target_link_libraries(core general base)
138 # Generate git-version.cpp at build time.
139 add_custom_target(GitVersion ALL
140         DEPENDS something_that_never_exists)
141 add_custom_command(OUTPUT something_that_never_exists
142         COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}/..
143                 -P ${CMAKE_CURRENT_SOURCE_DIR}/../git-version.cmake)
145 set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/../git-version.cpp
146         PROPERTIES GENERATED TRUE)
147 add_dependencies(core GitVersion)
149 if(UNIX)
150   add_definitions(-fPIC)
151   add_definitions(-std=gnu++0x)
152 endif(UNIX)