2020-08-30 00:43:14 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
data.c
|
|
|
|
disk.c
|
|
|
|
diskwmi.c
|
|
|
|
geometry.c
|
|
|
|
pnp.c
|
|
|
|
disk.h)
|
|
|
|
|
|
|
|
add_library(disk MODULE ${SOURCE} disk.rc)
|
|
|
|
|
|
|
|
target_compile_definitions(disk PUBLIC
|
|
|
|
DEBUG_USE_KDPRINT
|
|
|
|
_WIN32_WINNT=0x602
|
|
|
|
NTDDI_VERSION=0x06020000) # NTDDI_WIN8
|
|
|
|
|
2022-05-25 22:37:23 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
2020-08-30 00:43:14 +00:00
|
|
|
target_compile_options(disk PRIVATE -Wno-format -Wno-pointer-sign)
|
2021-04-09 00:58:19 +00:00
|
|
|
target_compile_options(disk PRIVATE -Wno-pointer-to-int-cast -Wno-switch)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
|
|
|
target_compile_options(disk PRIVATE -Wno-unused-but-set-variable)
|
2020-08-30 00:43:14 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
set_module_type(disk kernelmodedriver)
|
|
|
|
target_link_libraries(disk ntoskrnl_vista libcntpr wdmguid)
|
|
|
|
add_importlibs(disk classpnp ntoskrnl hal)
|
|
|
|
add_cd_file(TARGET disk DESTINATION reactos/system32/drivers NO_CAB FOR all)
|
|
|
|
add_registry_inf(disk_reg.inf)
|
|
|
|
add_driver_inf(disk disk.inf)
|