
list(APPEND SOURCE
    arb/ar_busno.c
    arb/ar_memio.c
    arb/arb_comn.c
    arb/tr_irq.c
    intrface/agpintrf.c
    intrface/busintrf.c
    intrface/cardbus.c
    intrface/devhere.c
    intrface/ideintrf.c
    intrface/intrface.c
    intrface/lddintrf.c
    intrface/locintrf.c
    intrface/pmeintf.c
    intrface/routintf.c
    pci/busno.c
    pci/config.c
    pci/devhere.c
    pci/id.c
    pci/ppbridge.c
    pci/romimage.c
    pci/state.c
    debug.c
    device.c
    dispatch.c
    enum.c
    fdo.c
    hookhal.c
    init.c
    pcivrify.c
    pdo.c
    power.c
    usage.c
    utils.c
    pci.h)

add_library(pcix SHARED
    ${SOURCE}
    guid.c
    pci.rc)

set_module_type(pcix kernelmodedriver)
add_importlibs(pcix ntoskrnl hal)
add_pch(pcix pci.h SOURCE)
add_dependencies(pcix pciclass)
add_cd_file(TARGET pcix DESTINATION reactos/system32/drivers NO_CAB FOR all)
