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 add_compile_flags("-Wno-unused-function") 31 add_compile_flags("-Wno-old-style-declaration") 32 add_compile_flags("-Wno-unknown-pragmas") 33 add_compile_flags("-Wno-unused-but-set-variable") 34 add_compile_flags("-Wno-pointer-sign") 35 add_compile_flags("-Wno-pointer-to-int-cast") 36 add_compile_flags("-Wno-int-to-pointer-cast") 37 add_compile_flags("-Wno-attributes") 38endif() 39