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/bios.c 10 ../generic/dma.c 11 ../generic/display.c 12 ../generic/drive.c 13 ../generic/misc.c 14 ../generic/nmi.c 15 ../generic/spinlock.c 16 ../generic/sysinfo.c 17 ../generic/timer.c 18 ../generic/usage.c 19 ../pic/pic.c 20 ../pic/processor.c 21 ../include/hal.h 22 halinit.c) 23 24if(SARCH STREQUAL "xbox") 25 list(APPEND MINI_HAL_SOURCE 26 ../generic/beep.c 27 ../generic/cmos.c 28 ../generic/profil.c 29 ../xbox/clock.c 30 ../xbox/reboot.c) 31elseif(SARCH STREQUAL "pc98") 32 list(APPEND MINI_HAL_SOURCE 33 ../pc98/beep.c 34 ../pc98/clock.c 35 ../pc98/cmos.c 36 ../pc98/profil.c 37 ../pc98/reboot.c) 38else() 39 list(APPEND MINI_HAL_SOURCE 40 ../generic/beep.c 41 ../generic/clock.c 42 ../generic/cmos.c 43 ../generic/profil.c 44 ../generic/reboot.c) 45endif() 46 47add_asm_files(mini_hal_asm ../generic/systimer.S) 48add_library(mini_hal ${MINI_HAL_SOURCE} ${mini_hal_asm}) 49target_compile_definitions(mini_hal PRIVATE _MINIHAL_ _BLDR_ _NTSYSTEM_) 50add_dependencies(mini_hal psdk bugcodes asm) 51add_pch(mini_hal ../include/hal.h MINI_HAL_SOURCE) 52