reactos/hal/halx86/pc98.cmake
Victor Perevertkin 7601fb549c
[HALX86] Rearrange files in x86 HAL
- Rename UP -> PIC. The "up" folder in fact contains the code for
  managing the Intel 8259 PIC chip
- Move amd64/processor.c -> apic/processor.c. The code is not tied to
  amd64
- Remove platform from "halinit*" files. They already reside in the
  corresponding folder
2021-03-15 02:48:35 +03:00

56 lines
1.2 KiB
CMake

# Generic
list(APPEND HAL_PC98_SOURCE
pc98/beep.c
pc98/clock.c
pc98/cmos.c
pc98/delay.c
pc98/pic.c
pc98/profil.c
pc98/reboot.c
generic/bios.c
generic/display.c
generic/dma.c
generic/drive.c
generic/halinit.c
generic/memory.c
generic/misc.c
generic/nmi.c
generic/portio.c
generic/sysinfo.c
generic/usage.c)
list(APPEND HAL_PC98_ASM_SOURCE
generic/v86.S)
# PIC
list(APPEND HAL_PC98_SOURCE
pc98/irql.c
generic/timer.c
pic/halinit.c
pic/pic.c
pic/processor.c)
list(APPEND HAL_PC98_ASM_SOURCE
generic/trap.S
pic/pic.S)
# Legacy
list(APPEND HAL_PC98_SOURCE
legacy/bus/bushndlr.c
legacy/bus/cmosbus.c
legacy/bus/isabus.c
legacy/bus/pcibus.c
${CMAKE_CURRENT_BINARY_DIR}/pci_classes.c
${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.c
legacy/bus/sysbus.c
legacy/bussupp.c
legacy/halpnpdd.c
legacy/halpcat.c)
add_asm_files(lib_hal_pc98_asm ${HAL_PC98_ASM_SOURCE})
add_library(lib_hal_pc98 OBJECT ${HAL_PC98_SOURCE} ${lib_hal_pc98_asm})
add_dependencies(lib_hal_pc98 bugcodes xdk asm)
#add_pch(lib_hal_pc98 pc98/halpc98.h)
target_compile_definitions(lib_hal_pc98 PRIVATE SARCH_PC98)