melonDS/src/CMakeLists.txt

115 lines
2.0 KiB
CMake
Raw Normal View History

2019-05-01 03:16:54 +00:00
project(core)
set (CMAKE_CXX_STANDARD 14)
2019-05-01 03:16:54 +00:00
add_library(core STATIC
2020-08-12 22:20:34 +00:00
ARCodeFile.cpp
2020-02-14 18:26:52 +00:00
AREngine.cpp
2019-05-01 03:16:54 +00:00
ARM.cpp
2020-05-02 18:25:39 +00:00
ARM_InstrTable.h
2019-05-01 03:16:54 +00:00
ARMInterpreter.cpp
ARMInterpreter_ALU.cpp
ARMInterpreter_Branch.cpp
ARMInterpreter_LoadStore.cpp
Config.cpp
CP15.cpp
CRC32.cpp
DMA.cpp
2019-10-15 23:37:44 +00: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 18:25:39 +00:00
FIFO.h
GBACart.cpp
2019-05-01 03:16:54 +00:00
GPU.cpp
GPU2D.cpp
GPU3D.cpp
GPU3D_Soft.cpp
2020-09-03 18:28:07 +00:00
melonDLDI.h
2019-05-01 03:16:54 +00:00
NDS.cpp
NDSCart.cpp
Platform.h
2020-05-29 22:28:21 +00:00
ROMList.h
2019-05-01 03:16:54 +00:00
RTC.cpp
Savestate.cpp
SPI.cpp
SPU.cpp
2020-04-27 20:02:45 +00:00
types.h
version.h
2019-05-01 03:16:54 +00:00
Wifi.cpp
WifiAP.cpp
2019-10-15 23:37:44 +00:00
tiny-AES-c/aes.c
xxhash/xxhash.c
2019-07-14 17:24:00 +00:00
)
if (ENABLE_OGLRENDERER)
target_sources(core PRIVATE
GPU_OpenGL.cpp
GPU_OpenGL_shaders.h
GPU3D_OpenGL.cpp
GPU3D_OpenGL_shaders.h
OpenGLSupport.cpp
)
endif()
2019-07-14 17:24:00 +00:00
if (ENABLE_JIT)
enable_language(ASM)
2019-07-14 17:24:00 +00:00
target_sources(core PRIVATE
ARM_InstrInfo.cpp
ARMJIT.cpp
ARMJIT_Memory.cpp
2019-07-14 17:24:00 +00:00
dolphin/CommonFuncs.cpp
)
2020-02-04 17:29:52 +00: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 17:29:52 +00:00
)
set_source_files_properties(ARMJIT_x64/ARMJIT_Linkage.s PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp")
2020-02-04 17:29:52 +00: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 17:29:52 +00:00
)
2020-07-23 19:07:33 +00:00
set_source_files_properties(ARMJIT_A64/ARMJIT_Linkage.s PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp")
2020-02-04 17:29:52 +00:00
endif()
2019-07-14 17:24:00 +00:00
endif()
2019-05-01 03:16:54 +00:00
if (ENABLE_OGLRENDERER)
if (WIN32)
target_link_libraries(core ole32 comctl32 ws2_32 opengl32)
else()
target_link_libraries(core GL EGL)
endif()
else()
if (WIN32)
target_link_libraries(core ole32 comctl32 ws2_32)
else()
target_link_libraries(core)
endif()
endif()