2019-04-30 21:16:54 -06:00
|
|
|
project(core)
|
|
|
|
|
2019-06-21 17:28:32 -06:00
|
|
|
set (CMAKE_CXX_STANDARD 14)
|
|
|
|
|
2019-04-30 21:16:54 -06:00
|
|
|
add_library(core STATIC
|
2020-08-12 16:20:34 -06:00
|
|
|
ARCodeFile.cpp
|
2020-02-14 11:26:52 -07:00
|
|
|
AREngine.cpp
|
2019-04-30 21:16:54 -06:00
|
|
|
ARM.cpp
|
2020-05-02 12:25:39 -06:00
|
|
|
ARM_InstrTable.h
|
2019-04-30 21:16:54 -06:00
|
|
|
ARMInterpreter.cpp
|
|
|
|
ARMInterpreter_ALU.cpp
|
|
|
|
ARMInterpreter_Branch.cpp
|
|
|
|
ARMInterpreter_LoadStore.cpp
|
|
|
|
Config.cpp
|
|
|
|
CP15.cpp
|
|
|
|
CRC32.cpp
|
|
|
|
DMA.cpp
|
2019-10-15 17:37:44 -06:00
|
|
|
DSi.cpp
|
|
|
|
DSi_AES.cpp
|
|
|
|
DSi_Camera.cpp
|
|
|
|
DSi_I2C.cpp
|
|
|
|
DSi_NDMA.cpp
|
|
|
|
DSi_NWifi.cpp
|
|
|
|
DSi_SD.cpp
|
|
|
|
DSi_SPI_TSC.cpp
|
2020-05-02 12:25:39 -06:00
|
|
|
FIFO.h
|
2019-12-08 11:46:51 -07:00
|
|
|
GBACart.cpp
|
2019-04-30 21:16:54 -06:00
|
|
|
GPU.cpp
|
2020-05-25 10:25:50 -06:00
|
|
|
GPU_OpenGL.cpp
|
|
|
|
GPU_OpenGL_shaders.h
|
2019-04-30 21:16:54 -06:00
|
|
|
GPU2D.cpp
|
|
|
|
GPU3D.cpp
|
2019-05-28 11:48:59 -06:00
|
|
|
GPU3D_OpenGL.cpp
|
2020-05-02 12:25:39 -06:00
|
|
|
GPU3D_OpenGL_shaders.h
|
2019-04-30 21:16:54 -06:00
|
|
|
GPU3D_Soft.cpp
|
|
|
|
NDS.cpp
|
|
|
|
NDSCart.cpp
|
2019-05-28 11:48:59 -06:00
|
|
|
OpenGLSupport.cpp
|
2020-04-27 04:06:44 -06:00
|
|
|
Platform.h
|
2020-05-29 16:28:21 -06:00
|
|
|
ROMList.h
|
2019-04-30 21:16:54 -06:00
|
|
|
RTC.cpp
|
|
|
|
Savestate.cpp
|
|
|
|
SPI.cpp
|
|
|
|
SPU.cpp
|
2020-04-27 14:02:45 -06:00
|
|
|
types.h
|
|
|
|
version.h
|
2019-04-30 21:16:54 -06:00
|
|
|
Wifi.cpp
|
|
|
|
WifiAP.cpp
|
2020-04-25 05:40:51 -06:00
|
|
|
|
2019-10-15 17:37:44 -06:00
|
|
|
tiny-AES-c/aes.c
|
2020-04-25 05:40:51 -06:00
|
|
|
xxhash/xxhash.c
|
2019-07-14 11:24:00 -06:00
|
|
|
)
|
2019-06-21 17:28:32 -06:00
|
|
|
|
2019-07-14 11:24:00 -06:00
|
|
|
if (ENABLE_JIT)
|
2020-04-25 05:40:51 -06:00
|
|
|
enable_language(ASM)
|
|
|
|
|
2019-07-14 11:24:00 -06:00
|
|
|
target_sources(core PRIVATE
|
2020-04-26 08:27:26 -06:00
|
|
|
ARM_InstrInfo.cpp
|
2019-06-21 17:28:32 -06:00
|
|
|
|
2020-06-14 13:04:25 -06:00
|
|
|
ARMJIT.cpp
|
|
|
|
ARMJIT_Memory.cpp
|
|
|
|
|
2019-07-14 11:24:00 -06:00
|
|
|
dolphin/CommonFuncs.cpp
|
|
|
|
)
|
2020-02-04 10:29:52 -07:00
|
|
|
|
|
|
|
if (ARCHITECTURE STREQUAL x86_64)
|
|
|
|
target_sources(core PRIVATE
|
|
|
|
dolphin/x64ABI.cpp
|
|
|
|
dolphin/x64CPUDetect.cpp
|
|
|
|
dolphin/x64Emitter.cpp
|
|
|
|
|
|
|
|
ARMJIT_x64/ARMJIT_Compiler.cpp
|
|
|
|
ARMJIT_x64/ARMJIT_ALU.cpp
|
|
|
|
ARMJIT_x64/ARMJIT_LoadStore.cpp
|
|
|
|
ARMJIT_x64/ARMJIT_Branch.cpp
|
2020-04-25 05:40:51 -06:00
|
|
|
|
|
|
|
ARMJIT_x64/ARMJIT_Linkage.s
|
2020-02-04 10:29:52 -07:00
|
|
|
)
|
2020-04-25 05:40:51 -06:00
|
|
|
set_source_files_properties(ARMJIT_x64/ARMJIT_Linkage.s PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp")
|
2020-02-04 10:29:52 -07:00
|
|
|
endif()
|
|
|
|
if (ARCHITECTURE STREQUAL ARM64)
|
|
|
|
target_sources(core PRIVATE
|
|
|
|
dolphin/Arm64Emitter.cpp
|
|
|
|
dolphin/MathUtil.cpp
|
|
|
|
|
|
|
|
ARMJIT_A64/ARMJIT_Compiler.cpp
|
|
|
|
ARMJIT_A64/ARMJIT_ALU.cpp
|
|
|
|
ARMJIT_A64/ARMJIT_LoadStore.cpp
|
|
|
|
ARMJIT_A64/ARMJIT_Branch.cpp
|
2020-06-14 13:04:25 -06:00
|
|
|
|
|
|
|
ARMJIT_A64/ARMJIT_Linkage.s
|
2020-02-04 10:29:52 -07:00
|
|
|
)
|
2020-07-23 13:07:33 -06:00
|
|
|
set_source_files_properties(ARMJIT_A64/ARMJIT_Linkage.s PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp")
|
2020-02-04 10:29:52 -07:00
|
|
|
endif()
|
2019-07-14 11:24:00 -06:00
|
|
|
endif()
|
2019-04-30 21:16:54 -06:00
|
|
|
|
|
|
|
if (WIN32)
|
2019-05-25 16:46:35 -06:00
|
|
|
target_link_libraries(core ole32 comctl32 ws2_32 opengl32)
|
2019-05-25 16:37:51 -06:00
|
|
|
else()
|
2019-05-31 16:27:54 -06:00
|
|
|
target_link_libraries(core GL EGL)
|
2019-04-30 21:16:54 -06:00
|
|
|
endif()
|