1
2include_directories(../../inc)
3spec2def(classpnp.sys classpnp.spec ADD_IMPORTLIB)
4
5add_definitions(
6    -DCLASS_GLOBAL_BREAK_ON_LOST_IRPS=0
7    -DCLASS_GLOBAL_SECONDS_TO_WAIT_FOR_SYNCHRONOUS_SRB=100
8    -DCLASS_GLOBAL_USE_DELAYED_RETRY=1
9    -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT=0
10    -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFER_SIZE=512
11    -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512)
12
13list(APPEND SOURCE
14    autorun.c
15    class.c
16    classwmi.c
17    clntirp.c
18    create.c
19    data.c
20    debug.c
21    dictlib.c
22    lock.c
23    obsolete.c
24    power.c
25    retry.c
26    utils.c
27    xferpkt.c)
28
29list(APPEND PCH_SKIP_SOURCE
30    guid.c)
31
32add_library(classpnp MODULE
33    ${SOURCE}
34    ${PCH_SKIP_SOURCE}
35    class.rc
36    ${CMAKE_CURRENT_BINARY_DIR}/classpnp.def)
37
38add_pch(classpnp classp.h "${PCH_SKIP_SOURCE}")
39target_link_libraries(classpnp ${PSEH_LIB} libcntpr)
40set_module_type(classpnp kernelmodedriver)
41add_importlibs(classpnp hal ntoskrnl)
42add_cd_file(TARGET classpnp DESTINATION reactos/system32/drivers NO_CAB FOR all)
43