1
2include_directories(BEFORE Common virtio)
3
4add_definitions(
5   -DNDIS_MINIPORT_DRIVER
6   -DNDIS51_MINIPORT=1)
7
8list(APPEND SOURCE
9    Common/ParaNdis-Common.c
10    Common/ParaNdis-Oid.c
11    Common/ParaNdis-VirtIO.c
12    Common/ParaNdis-Debug.c
13    Common/sw-offload.c
14    virtio/VirtIOPCICommon.c
15    virtio/VirtIOPCILegacy.c
16    virtio/VirtIOPCIModern.c
17    virtio/VirtIORing.c
18    virtio/VirtIORing-Packed.c
19    wxp/ParaNdis5-Driver.c
20    wxp/ParaNdis5-Impl.c
21    wxp/ParaNdis5-Oid.c)
22
23add_library(netkvm MODULE ${SOURCE} wxp/parandis.rc)
24set_module_type(netkvm kernelmodedriver)
25add_importlibs(netkvm ndis ntoskrnl hal)
26add_cd_file(TARGET netkvm DESTINATION reactos/system32/drivers FOR all)
27add_driver_inf(netkvm netkvm.inf)
28
29if(NOT MSVC)
30    target_compile_options(netkvm PRIVATE
31        -Wno-unused-function
32        -Wno-old-style-declaration
33        -Wno-unknown-pragmas
34        -Wno-unused-but-set-variable
35        -Wno-pointer-sign
36        -Wno-pointer-to-int-cast
37        -Wno-int-to-pointer-cast
38        -Wno-attributes)
39endif()
40