Moved some files to the utils folder, that's where the CRC code is soon going to reside as well.

This commit is contained in:
OBattler
2025-02-13 10:31:12 +01:00
parent 1caa7564c2
commit 48f42af745
8 changed files with 28 additions and 7 deletions

View File

@@ -23,8 +23,6 @@ endif()
add_executable(86Box add_executable(86Box
86box.c 86box.c
config.c config.c
log.c
random.c
timer.c timer.c
io.c io.c
acpi.c acpi.c
@@ -41,15 +39,11 @@ add_executable(86Box
pci.c pci.c
mca.c mca.c
usb.c usb.c
fifo.c
fifo8.c
device.c device.c
nvr.c nvr.c
nvr_at.c nvr_at.c
nvr_ps2.c nvr_ps2.c
machine_status.c machine_status.c
ini.c
cJSON.c
) )
if(CMAKE_SYSTEM_NAME MATCHES "Linux") if(CMAKE_SYSTEM_NAME MATCHES "Linux")
@@ -106,7 +100,7 @@ if(INSTRUMENT)
endif() endif()
target_link_libraries(86Box cpu chipset mch dev mem fdd game cdrom zip mo hdd target_link_libraries(86Box cpu chipset mch dev mem fdd game cdrom zip mo hdd
net print scsi sio snd vid voodoo plat ui) net print scsi sio snd utils vid voodoo plat ui)
if(WIN32 AND ARCH STREQUAL "i386") if(WIN32 AND ARCH STREQUAL "i386")
if(MINGW) if(MINGW)
@@ -253,7 +247,9 @@ add_subdirectory(printer)
add_subdirectory(sio) add_subdirectory(sio)
add_subdirectory(scsi) add_subdirectory(scsi)
add_subdirectory(sound) add_subdirectory(sound)
add_subdirectory(utils)
add_subdirectory(video) add_subdirectory(video)
if (APPLE) if (APPLE)
add_subdirectory(mac) add_subdirectory(mac)
endif() endif()

25
src/utils/CMakeLists.txt Normal file
View File

@@ -0,0 +1,25 @@
#
# 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.
#
# This file is part of the 86Box distribution.
#
# CMake build script.
#
# Authors: David Hrdlička, <hrdlickadavid@outlook.com>
# Jasmine Iwanek, <jriwanek@gmail.com>
#
# Copyright 2020-2021 David Hrdlička.
# Copyright 2024 Jasmine Iwanek.
#
add_library(utils OBJECT
cJSON.c
fifo.c
fifo8.c
ini.c
log.c
random.c
)