reactos/hal/halx86/minihal/CMakeLists.txt
Hermès Bélusca-Maïto 39b8d45592
[MINIHAL] Compile with _NTSYSTEM_ since it's also part of the bootloader.
Fixes compilation because the Hal(Private)DispatchTable's, defined in
the bootloader's NTOS stub, are not external imports, as they would be
for a standard HAL.
2022-05-08 04:15:51 +02:00

52 lines
1.3 KiB
CMake

list(APPEND MINI_HAL_SOURCE
../generic/portio.c
../legacy/bus/bushndlr.c
../legacy/bus/cmosbus.c
../legacy/bus/isabus.c
../legacy/bus/pcibus.c
../legacy/bussupp.c
../generic/bios.c
../generic/dma.c
../generic/display.c
../generic/drive.c
../generic/misc.c
../generic/nmi.c
../generic/spinlock.c
../generic/sysinfo.c
../generic/timer.c
../generic/usage.c
../pic/pic.c
../pic/processor.c
../include/hal.h
halinit.c)
if(SARCH STREQUAL "xbox")
list(APPEND MINI_HAL_SOURCE
../generic/beep.c
../generic/cmos.c
../generic/profil.c
../xbox/clock.c
../xbox/reboot.c)
elseif(SARCH STREQUAL "pc98")
list(APPEND MINI_HAL_SOURCE
../pc98/beep.c
../pc98/clock.c
../pc98/cmos.c
../pc98/profil.c
../pc98/reboot.c)
else()
list(APPEND MINI_HAL_SOURCE
../generic/beep.c
../generic/clock.c
../generic/cmos.c
../generic/profil.c
../generic/reboot.c)
endif()
add_asm_files(mini_hal_asm ../generic/systimer.S)
add_library(mini_hal ${MINI_HAL_SOURCE} ${mini_hal_asm})
target_compile_definitions(mini_hal PRIVATE _MINIHAL_ _BLDR_ _NTSYSTEM_)
add_dependencies(mini_hal psdk bugcodes asm)
add_pch(mini_hal ../include/hal.h MINI_HAL_SOURCE)