2017-11-26 12:39:27 +01:00
|
|
|
add_library(dynarmic
|
2018-01-04 22:12:02 +01:00
|
|
|
../include/dynarmic/A32/a32.h
|
2018-01-27 23:36:55 +01:00
|
|
|
../include/dynarmic/A32/config.h
|
2018-01-04 22:12:02 +01:00
|
|
|
../include/dynarmic/A32/coprocessor.h
|
|
|
|
../include/dynarmic/A32/coprocessor_util.h
|
|
|
|
../include/dynarmic/A32/disassembler.h
|
2018-06-05 13:25:16 +02:00
|
|
|
../include/dynarmic/A64/a64.h
|
|
|
|
../include/dynarmic/A64/config.h
|
2018-06-05 13:27:37 +02:00
|
|
|
../include/dynarmic/A64/exclusive_monitor.h
|
2020-04-23 16:25:11 +02:00
|
|
|
common/assert.cpp
|
2016-07-04 11:22:11 +02:00
|
|
|
common/assert.h
|
|
|
|
common/bit_util.h
|
2018-02-07 13:22:35 +01:00
|
|
|
common/cast_util.h
|
2016-07-04 11:22:11 +02:00
|
|
|
common/common_types.h
|
2018-07-29 09:48:28 +02:00
|
|
|
common/crypto/aes.cpp
|
|
|
|
common/crypto/aes.h
|
|
|
|
common/crypto/crc32.cpp
|
|
|
|
common/crypto/crc32.h
|
|
|
|
common/crypto/sm4.cpp
|
|
|
|
common/crypto/sm4.h
|
2018-07-17 20:53:21 +02:00
|
|
|
common/fp/fpcr.h
|
2018-06-26 21:51:25 +02:00
|
|
|
common/fp/fpsr.h
|
2018-07-23 17:22:16 +02:00
|
|
|
common/fp/fused.cpp
|
|
|
|
common/fp/fused.h
|
2018-07-14 10:41:36 +02:00
|
|
|
common/fp/info.h
|
2018-06-29 19:52:48 +02:00
|
|
|
common/fp/mantissa_util.h
|
2018-06-29 20:34:46 +02:00
|
|
|
common/fp/op.h
|
2019-05-25 00:55:31 +02:00
|
|
|
common/fp/op/FPCompare.cpp
|
|
|
|
common/fp/op/FPCompare.h
|
2019-03-03 07:08:12 +01:00
|
|
|
common/fp/op/FPConvert.cpp
|
|
|
|
common/fp/op/FPConvert.h
|
2018-07-23 17:22:16 +02:00
|
|
|
common/fp/op/FPMulAdd.cpp
|
|
|
|
common/fp/op/FPMulAdd.h
|
2019-05-05 03:05:50 +02:00
|
|
|
common/fp/op/FPNeg.h
|
2018-07-25 19:36:40 +02:00
|
|
|
common/fp/op/FPRecipEstimate.cpp
|
|
|
|
common/fp/op/FPRecipEstimate.h
|
2019-03-02 23:53:50 +01:00
|
|
|
common/fp/op/FPRecipExponent.cpp
|
|
|
|
common/fp/op/FPRecipExponent.h
|
2018-07-25 20:11:20 +02:00
|
|
|
common/fp/op/FPRecipStepFused.cpp
|
|
|
|
common/fp/op/FPRecipStepFused.h
|
2018-07-16 14:48:30 +02:00
|
|
|
common/fp/op/FPRoundInt.cpp
|
|
|
|
common/fp/op/FPRoundInt.h
|
2018-07-22 19:18:22 +02:00
|
|
|
common/fp/op/FPRSqrtEstimate.cpp
|
|
|
|
common/fp/op/FPRSqrtEstimate.h
|
2018-07-23 23:02:12 +02:00
|
|
|
common/fp/op/FPRSqrtStepFused.cpp
|
|
|
|
common/fp/op/FPRSqrtStepFused.h
|
2018-07-16 13:51:36 +02:00
|
|
|
common/fp/op/FPToFixed.cpp
|
|
|
|
common/fp/op/FPToFixed.h
|
2018-06-27 14:51:39 +02:00
|
|
|
common/fp/process_exception.cpp
|
|
|
|
common/fp/process_exception.h
|
2018-07-16 14:48:13 +02:00
|
|
|
common/fp/process_nan.cpp
|
|
|
|
common/fp/process_nan.h
|
2018-06-26 16:10:44 +02:00
|
|
|
common/fp/rounding_mode.h
|
2018-06-27 14:52:20 +02:00
|
|
|
common/fp/unpacked.cpp
|
|
|
|
common/fp/unpacked.h
|
2018-06-26 21:54:42 +02:00
|
|
|
common/fp/util.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-02-18 12:20:43 +01:00
|
|
|
common/llvm_disassemble.cpp
|
|
|
|
common/llvm_disassemble.h
|
2020-04-04 01:59:27 +02:00
|
|
|
common/lut_from_list.h
|
2018-03-12 19:52:27 +01:00
|
|
|
common/macro_util.h
|
2018-09-08 04:45:00 +02:00
|
|
|
common/math_util.cpp
|
2018-03-12 19:52:27 +01:00
|
|
|
common/math_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
|
2018-06-28 22:45:13 +02:00
|
|
|
common/safe_ops.h
|
2016-07-04 11:22:11 +02:00
|
|
|
common/scope_exit.h
|
|
|
|
common/string_util.h
|
2018-06-28 22:44:21 +02:00
|
|
|
common/u128.cpp
|
|
|
|
common/u128.h
|
2017-02-16 20:30:56 +01:00
|
|
|
common/variant_util.h
|
2018-01-01 16:23:56 +01:00
|
|
|
frontend/A32/types.cpp
|
|
|
|
frontend/A32/types.h
|
2018-01-05 00:05:27 +01:00
|
|
|
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
|
2019-05-06 18:31:00 +02:00
|
|
|
frontend/imm.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-09-09 02:08:01 +02:00
|
|
|
frontend/ir/cond.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
|
2018-01-24 20:37:11 +01:00
|
|
|
frontend/ir/opcodes.inc
|
2016-08-17 16:53:36 +02:00
|
|
|
frontend/ir/terminal.h
|
2018-02-11 12:46:18 +01:00
|
|
|
frontend/ir/type.cpp
|
|
|
|
frontend/ir/type.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
|
2020-04-20 17:12:19 +02:00
|
|
|
ir_opt/identity_removal_pass.cpp
|
2020-04-20 21:05:32 +02:00
|
|
|
ir_opt/ir_matcher.h
|
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
|
|
|
|
2020-04-18 11:34:02 +02:00
|
|
|
if ("A32" IN_LIST DYNARMIC_FRONTENDS)
|
|
|
|
target_sources(dynarmic PRIVATE
|
|
|
|
frontend/A32/decoder/arm.h
|
|
|
|
frontend/A32/decoder/arm.inc
|
2020-05-10 11:50:34 +02:00
|
|
|
frontend/A32/decoder/asimd.h
|
|
|
|
frontend/A32/decoder/asimd.inc
|
2020-04-18 11:34:02 +02:00
|
|
|
frontend/A32/decoder/thumb16.h
|
|
|
|
frontend/A32/decoder/thumb32.h
|
|
|
|
frontend/A32/decoder/vfp.h
|
|
|
|
frontend/A32/decoder/vfp.inc
|
|
|
|
frontend/A32/disassembler/disassembler.h
|
|
|
|
frontend/A32/disassembler/disassembler_arm.cpp
|
|
|
|
frontend/A32/disassembler/disassembler_thumb.cpp
|
|
|
|
frontend/A32/FPSCR.h
|
|
|
|
frontend/A32/ir_emitter.cpp
|
|
|
|
frontend/A32/ir_emitter.h
|
|
|
|
frontend/A32/ITState.h
|
|
|
|
frontend/A32/location_descriptor.cpp
|
|
|
|
frontend/A32/location_descriptor.h
|
|
|
|
frontend/A32/PSR.h
|
2020-05-16 13:30:09 +02:00
|
|
|
frontend/A32/translate/impl/asimd_load_store_structures.cpp
|
2020-04-18 11:34:02 +02:00
|
|
|
frontend/A32/translate/impl/barrier.cpp
|
|
|
|
frontend/A32/translate/impl/branch.cpp
|
|
|
|
frontend/A32/translate/impl/coprocessor.cpp
|
|
|
|
frontend/A32/translate/impl/crc32.cpp
|
|
|
|
frontend/A32/translate/impl/data_processing.cpp
|
|
|
|
frontend/A32/translate/impl/divide.cpp
|
|
|
|
frontend/A32/translate/impl/exception_generating.cpp
|
|
|
|
frontend/A32/translate/impl/extension.cpp
|
|
|
|
frontend/A32/translate/impl/hint.cpp
|
|
|
|
frontend/A32/translate/impl/load_store.cpp
|
|
|
|
frontend/A32/translate/impl/misc.cpp
|
|
|
|
frontend/A32/translate/impl/multiply.cpp
|
|
|
|
frontend/A32/translate/impl/packing.cpp
|
|
|
|
frontend/A32/translate/impl/parallel.cpp
|
|
|
|
frontend/A32/translate/impl/reversal.cpp
|
|
|
|
frontend/A32/translate/impl/saturated.cpp
|
|
|
|
frontend/A32/translate/impl/status_register_access.cpp
|
|
|
|
frontend/A32/translate/impl/synchronization.cpp
|
|
|
|
frontend/A32/translate/impl/thumb16.cpp
|
|
|
|
frontend/A32/translate/impl/thumb32.cpp
|
|
|
|
frontend/A32/translate/impl/translate_arm.h
|
|
|
|
frontend/A32/translate/impl/translate_thumb.h
|
|
|
|
frontend/A32/translate/impl/vfp.cpp
|
|
|
|
frontend/A32/translate/translate.cpp
|
|
|
|
frontend/A32/translate/translate.h
|
|
|
|
frontend/A32/translate/translate_arm.cpp
|
|
|
|
frontend/A32/translate/translate_thumb.cpp
|
|
|
|
ir_opt/a32_constant_memory_reads_pass.cpp
|
|
|
|
ir_opt/a32_get_set_elimination_pass.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if ("A64" IN_LIST DYNARMIC_FRONTENDS)
|
|
|
|
target_sources(dynarmic PRIVATE
|
|
|
|
frontend/A64/decoder/a64.h
|
|
|
|
frontend/A64/decoder/a64.inc
|
|
|
|
frontend/A64/ir_emitter.cpp
|
|
|
|
frontend/A64/ir_emitter.h
|
|
|
|
frontend/A64/location_descriptor.cpp
|
|
|
|
frontend/A64/location_descriptor.h
|
|
|
|
frontend/A64/translate/impl/branch.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_addsub.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_bitfield.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_conditional_compare.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_conditional_select.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_crc32.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_logical.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_multiply.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_pcrel.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_register.cpp
|
|
|
|
frontend/A64/translate/impl/data_processing_shift.cpp
|
|
|
|
frontend/A64/translate/impl/exception_generating.cpp
|
|
|
|
frontend/A64/translate/impl/floating_point_compare.cpp
|
|
|
|
frontend/A64/translate/impl/floating_point_conditional_compare.cpp
|
|
|
|
frontend/A64/translate/impl/floating_point_conditional_select.cpp
|
|
|
|
frontend/A64/translate/impl/floating_point_conversion_fixed_point.cpp
|
|
|
|
frontend/A64/translate/impl/floating_point_conversion_integer.cpp
|
|
|
|
frontend/A64/translate/impl/floating_point_data_processing_one_register.cpp
|
|
|
|
frontend/A64/translate/impl/floating_point_data_processing_three_register.cpp
|
|
|
|
frontend/A64/translate/impl/floating_point_data_processing_two_register.cpp
|
|
|
|
frontend/A64/translate/impl/impl.cpp
|
|
|
|
frontend/A64/translate/impl/impl.h
|
|
|
|
frontend/A64/translate/impl/load_store_exclusive.cpp
|
|
|
|
frontend/A64/translate/impl/load_store_load_literal.cpp
|
|
|
|
frontend/A64/translate/impl/load_store_multiple_structures.cpp
|
|
|
|
frontend/A64/translate/impl/load_store_no_allocate_pair.cpp
|
|
|
|
frontend/A64/translate/impl/load_store_register_immediate.cpp
|
|
|
|
frontend/A64/translate/impl/load_store_register_pair.cpp
|
|
|
|
frontend/A64/translate/impl/load_store_register_register_offset.cpp
|
|
|
|
frontend/A64/translate/impl/load_store_register_unprivileged.cpp
|
|
|
|
frontend/A64/translate/impl/load_store_single_structure.cpp
|
|
|
|
frontend/A64/translate/impl/move_wide.cpp
|
|
|
|
frontend/A64/translate/impl/simd_across_lanes.cpp
|
|
|
|
frontend/A64/translate/impl/simd_aes.cpp
|
|
|
|
frontend/A64/translate/impl/simd_copy.cpp
|
|
|
|
frontend/A64/translate/impl/simd_crypto_four_register.cpp
|
|
|
|
frontend/A64/translate/impl/simd_crypto_three_register.cpp
|
|
|
|
frontend/A64/translate/impl/simd_extract.cpp
|
|
|
|
frontend/A64/translate/impl/simd_modified_immediate.cpp
|
|
|
|
frontend/A64/translate/impl/simd_permute.cpp
|
|
|
|
frontend/A64/translate/impl/simd_scalar_pairwise.cpp
|
|
|
|
frontend/A64/translate/impl/simd_scalar_shift_by_immediate.cpp
|
|
|
|
frontend/A64/translate/impl/simd_scalar_three_same.cpp
|
|
|
|
frontend/A64/translate/impl/simd_scalar_two_register_misc.cpp
|
|
|
|
frontend/A64/translate/impl/simd_scalar_x_indexed_element.cpp
|
|
|
|
frontend/A64/translate/impl/simd_sha.cpp
|
|
|
|
frontend/A64/translate/impl/simd_sha512.cpp
|
|
|
|
frontend/A64/translate/impl/simd_shift_by_immediate.cpp
|
|
|
|
frontend/A64/translate/impl/simd_table_lookup.cpp
|
|
|
|
frontend/A64/translate/impl/simd_three_different.cpp
|
|
|
|
frontend/A64/translate/impl/simd_three_same.cpp
|
|
|
|
frontend/A64/translate/impl/simd_three_same_extra.cpp
|
|
|
|
frontend/A64/translate/impl/simd_two_register_misc.cpp
|
|
|
|
frontend/A64/translate/impl/simd_vector_x_indexed_element.cpp
|
|
|
|
frontend/A64/translate/impl/sys_dc.cpp
|
|
|
|
frontend/A64/translate/impl/system.cpp
|
|
|
|
frontend/A64/translate/impl/system_flag_format.cpp
|
|
|
|
frontend/A64/translate/impl/system_flag_manipulation.cpp
|
|
|
|
frontend/A64/translate/translate.cpp
|
|
|
|
frontend/A64/translate/translate.h
|
|
|
|
ir_opt/a64_callback_config_pass.cpp
|
|
|
|
ir_opt/a64_get_set_elimination_pass.cpp
|
|
|
|
ir_opt/a64_merge_interpret_blocks.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2016-12-11 16:35:26 +01:00
|
|
|
if (ARCHITECTURE_x86_64)
|
2017-11-26 12:39:27 +01:00
|
|
|
target_sources(dynarmic PRIVATE
|
2020-04-18 11:34:02 +02:00
|
|
|
backend/x64/abi.cpp
|
|
|
|
backend/x64/abi.h
|
|
|
|
backend/x64/block_of_code.cpp
|
|
|
|
backend/x64/block_of_code.h
|
|
|
|
backend/x64/block_range_information.cpp
|
|
|
|
backend/x64/block_range_information.h
|
|
|
|
backend/x64/callback.cpp
|
|
|
|
backend/x64/callback.h
|
|
|
|
backend/x64/constant_pool.cpp
|
|
|
|
backend/x64/constant_pool.h
|
|
|
|
backend/x64/devirtualize.h
|
|
|
|
backend/x64/emit_x64.cpp
|
|
|
|
backend/x64/emit_x64.h
|
|
|
|
backend/x64/emit_x64_aes.cpp
|
|
|
|
backend/x64/emit_x64_crc32.cpp
|
|
|
|
backend/x64/emit_x64_data_processing.cpp
|
|
|
|
backend/x64/emit_x64_floating_point.cpp
|
|
|
|
backend/x64/emit_x64_packed.cpp
|
|
|
|
backend/x64/emit_x64_saturation.cpp
|
|
|
|
backend/x64/emit_x64_sm4.cpp
|
|
|
|
backend/x64/emit_x64_vector.cpp
|
|
|
|
backend/x64/emit_x64_vector_floating_point.cpp
|
|
|
|
backend/x64/exception_handler.h
|
|
|
|
backend/x64/hostloc.cpp
|
|
|
|
backend/x64/hostloc.h
|
|
|
|
backend/x64/jitstate_info.h
|
|
|
|
backend/x64/oparg.h
|
|
|
|
backend/x64/perf_map.cpp
|
|
|
|
backend/x64/perf_map.h
|
|
|
|
backend/x64/reg_alloc.cpp
|
|
|
|
backend/x64/reg_alloc.h
|
2017-11-26 12:39:27 +01:00
|
|
|
)
|
2016-12-11 16:38:00 +01:00
|
|
|
|
2020-04-18 11:34:02 +02:00
|
|
|
if ("A32" IN_LIST DYNARMIC_FRONTENDS)
|
|
|
|
target_sources(dynarmic PRIVATE
|
|
|
|
backend/x64/a32_emit_x64.cpp
|
|
|
|
backend/x64/a32_emit_x64.h
|
|
|
|
backend/x64/a32_interface.cpp
|
|
|
|
backend/x64/a32_jitstate.cpp
|
|
|
|
backend/x64/a32_jitstate.h
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if ("A64" IN_LIST DYNARMIC_FRONTENDS)
|
|
|
|
target_sources(dynarmic PRIVATE
|
|
|
|
backend/x64/a64_emit_x64.cpp
|
|
|
|
backend/x64/a64_emit_x64.h
|
|
|
|
backend/x64/a64_exclusive_monitor.cpp
|
|
|
|
backend/x64/a64_interface.cpp
|
|
|
|
backend/x64/a64_jitstate.cpp
|
|
|
|
backend/x64/a64_jitstate.h
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2016-12-11 16:38:00 +01:00
|
|
|
if (WIN32)
|
2018-08-14 20:13:47 +02:00
|
|
|
target_sources(dynarmic PRIVATE backend/x64/exception_handler_windows.cpp)
|
2020-04-08 18:17:06 +02:00
|
|
|
elseif (APPLE)
|
|
|
|
find_path(MACH_EXC_DEFS_DIR "mach/mach_exc.defs")
|
|
|
|
if (NOT MACH_EXC_DEFS_DIR)
|
|
|
|
message(WARNING "macOS fastmem disabled: unable to find mach/mach_exc.defs")
|
|
|
|
target_sources(dynarmic PRIVATE backend/x64/exception_handler_generic.cpp)
|
|
|
|
else()
|
|
|
|
message(STATUS "mach/mach_exc.defs location: ${MACH_EXC_DEFS_DIR}")
|
|
|
|
execute_process(
|
|
|
|
COMMAND
|
|
|
|
mkdir -p "${CMAKE_CURRENT_SOURCE_DIR}/backend/x64/mig"
|
|
|
|
COMMAND
|
|
|
|
mig
|
|
|
|
-arch x86_64
|
|
|
|
-user "${CMAKE_CURRENT_SOURCE_DIR}/backend/x64/mig/mach_exc_user.c"
|
|
|
|
-header "${CMAKE_CURRENT_SOURCE_DIR}/backend/x64/mig/mach_exc_user.h"
|
|
|
|
-server "${CMAKE_CURRENT_SOURCE_DIR}/backend/x64/mig/mach_exc_server.c"
|
|
|
|
-sheader "${CMAKE_CURRENT_SOURCE_DIR}/backend/x64/mig/mach_exc_server.h"
|
|
|
|
"${MACH_EXC_DEFS_DIR}/mach/mach_exc.defs"
|
|
|
|
)
|
|
|
|
target_sources(dynarmic PRIVATE
|
|
|
|
backend/x64/exception_handler_macos.cpp
|
|
|
|
backend/x64/mig/mach_exc_server.c
|
|
|
|
backend/x64/mig/mach_exc_server.h
|
|
|
|
)
|
|
|
|
endif()
|
2020-04-08 23:39:21 +02:00
|
|
|
elseif (UNIX)
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
|
|
target_link_libraries(dynarmic PUBLIC rt)
|
|
|
|
endif()
|
|
|
|
target_sources(dynarmic PRIVATE backend/x64/exception_handler_posix.cpp)
|
2016-12-11 16:38:00 +01:00
|
|
|
else()
|
2018-08-14 20:13:47 +02: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
|
|
|
PRIVATE
|
2019-05-03 18:35:07 +02:00
|
|
|
boost
|
2017-08-27 20:50:19 +02:00
|
|
|
fmt::fmt
|
2020-04-04 01:59:27 +02:00
|
|
|
mp
|
2017-03-07 22:53:33 +01:00
|
|
|
xbyak
|
|
|
|
$<$<BOOL:DYNARMIC_USE_LLVM>:${llvm_libs}>
|
|
|
|
)
|
2018-01-24 20:14:19 +01:00
|
|
|
if (DYNARMIC_ENABLE_CPU_FEATURE_DETECTION)
|
|
|
|
target_compile_definitions(dynarmic PRIVATE DYNARMIC_ENABLE_CPU_FEATURE_DETECTION=1)
|
|
|
|
endif()
|
2018-08-23 21:52:50 +02:00
|
|
|
if (DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT)
|
|
|
|
target_compile_definitions(dynarmic PRIVATE DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT=1)
|
|
|
|
endif()
|
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()
|
2019-05-08 23:18:56 +02:00
|
|
|
# Disable this as it relies on a non-standard feature
|
|
|
|
target_compile_definitions(dynarmic PRIVATE FMT_USE_USER_DEFINED_LITERALS=0)
|