2020-03-05 03:58:56 +00:00
|
|
|
|
2020-04-23 18:11:10 +00:00
|
|
|
include_directories(BEFORE Common virtio)
|
2020-03-05 03:58:56 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-DNDIS_MINIPORT_DRIVER
|
|
|
|
-DNDIS51_MINIPORT=1)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2020-04-23 14:33:32 +00:00
|
|
|
Common/ParaNdis-Common.c
|
|
|
|
Common/ParaNdis-Oid.c
|
|
|
|
Common/ParaNdis-VirtIO.c
|
|
|
|
Common/ParaNdis-Debug.c
|
|
|
|
Common/sw-offload.c
|
2020-03-05 03:58:56 +00:00
|
|
|
virtio/VirtIOPCICommon.c
|
|
|
|
virtio/VirtIOPCILegacy.c
|
|
|
|
virtio/VirtIOPCIModern.c
|
|
|
|
virtio/VirtIORing.c
|
|
|
|
virtio/VirtIORing-Packed.c
|
|
|
|
wxp/ParaNdis5-Driver.c
|
|
|
|
wxp/ParaNdis5-Impl.c
|
|
|
|
wxp/ParaNdis5-Oid.c)
|
|
|
|
|
|
|
|
add_library(netkvm MODULE ${SOURCE} wxp/parandis.rc)
|
|
|
|
set_module_type(netkvm kernelmodedriver)
|
|
|
|
add_importlibs(netkvm ndis ntoskrnl hal)
|
|
|
|
add_cd_file(TARGET netkvm DESTINATION reactos/system32/drivers FOR all)
|
2020-04-26 16:50:44 +00:00
|
|
|
add_driver_inf(netkvm netkvm.inf)
|
2020-03-05 03:58:56 +00:00
|
|
|
|
2020-05-26 18:24:02 +00:00
|
|
|
if(NOT MSVC)
|
2020-09-18 14:18:24 +00:00
|
|
|
target_compile_options(netkvm PRIVATE
|
|
|
|
-Wno-unused-function
|
|
|
|
-Wno-unknown-pragmas
|
|
|
|
-Wno-pointer-sign
|
|
|
|
-Wno-pointer-to-int-cast
|
|
|
|
-Wno-int-to-pointer-cast
|
|
|
|
-Wno-attributes)
|
2020-03-05 03:58:56 +00:00
|
|
|
endif()
|
2021-04-09 00:58:19 +00:00
|
|
|
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
|
|
|
target_compile_options(netkvm PRIVATE -Wno-old-style-declaration -Wno-unused-but-set-variable)
|
|
|
|
endif()
|