2017-11-26 12:39:27 +01:00
|
|
|
add_library(dynarmic
|
2018-01-04 22:12:02 +01:00
|
|
|
../include/dynarmic/A32/a32.h
|
|
|
|
../include/dynarmic/A32/callbacks.h
|
|
|
|
../include/dynarmic/A32/coprocessor.h
|
|
|
|
../include/dynarmic/A32/coprocessor_util.h
|
|
|
|
../include/dynarmic/A32/disassembler.h
|
2017-02-16 19:18:29 +01:00
|
|
|
common/address_range.h
|
2016-07-04 11:22:11 +02:00
|
|
|
common/assert.h
|
|
|
|
common/bit_util.h
|
|
|
|
common/common_types.h
|
2016-08-06 23:23:01 +02:00
|
|
|
common/intrusive_list.h
|
2016-08-24 21:07:08 +02:00
|
|
|
common/iterator_util.h
|
2018-01-01 16:23:56 +01:00
|
|
|
common/memory_pool.cpp
|
2016-08-06 21:41:00 +02:00
|
|
|
common/memory_pool.h
|
2016-07-04 11:22:11 +02:00
|
|
|
common/mp.h
|
|
|
|
common/scope_exit.h
|
|
|
|
common/string_util.h
|
2017-02-16 20:30:56 +01:00
|
|
|
common/variant_util.h
|
2018-01-01 16:23:56 +01:00
|
|
|
frontend/A32/decoder/arm.h
|
|
|
|
frontend/A32/decoder/thumb16.h
|
|
|
|
frontend/A32/decoder/thumb32.h
|
|
|
|
frontend/A32/decoder/vfp2.h
|
|
|
|
frontend/A32/disassembler/disassembler.h
|
|
|
|
frontend/A32/disassembler/disassembler_arm.cpp
|
|
|
|
frontend/A32/disassembler/disassembler_thumb.cpp
|
|
|
|
frontend/A32/FPSCR.h
|
2018-01-01 16:47:56 +01:00
|
|
|
frontend/A32/ir_emitter.cpp
|
|
|
|
frontend/A32/ir_emitter.h
|
2018-01-01 16:23:56 +01:00
|
|
|
frontend/A32/location_descriptor.cpp
|
|
|
|
frontend/A32/location_descriptor.h
|
|
|
|
frontend/A32/PSR.h
|
|
|
|
frontend/A32/translate/translate.cpp
|
|
|
|
frontend/A32/translate/translate.h
|
|
|
|
frontend/A32/translate/translate_arm.cpp
|
|
|
|
frontend/A32/translate/translate_arm/branch.cpp
|
|
|
|
frontend/A32/translate/translate_arm/coprocessor.cpp
|
|
|
|
frontend/A32/translate/translate_arm/data_processing.cpp
|
|
|
|
frontend/A32/translate/translate_arm/exception_generating.cpp
|
|
|
|
frontend/A32/translate/translate_arm/extension.cpp
|
|
|
|
frontend/A32/translate/translate_arm/load_store.cpp
|
|
|
|
frontend/A32/translate/translate_arm/misc.cpp
|
|
|
|
frontend/A32/translate/translate_arm/multiply.cpp
|
|
|
|
frontend/A32/translate/translate_arm/packing.cpp
|
|
|
|
frontend/A32/translate/translate_arm/parallel.cpp
|
|
|
|
frontend/A32/translate/translate_arm/reversal.cpp
|
|
|
|
frontend/A32/translate/translate_arm/saturated.cpp
|
|
|
|
frontend/A32/translate/translate_arm/status_register_access.cpp
|
|
|
|
frontend/A32/translate/translate_arm/synchronization.cpp
|
|
|
|
frontend/A32/translate/translate_arm/translate_arm.h
|
|
|
|
frontend/A32/translate/translate_arm/vfp2.cpp
|
|
|
|
frontend/A32/translate/translate_thumb.cpp
|
|
|
|
frontend/A32/types.cpp
|
|
|
|
frontend/A32/types.h
|
2018-01-05 00:05:27 +01:00
|
|
|
frontend/A64/decoder/a64.h
|
|
|
|
frontend/A64/imm.h
|
|
|
|
frontend/A64/location_descriptor.cpp
|
|
|
|
frontend/A64/location_descriptor.h
|
|
|
|
frontend/A64/translate/impl/impl.h
|
|
|
|
frontend/A64/translate/translate.cpp
|
|
|
|
frontend/A64/translate/translate.h
|
|
|
|
frontend/A64/types.cpp
|
|
|
|
frontend/A64/types.h
|
2016-07-04 11:22:11 +02:00
|
|
|
frontend/decoder/decoder_detail.h
|
2016-09-17 10:48:18 +02:00
|
|
|
frontend/decoder/matcher.h
|
2018-01-01 16:23:56 +01:00
|
|
|
frontend/ir/basic_block.cpp
|
2016-08-17 16:53:36 +02:00
|
|
|
frontend/ir/basic_block.h
|
2018-01-01 16:23:56 +01:00
|
|
|
frontend/ir/ir_emitter.cpp
|
2016-07-14 15:39:43 +02:00
|
|
|
frontend/ir/ir_emitter.h
|
2018-01-01 16:23:56 +01:00
|
|
|
frontend/ir/location_descriptor.cpp
|
2016-09-05 12:54:09 +02:00
|
|
|
frontend/ir/location_descriptor.h
|
2018-01-01 16:23:56 +01:00
|
|
|
frontend/ir/microinstruction.cpp
|
2016-08-17 16:53:36 +02:00
|
|
|
frontend/ir/microinstruction.h
|
2018-01-01 16:23:56 +01:00
|
|
|
frontend/ir/opcodes.cpp
|
2016-07-04 11:22:11 +02:00
|
|
|
frontend/ir/opcodes.h
|
2016-08-17 16:53:36 +02:00
|
|
|
frontend/ir/terminal.h
|
2018-01-01 16:23:56 +01:00
|
|
|
frontend/ir/value.cpp
|
2016-08-17 16:53:36 +02:00
|
|
|
frontend/ir/value.h
|
2018-01-01 16:23:56 +01:00
|
|
|
ir_opt/constant_propagation_pass.cpp
|
|
|
|
ir_opt/dead_code_elimination_pass.cpp
|
|
|
|
ir_opt/get_set_elimination_pass.cpp
|
2016-07-21 22:48:45 +02:00
|
|
|
ir_opt/passes.h
|
2018-01-01 16:23:56 +01:00
|
|
|
ir_opt/verification_pass.cpp
|
2017-11-26 12:39:27 +01:00
|
|
|
)
|
2016-07-04 11:22:11 +02:00
|
|
|
|
2016-12-11 16:35:26 +01:00
|
|
|
if (ARCHITECTURE_x86_64)
|
2017-11-26 12:39:27 +01:00
|
|
|
target_sources(dynarmic PRIVATE
|
2018-01-01 23:34:05 +01:00
|
|
|
backend_x64/a32_emit_x64.cpp
|
|
|
|
backend_x64/a32_emit_x64.h
|
2018-01-04 22:12:02 +01:00
|
|
|
backend_x64/a32_interface.cpp
|
2018-01-01 23:49:17 +01:00
|
|
|
backend_x64/a32_jitstate.cpp
|
|
|
|
backend_x64/a32_jitstate.h
|
2018-01-06 22:15:25 +01:00
|
|
|
backend_x64/a64_emit_x64.cpp
|
|
|
|
backend_x64/a64_emit_x64.h
|
|
|
|
backend_x64/a64_interface.cpp
|
|
|
|
backend_x64/a64_jitstate.cpp
|
|
|
|
backend_x64/a64_jitstate.h
|
2016-12-11 16:35:26 +01:00
|
|
|
backend_x64/abi.cpp
|
2018-01-01 16:23:56 +01:00
|
|
|
backend_x64/abi.h
|
2016-12-11 16:35:26 +01:00
|
|
|
backend_x64/block_of_code.cpp
|
2018-01-01 16:23:56 +01:00
|
|
|
backend_x64/block_of_code.h
|
2018-01-06 22:15:25 +01:00
|
|
|
backend_x64/callback.cpp
|
|
|
|
backend_x64/callback.h
|
2017-03-18 18:20:21 +01:00
|
|
|
backend_x64/constant_pool.cpp
|
2018-01-01 16:23:56 +01:00
|
|
|
backend_x64/constant_pool.h
|
2016-12-11 16:35:26 +01:00
|
|
|
backend_x64/emit_x64.cpp
|
2018-01-01 16:23:56 +01:00
|
|
|
backend_x64/emit_x64.h
|
2016-12-11 16:35:26 +01:00
|
|
|
backend_x64/hostloc.cpp
|
2018-01-01 16:23:56 +01:00
|
|
|
backend_x64/hostloc.h
|
2018-01-04 22:12:02 +01:00
|
|
|
backend_x64/jitstate_info.h
|
2017-02-22 00:38:36 +01:00
|
|
|
backend_x64/oparg.h
|
2018-01-01 16:23:56 +01:00
|
|
|
backend_x64/reg_alloc.cpp
|
2016-12-11 16:35:26 +01:00
|
|
|
backend_x64/reg_alloc.h
|
2017-11-26 12:39:27 +01:00
|
|
|
)
|
2016-12-11 16:38:00 +01:00
|
|
|
|
|
|
|
if (WIN32)
|
2017-11-26 12:39:27 +01:00
|
|
|
target_sources(dynarmic PRIVATE backend_x64/exception_handler_windows.cpp)
|
2016-12-11 16:38:00 +01:00
|
|
|
else()
|
2017-11-26 12:39:27 +01:00
|
|
|
target_sources(dynarmic PRIVATE backend_x64/exception_handler_generic.cpp)
|
2016-12-11 16:38:00 +01:00
|
|
|
endif()
|
2016-12-11 16:35:26 +01:00
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "Unsupported architecture")
|
|
|
|
endif()
|
|
|
|
|
2016-08-25 19:22:08 +02:00
|
|
|
include(CreateDirectoryGroups)
|
2017-11-26 12:39:27 +01:00
|
|
|
create_target_directory_groups(dynarmic)
|
2016-08-25 19:22:08 +02:00
|
|
|
|
|
|
|
target_include_directories(dynarmic
|
|
|
|
PUBLIC ../include
|
|
|
|
PRIVATE .)
|
2016-12-19 01:41:21 +01:00
|
|
|
target_compile_options(dynarmic PRIVATE ${DYNARMIC_CXX_FLAGS})
|
2017-03-07 22:53:33 +01:00
|
|
|
target_link_libraries(dynarmic
|
2017-12-07 21:28:33 +01:00
|
|
|
PUBLIC
|
2017-03-07 22:53:33 +01:00
|
|
|
boost
|
2017-12-07 21:28:33 +01:00
|
|
|
PRIVATE
|
2017-08-27 20:50:19 +02:00
|
|
|
fmt::fmt
|
2017-03-07 22:53:33 +01:00
|
|
|
xbyak
|
|
|
|
$<$<BOOL:DYNARMIC_USE_LLVM>:${llvm_libs}>
|
|
|
|
)
|
2016-08-25 23:21:19 +02:00
|
|
|
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
|
|
|
target_compile_definitions(dynarmic PRIVATE FMT_USE_WINDOWS_H=0)
|
|
|
|
endif()
|