[HAL] Add Xbox Hardware Abstraction Layer
[reactos.git] / hal / halx86 / xbox.cmake
1
2 list(APPEND HAL_XBOX_ASM_SOURCE
3 generic/systimer.S
4 generic/trap.S
5 up/pic.S)
6
7 list(APPEND HAL_XBOX_SOURCE
8 legacy/bus/bushndlr.c
9 legacy/bus/cmosbus.c
10 legacy/bus/isabus.c
11 legacy/bus/pcibus.c
12 ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.c
13 ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.c
14 legacy/bus/sysbus.c
15 legacy/bussupp.c
16 legacy/halpnpdd.c
17 legacy/halpcat.c
18 generic/profil.c
19 generic/timer.c
20 xbox/part_xbox.c
21 xbox/halinit_xbox.c
22 up/pic.c)
23
24 add_asm_files(lib_hal_xbox_asm ${HAL_XBOX_ASM_SOURCE})
25 add_object_library(lib_hal_xbox ${HAL_XBOX_SOURCE} ${lib_hal_xbox_asm})
26 if(NOT SARCH STREQUAL "xbox")
27 add_target_compile_definitions(lib_hal_xbox SARCH_XBOX)
28 endif()
29 add_dependencies(lib_hal_xbox bugcodes xdk asm)
30 #add_pch(lib_hal_xbox xbox/halxbox.h)
31
32 if(MSVC)
33 target_link_libraries(lib_hal_xbox lib_hal_generic)
34 endif()