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 boot.c 9 btrfs.c 10 cache.c 11 calcthread.c 12 compress.c 13 crc32c.c 14 create.c 15 devctrl.c 16 dirctrl.c 17 extent-tree.c 18 fastio.c 19 fileinfo.c 20 flushthread.c 21 free-space.c 22 fsctl.c 23 fsrtl.c 24 galois.c 25 guid.c 26 pnp.c 27 read.c 28 registry.c 29 reparse.c 30 scrub.c 31 search.c 32 security.c 33 send.c 34 treefuncs.c 35 volume.c 36 worker-thread.c 37 write.c 38 zstd/entropy_common.c 39 zstd/fse_compress.c 40 zstd/hist.c 41 zstd/huf_decompress.c 42 zstd/zstd_common.c 43 zstd/zstd_decompress.c 44 zstd/zstd_fast.c 45 zstd/zstd_ldm.c 46 zstd/error_private.c 47 zstd/fse_decompress.c 48 zstd/huf_compress.c 49 zstd/xxhash.c 50 zstd/zstd_compress.c 51 zstd/zstd_double_fast.c 52 zstd/zstd_lazy.c 53 zstd/zstd_opt.c 54 btrfs_drv.h) 55 56add_library(btrfs MODULE ${SOURCE} btrfs.rc) 57 58add_definitions(-D__KERNEL__) 59set_module_type(btrfs kernelmodedriver) 60target_link_libraries(btrfs rtlver zlib_solo chkstk wdmguid ${PSEH_LIB}) 61add_importlibs(btrfs ntoskrnl hal) 62add_cd_file(TARGET btrfs DESTINATION reactos/system32/drivers NO_CAB FOR all) 63