2021-01-12 18:05:25 +01:00
|
|
|
#
|
2021-12-20 15:03:42 +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
|
|
|
#
|
2021-12-20 15:03:42 +01:00
|
|
|
# This file is part of the 86Box distribution.
|
2021-01-12 18:05:25 +01:00
|
|
|
#
|
2021-12-20 15:03:42 +01:00
|
|
|
# CMake build script.
|
2021-01-12 18:05:25 +01:00
|
|
|
#
|
2021-12-20 15:03:42 +01:00
|
|
|
# Authors: David Hrdlička, <hrdlickadavid@outlook.com>
|
2021-01-12 18:05:25 +01:00
|
|
|
#
|
2021-12-20 15:03:42 +01:00
|
|
|
# Copyright 2020,2021 David Hrdlička.
|
2021-01-12 18:05:25 +01:00
|
|
|
#
|
|
|
|
|
|
2021-01-12 18:22:40 +01:00
|
|
|
if(DYNAREC)
|
2021-12-20 15:03:42 +01:00
|
|
|
add_library(dynarec OBJECT codegen.c codegen_ops.c)
|
2021-01-12 18:22:40 +01:00
|
|
|
|
2021-12-20 15:03:42 +01:00
|
|
|
if(ARCH STREQUAL "i386")
|
|
|
|
|
target_sources(dynarec PRIVATE codegen_x86.c
|
|
|
|
|
codegen_accumulate_x86.c)
|
|
|
|
|
elseif(ARCH STREQUAL "x86_64")
|
|
|
|
|
target_sources(dynarec PRIVATE codegen_x86-64.c
|
|
|
|
|
codegen_accumulate_x86-64.c)
|
|
|
|
|
else()
|
2022-04-12 15:58:57 +05:00
|
|
|
message(SEND_ERROR
|
2021-12-20 15:03:42 +01:00
|
|
|
"Dynarec is incompatible with target platform ${ARCH}")
|
|
|
|
|
endif()
|
2021-01-12 18:22:40 +01:00
|
|
|
|
2021-12-20 15:03:42 +01:00
|
|
|
target_link_libraries(86Box dynarec cgt)
|
2022-02-18 21:38:51 -05:00
|
|
|
endif()
|