[CMAKE]
[reactos.git] / drivers / storage / classpnp / CMakeLists.txt
1
2 include_directories(../inc)
3
4 add_definitions(
5 -DCLASS_GLOBAL_BREAK_ON_LOST_IRPS=0
6 -DCLASS_GLOBAL_SECONDS_TO_WAIT_FOR_SYNCHRONOUS_SRB=100
7 -DCLASS_GLOBAL_USE_DELAYED_RETRY=1
8 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT=0
9 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFER_SIZE=512
10 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512)
11
12 if(ARCH MATCHES i386)
13 if(MSVC)
14 add_definitions(/Gz)
15 else()
16 add_definitions(-mrtd -fno-builtin -w)
17 endif()
18 endif()
19
20 spec2def(classpnp.sys class.spec)
21
22 list(APPEND SOURCE
23 autorun.c
24 class.c
25 classwmi.c
26 clntirp.c
27 create.c
28 data.c
29 debug.c
30 dictlib.c
31 lock.c
32 obsolete.c
33 power.c
34 retry.c
35 utils.c
36 xferpkt.c
37 class.rc
38 ${CMAKE_CURRENT_BINARY_DIR}/class.def)
39
40 add_library(classpnp SHARED ${SOURCE})
41 target_link_libraries(classpnp ${PSEH_LIB} libcntpr)
42
43 set_module_type(classpnp kernelmodedriver)
44 add_importlibs(classpnp hal ntoskrnl)
45
46 add_minicd_target(classpnp reactos classpnp.sys)
47 add_livecd_target(classpnp reactos/system32/drivers)