2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(BEFORE include)
|
2014-10-17 23:28:29 +00:00
|
|
|
spec2def(ndis.sys ndis.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-DNDIS_WRAPPER
|
|
|
|
-DNDIS51
|
|
|
|
-DNDIS51_MINIPORT
|
|
|
|
-DNDIS_LEGACY_DRIVER
|
|
|
|
-DNDIS_LEGACY_MINIPORT
|
|
|
|
-DNDIS_LEGACY_PROTOCOL
|
|
|
|
-DNDIS_MINIPORT_DRIVER)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
ndis/30stubs.c
|
|
|
|
ndis/40stubs.c
|
|
|
|
ndis/50stubs.c
|
|
|
|
ndis/buffer.c
|
|
|
|
ndis/cl.c
|
|
|
|
ndis/cm.c
|
|
|
|
ndis/co.c
|
|
|
|
ndis/config.c
|
|
|
|
ndis/control.c
|
|
|
|
ndis/efilter.c
|
|
|
|
ndis/hardware.c
|
|
|
|
ndis/io.c
|
|
|
|
ndis/main.c
|
|
|
|
ndis/memory.c
|
|
|
|
ndis/miniport.c
|
|
|
|
ndis/misc.c
|
|
|
|
ndis/protocol.c
|
|
|
|
ndis/string.c
|
|
|
|
ndis/time.c
|
2014-02-09 17:28:01 +00:00
|
|
|
include/ndissys.h)
|
|
|
|
|
|
|
|
add_library(ndis SHARED
|
|
|
|
${SOURCE}
|
2011-05-16 13:12:07 +00:00
|
|
|
ndis.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ndis.def)
|
|
|
|
|
|
|
|
set_module_type(ndis kernelmodedriver)
|
|
|
|
add_importlibs(ndis ntoskrnl hal)
|
2014-02-09 17:28:01 +00:00
|
|
|
add_pch(ndis include/ndissys.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET ndis DESTINATION reactos/system32/drivers FOR all)
|