1
2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers
3                    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib
4                    inc)
5
6list(APPEND SOURCE
7    balance.c
8    btrfs.c
9    cache.c
10    calcthread.c
11    compress.c
12    crc32c.c
13    create.c
14    devctrl.c
15    dirctrl.c
16    extent-tree.c
17    fastio.c
18    fileinfo.c
19    flushthread.c
20    free-space.c
21    fsctl.c
22    galois.c
23    guid.c
24    pnp.c
25    read.c
26    registry.c
27    reparse.c
28    scrub.c
29    search.c
30    security.c
31    send.c
32    treefuncs.c
33    volume.c
34    worker-thread.c
35    write.c
36    btrfs_drv.h)
37
38add_library(btrfs SHARED ${SOURCE} btrfs.rc)
39
40add_definitions(-D__KERNEL__)
41set_module_type(btrfs kernelmodedriver)
42target_link_libraries(btrfs rtlver ntoskrnl_vista zlib_solo wdmguid ${PSEH_LIB})
43add_importlibs(btrfs ntoskrnl hal)
44add_cd_file(TARGET btrfs DESTINATION reactos/system32/drivers NO_CAB FOR all)
45