1 2list(APPEND MINI_HAL_SOURCE 3 ../generic/portio.c 4 ../legacy/bus/bushndlr.c 5 ../legacy/bus/cmosbus.c 6 ../legacy/bus/isabus.c 7 ../legacy/bus/pcibus.c 8 ../legacy/bussupp.c 9 ../generic/dma.c 10 ../generic/drive.c 11 ../generic/misc.c 12 ../generic/nmi.c 13 ../generic/spinlock.c 14 ../generic/timer.c 15 ../generic/usage.c 16 ../pic/pic.c 17 ../include/hal.h 18 halinit.c) 19 20if(SARCH STREQUAL "xbox") 21 list(APPEND MINI_HAL_SOURCE 22 ../generic/beep.c 23 ../generic/cmos.c 24 ../xbox/clock.c 25 ../xbox/reboot.c) 26elseif(SARCH STREQUAL "pc98") 27 list(APPEND MINI_HAL_SOURCE 28 ../pc98/beep.c 29 ../pc98/clock.c 30 ../pc98/cmos.c 31 ../pc98/reboot.c) 32else() 33 list(APPEND MINI_HAL_SOURCE 34 ../generic/beep.c 35 ../generic/clock.c 36 ../generic/cmos.c 37 ../generic/reboot.c) 38endif() 39 40add_asm_files(mini_hal_asm ../generic/systimer.S) 41add_library(mini_hal ${MINI_HAL_SOURCE} ${mini_hal_asm}) 42target_compile_definitions(mini_hal PRIVATE _MINIHAL_ _BLDR_ _NTSYSTEM_) 43add_dependencies(mini_hal psdk bugcodes asm) 44add_pch(mini_hal ../include/hal.h MINI_HAL_SOURCE) 45