2019-10-04 03:54:09 +00:00
|
|
|
add_library(core
|
2019-12-15 11:58:27 +00:00
|
|
|
analog_controller.cpp
|
|
|
|
analog_controller.h
|
2019-11-16 05:27:57 +00:00
|
|
|
bios.cpp
|
|
|
|
bios.h
|
2019-10-15 08:02:48 +00:00
|
|
|
bus.cpp
|
|
|
|
bus.h
|
|
|
|
bus.inl
|
|
|
|
cdrom.cpp
|
|
|
|
cdrom.h
|
2020-02-21 15:19:10 +00:00
|
|
|
cdrom_async_reader.cpp
|
|
|
|
cdrom_async_reader.h
|
2019-12-08 14:51:52 +00:00
|
|
|
controller.cpp
|
|
|
|
controller.h
|
2019-11-19 10:30:04 +00:00
|
|
|
cpu_code_cache.cpp
|
|
|
|
cpu_code_cache.h
|
2019-10-04 03:54:09 +00:00
|
|
|
cpu_core.cpp
|
|
|
|
cpu_core.h
|
|
|
|
cpu_core.inl
|
2019-10-15 08:02:48 +00:00
|
|
|
cpu_disasm.cpp
|
|
|
|
cpu_disasm.h
|
2019-11-19 10:30:04 +00:00
|
|
|
cpu_types.cpp
|
2019-10-15 08:02:48 +00:00
|
|
|
cpu_types.h
|
|
|
|
digital_controller.cpp
|
|
|
|
digital_controller.h
|
|
|
|
dma.cpp
|
|
|
|
dma.h
|
2019-11-29 13:46:04 +00:00
|
|
|
game_list.cpp
|
|
|
|
game_list.h
|
2019-10-15 08:02:48 +00:00
|
|
|
gpu.cpp
|
|
|
|
gpu.h
|
2019-10-20 12:31:45 +00:00
|
|
|
gpu_commands.cpp
|
2019-10-15 08:02:48 +00:00
|
|
|
gpu_hw.cpp
|
|
|
|
gpu_hw.h
|
|
|
|
gpu_hw_opengl.cpp
|
|
|
|
gpu_hw_opengl.h
|
2019-12-06 15:37:27 +00:00
|
|
|
gpu_hw_opengl_es.cpp
|
|
|
|
gpu_hw_opengl_es.h
|
2019-11-03 03:36:54 +00:00
|
|
|
gpu_hw_shadergen.cpp
|
|
|
|
gpu_hw_shadergen.h
|
2019-10-26 02:57:35 +00:00
|
|
|
gpu_sw.cpp
|
|
|
|
gpu_sw.h
|
2019-10-15 08:02:48 +00:00
|
|
|
gte.cpp
|
|
|
|
gte.h
|
|
|
|
gte.inl
|
|
|
|
gte_types.h
|
2020-01-24 04:51:36 +00:00
|
|
|
host_display.cpp
|
|
|
|
host_display.h
|
2019-10-15 08:02:48 +00:00
|
|
|
host_interface.cpp
|
|
|
|
host_interface.h
|
|
|
|
interrupt_controller.cpp
|
|
|
|
interrupt_controller.h
|
|
|
|
mdec.cpp
|
|
|
|
mdec.h
|
|
|
|
memory_card.cpp
|
|
|
|
memory_card.h
|
|
|
|
pad.cpp
|
|
|
|
pad.h
|
|
|
|
save_state_version.h
|
|
|
|
settings.cpp
|
|
|
|
settings.h
|
2019-12-07 11:09:02 +00:00
|
|
|
sio.cpp
|
|
|
|
sio.h
|
2019-10-15 08:02:48 +00:00
|
|
|
spu.cpp
|
|
|
|
spu.h
|
2019-10-04 03:54:09 +00:00
|
|
|
system.cpp
|
|
|
|
system.h
|
2019-10-15 08:02:48 +00:00
|
|
|
timers.cpp
|
|
|
|
timers.h
|
2020-01-24 04:53:40 +00:00
|
|
|
timing_event.cpp
|
|
|
|
timing_event.h
|
2019-10-04 03:54:09 +00:00
|
|
|
types.h
|
|
|
|
)
|
|
|
|
|
2019-11-27 15:55:33 +00:00
|
|
|
set(RECOMPILER_SRCS
|
|
|
|
cpu_recompiler_code_generator.cpp
|
|
|
|
cpu_recompiler_code_generator.h
|
|
|
|
cpu_recompiler_code_generator_generic.cpp
|
|
|
|
cpu_recompiler_register_cache.cpp
|
|
|
|
cpu_recompiler_register_cache.h
|
|
|
|
cpu_recompiler_thunks.cpp
|
|
|
|
cpu_recompiler_thunks.h
|
|
|
|
cpu_recompiler_types.h
|
|
|
|
)
|
|
|
|
|
2019-10-04 03:54:09 +00:00
|
|
|
target_include_directories(core PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
|
|
|
target_include_directories(core PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
2020-01-10 03:31:12 +00:00
|
|
|
target_link_libraries(core PUBLIC Threads::Threads common imgui tinyxml2)
|
2019-12-30 11:22:22 +00:00
|
|
|
target_link_libraries(core PRIVATE glad stb)
|
2019-10-04 03:54:09 +00:00
|
|
|
|
2019-11-03 14:39:48 +00:00
|
|
|
if(WIN32)
|
|
|
|
target_sources(core PRIVATE
|
|
|
|
gpu_hw_d3d11.cpp
|
|
|
|
gpu_hw_d3d11.h
|
|
|
|
)
|
2020-02-15 15:14:37 +00:00
|
|
|
target_link_libraries(core PRIVATE winmm.lib)
|
2019-11-03 14:39:48 +00:00
|
|
|
endif()
|
2019-11-19 10:30:04 +00:00
|
|
|
|
|
|
|
if(${CPU_ARCH} STREQUAL "x64")
|
|
|
|
target_include_directories(core PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../../dep/xbyak/xbyak")
|
2019-11-27 15:55:33 +00:00
|
|
|
target_compile_definitions(core PRIVATE "WITH_RECOMPILER=1")
|
|
|
|
target_sources(core PRIVATE ${RECOMPILER_SRCS}
|
|
|
|
cpu_recompiler_code_generator_x64.cpp
|
|
|
|
)
|
2019-11-19 10:30:04 +00:00
|
|
|
message("Building x64 recompiler")
|
2019-12-02 15:29:56 +00:00
|
|
|
elseif(${CPU_ARCH} STREQUAL "aarch64")
|
|
|
|
target_compile_definitions(core PRIVATE "WITH_RECOMPILER=1")
|
|
|
|
target_sources(core PRIVATE ${RECOMPILER_SRCS}
|
|
|
|
cpu_recompiler_code_generator_aarch64.cpp
|
|
|
|
)
|
|
|
|
target_link_libraries(core PRIVATE vixl)
|
|
|
|
message("Building AArch64 recompiler")
|
2019-11-19 10:30:04 +00:00
|
|
|
else()
|
|
|
|
message("Not building recompiler")
|
|
|
|
endif()
|