reactos/drivers/storage/classpnp/CMakeLists.txt
Cameron Gutman c2d0d784c7 [USB-BRINGUP-TRUNK]
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup
- In the future, DO NOT under any circumstances branch another branch. This leads to merge problems!

svn path=/branches/usb-bringup-trunk/; revision=55018
2012-01-20 20:58:46 +00:00

46 lines
1 KiB
CMake

include_directories(../inc)
add_definitions(
-DCLASS_GLOBAL_BREAK_ON_LOST_IRPS=0
-DCLASS_GLOBAL_SECONDS_TO_WAIT_FOR_SYNCHRONOUS_SRB=100
-DCLASS_GLOBAL_USE_DELAYED_RETRY=1
-DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT=0
-DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFER_SIZE=512
-DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512)
if(ARCH MATCHES i386)
if(MSVC)
add_definitions(/Gz)
else()
add_definitions(-mrtd -fno-builtin -w)
endif()
endif()
spec2def(classpnp.sys class.spec)
list(APPEND SOURCE
autorun.c
class.c
classwmi.c
clntirp.c
create.c
data.c
debug.c
dictlib.c
lock.c
obsolete.c
power.c
retry.c
utils.c
xferpkt.c
class.rc
${CMAKE_CURRENT_BINARY_DIR}/class.def)
add_library(classpnp SHARED ${SOURCE})
add_pch(classpnp classp.h)
target_link_libraries(classpnp ${PSEH_LIB} libcntpr)
set_module_type(classpnp kernelmodedriver)
add_importlibs(classpnp hal ntoskrnl)
add_cd_file(TARGET classpnp DESTINATION reactos/system32/drivers NO_CAB FOR all)