xref: /reactos/drivers/bus/pcix/CMakeLists.txt (revision 34593d93)
1
2include_directories(
3    ${REACTOS_SOURCE_DIR}/sdk/lib/drivers/arbiter
4    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers)
5
6list(APPEND SOURCE
7    arb/ar_busno.c
8    arb/ar_memio.c
9    arb/arb_comn.c
10    arb/tr_irq.c
11    intrface/agpintrf.c
12    intrface/busintrf.c
13    intrface/cardbus.c
14    intrface/devhere.c
15    intrface/ideintrf.c
16    intrface/intrface.c
17    intrface/lddintrf.c
18    intrface/locintrf.c
19    intrface/pmeintf.c
20    intrface/routintf.c
21    pci/busno.c
22    pci/config.c
23    pci/devhere.c
24    pci/id.c
25    pci/ppbridge.c
26    pci/romimage.c
27    pci/state.c
28    debug.c
29    device.c
30    dispatch.c
31    enum.c
32    fdo.c
33    hookhal.c
34    init.c
35    pcivrify.c
36    pdo.c
37    power.c
38    usage.c
39    utils.c)
40
41list(APPEND PCH_SKIP_SOURCE
42    guid.c)
43
44add_library(pcix MODULE
45    ${SOURCE}
46    ${PCH_SKIP_SOURCE}
47    pci.rc)
48
49set_module_type(pcix kernelmodedriver)
50target_link_libraries(pcix arbiter)
51if(MSVC)
52    target_link_options(pcix PRIVATE /SECTION:.rsrc,!D)
53else()
54    add_custom_command(
55        TARGET pcix POST_BUILD
56        COMMAND native-pefixup --section:.rsrc,!D $<TARGET_FILE:pcix>
57        VERBATIM)
58endif()
59add_importlibs(pcix ntoskrnl hal)
60add_pch(pcix pci.h "${PCH_SKIP_SOURCE}")
61add_dependencies(pcix pciclass)
62add_cd_file(TARGET pcix DESTINATION reactos/system32/drivers NO_CAB FOR all)
63