melonDS/src/CMakeLists.txt

103 lines
1.8 KiB
CMake
Raw Normal View History

2019-04-30 21:16:54 -06:00
project(core)
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
GBACart.cpp
2019-04-30 21:16:54 -06:00
GPU.cpp
GPU_OpenGL.cpp
GPU_OpenGL_shaders.h
2019-04-30 21:16:54 -06:00
GPU2D.cpp
GPU3D.cpp
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
2020-09-03 12:28:07 -06:00
melonDLDI.h
2019-04-30 21:16:54 -06:00
NDS.cpp
NDSCart.cpp
OpenGLSupport.cpp
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
2019-10-15 17:37:44 -06:00
tiny-AES-c/aes.c
xxhash/xxhash.c
2019-07-14 11:24:00 -06:00
)
2019-07-14 11:24:00 -06:00
if (ENABLE_JIT)
enable_language(ASM)
2019-07-14 11:24:00 -06:00
target_sources(core PRIVATE
ARM_InstrInfo.cpp
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
ARMJIT_x64/ARMJIT_Linkage.s
2020-02-04 10:29:52 -07: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
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)
else()
2019-05-31 16:27:54 -06:00
target_link_libraries(core GL EGL)
2019-04-30 21:16:54 -06:00
endif()