Files
86Box/src/codegen_new/CMakeLists.txt

70 lines
2.0 KiB
CMake
Raw Normal View History

2021-01-12 18:05:25 +01:00
#
# 86Box A hypervisor and IBM PC system emulator that specializes in
# running old operating systems and software designed for IBM
# PC systems and compatibles from 1981 through fairly recent
# system designs based on the PCI bus.
2021-01-12 18:05:25 +01:00
#
# This file is part of the 86Box distribution.
2021-01-12 18:05:25 +01:00
#
# CMake build script.
2021-01-12 18:05:25 +01:00
#
# Authors: David Hrdlička, <hrdlickadavid@outlook.com>
2024-09-04 18:34:06 -04:00
# Jasmine Iwanek, <jriwanek@gmail.com>
2021-01-12 18:05:25 +01:00
#
2023-01-06 15:36:29 -05:00
# Copyright 2020-2021 David Hrdlička.
2024-09-04 18:34:06 -04:00
# Copyright 2024 Jasmine Iwanek.
2021-01-12 18:05:25 +01:00
#
2021-01-12 18:22:40 +01:00
if(DYNAREC)
2024-09-04 18:34:06 -04:00
add_library(dynarec OBJECT
codegen.c
codegen_accumulate.c
codegen_allocator.c
codegen_block.c
codegen_ir.c
codegen_ops.c
codegen_ops_3dnow.c
codegen_ops_branch.c
codegen_ops_arith.c
codegen_ops_fpu_arith.c
codegen_ops_fpu_constant.c
codegen_ops_fpu_loadstore.c
codegen_ops_fpu_misc.c
codegen_ops_helpers.c
codegen_ops_jump.c
codegen_ops_logic.c
codegen_ops_misc.c
codegen_ops_mmx_arith.c
codegen_ops_mmx_cmp.c
codegen_ops_mmx_loadstore.c
codegen_ops_mmx_logic.c
codegen_ops_mmx_pack.c
codegen_ops_mmx_shift.c
codegen_ops_mov.c
codegen_ops_shift.c
codegen_ops_stack.c
codegen_reg.c
)
2021-01-12 18:22:40 +01:00
2025-09-14 01:32:41 +01:00
if(ARCH STREQUAL "x86_64")
2024-09-04 18:34:06 -04:00
target_sources(dynarec PRIVATE
codegen_backend_x86-64.c
codegen_backend_x86-64_ops.c
codegen_backend_x86-64_ops_sse.c
2024-09-04 18:34:06 -04:00
codegen_backend_x86-64_uops.c
)
elseif(ARCH STREQUAL "arm64")
2024-09-04 18:34:06 -04:00
target_sources(dynarec PRIVATE
codegen_backend_arm64.c
codegen_backend_arm64_ops.c
codegen_backend_arm64_uops.c
codegen_backend_arm64_imm.c
)
else()
message(SEND_ERROR
"Dynarec is incompatible with target platform ${ARCH}")
endif()
2021-01-12 18:22:40 +01:00
target_link_libraries(86Box dynarec cgt)
2022-02-18 21:38:51 -05:00
endif()