1 2list(APPEND HAL_XBOX_ASM_SOURCE 3 generic/systimer.S 4 generic/trap.S 5 generic/v86.S 6 up/pic.S) 7 8list(APPEND HAL_XBOX_SOURCE 9 generic/beep.c 10 generic/cmos.c 11 generic/display.c 12 generic/dma.c 13 generic/drive.c 14 generic/halinit.c 15 generic/memory.c 16 generic/misc.c 17 generic/pic.c 18 generic/sysinfo.c 19 generic/usage.c 20 generic/bios.c 21 generic/portio.c 22 legacy/bus/bushndlr.c 23 legacy/bus/cmosbus.c 24 legacy/bus/isabus.c 25 legacy/bus/pcibus.c 26 ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.c 27 ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.c 28 legacy/bus/sysbus.c 29 legacy/bussupp.c 30 legacy/halpnpdd.c 31 legacy/halpcat.c 32 generic/profil.c 33 generic/timer.c 34 xbox/part_xbox.c 35 xbox/halinit_xbox.c 36 xbox/reboot.c 37 up/pic.c) 38 39add_asm_files(lib_hal_xbox_asm ${HAL_XBOX_ASM_SOURCE}) 40add_object_library(lib_hal_xbox ${HAL_XBOX_SOURCE} ${lib_hal_xbox_asm}) 41if(NOT SARCH STREQUAL "xbox") 42 add_target_compile_definitions(lib_hal_xbox SARCH_XBOX) 43endif() 44add_dependencies(lib_hal_xbox bugcodes xdk asm) 45#add_pch(lib_hal_xbox xbox/halxbox.h) 46 47if(MSVC) 48 target_link_libraries(lib_hal_xbox lib_hal_generic) 49endif() 50