2020-10-16 01:37:10 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
aacs.c
|
|
|
|
autorun.c
|
|
|
|
cdrom.c
|
|
|
|
common.c
|
|
|
|
data.c
|
|
|
|
guid.c
|
|
|
|
init.c
|
|
|
|
ioctl.c
|
|
|
|
mmc.c
|
|
|
|
pnppower.c
|
|
|
|
scratch.c
|
|
|
|
sense.c
|
|
|
|
zpodd.c
|
|
|
|
cdrom.h)
|
|
|
|
|
2021-03-08 18:10:43 +00:00
|
|
|
add_library(cdrom MODULE ${SOURCE} cdrom.rc)
|
2020-10-16 01:37:10 +00:00
|
|
|
set_module_type(cdrom kernelmodedriver)
|
|
|
|
|
|
|
|
if(GCC OR CLANG)
|
|
|
|
target_compile_options(cdrom PRIVATE -Wno-format -Wno-unused-variable -Wno-pointer-sign)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(GCC)
|
|
|
|
target_compile_options(cdrom PRIVATE -Wno-unknown-pragmas -Wno-incompatible-pointer-types -Wno-switch)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CLANG)
|
|
|
|
target_compile_options(cdrom PRIVATE -Wno-enum-conversion -Wno-tautological-constant-compare)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_compile_definitions(cdrom PRIVATE DEBUG_USE_KDPRINT)
|
|
|
|
|
|
|
|
target_link_libraries(cdrom wdf01000 ntoskrnl_vista libcntpr ${PSEH_LIB})
|
|
|
|
add_importlibs(cdrom ntoskrnl hal)
|
|
|
|
# add_pch(cdrom cdrom.h SOURCE)
|
|
|
|
add_cd_file(TARGET cdrom DESTINATION reactos/system32/drivers NO_CAB FOR all)
|
2020-12-19 18:41:52 +00:00
|
|
|
add_registry_inf(cdrom_reg.inf)
|
2020-10-16 01:37:10 +00:00
|
|
|
add_driver_inf(cdrom cdrom.inf)
|