2016-03-23 20:35:05 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers
|
2016-09-04 15:27:46 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib
|
2016-03-23 20:35:05 +00:00
|
|
|
inc)
|
|
|
|
|
2022-04-28 19:33:48 +00:00
|
|
|
set(ZSTD_SRC_FILES
|
|
|
|
zstd/entropy_common.c
|
|
|
|
zstd/error_private.c
|
|
|
|
zstd/fse_compress.c
|
|
|
|
zstd/fse_decompress.c
|
|
|
|
zstd/hist.c
|
|
|
|
zstd/huf_compress.c
|
|
|
|
zstd/huf_decompress.c
|
|
|
|
zstd/zstd_common.c
|
|
|
|
zstd/zstd_compress.c
|
|
|
|
zstd/zstd_compress_literals.c
|
|
|
|
zstd/zstd_compress_sequences.c
|
|
|
|
zstd/zstd_compress_superblock.c
|
|
|
|
zstd/zstd_ddict.c
|
|
|
|
zstd/zstd_decompress.c
|
|
|
|
zstd/zstd_decompress_block.c
|
|
|
|
zstd/zstd_double_fast.c
|
|
|
|
zstd/zstd_fast.c
|
|
|
|
zstd/zstd_lazy.c
|
|
|
|
zstd/zstd_ldm.c
|
|
|
|
zstd/zstd_opt.c)
|
|
|
|
|
2016-03-23 20:35:05 +00:00
|
|
|
list(APPEND SOURCE
|
2017-01-01 17:12:12 +00:00
|
|
|
balance.c
|
2020-04-23 02:38:57 +00:00
|
|
|
blake2b-ref.c
|
2019-09-01 12:53:20 +00:00
|
|
|
boot.c
|
2016-03-23 20:35:05 +00:00
|
|
|
btrfs.c
|
|
|
|
cache.c
|
2017-01-01 17:12:12 +00:00
|
|
|
calcthread.c
|
2016-09-04 15:27:46 +00:00
|
|
|
compress.c
|
2016-03-23 20:35:05 +00:00
|
|
|
crc32c.c
|
|
|
|
create.c
|
2016-10-29 17:05:10 +00:00
|
|
|
devctrl.c
|
2016-03-23 20:35:05 +00:00
|
|
|
dirctrl.c
|
2016-05-05 17:26:47 +00:00
|
|
|
extent-tree.c
|
2016-03-23 20:35:05 +00:00
|
|
|
fastio.c
|
|
|
|
fileinfo.c
|
|
|
|
flushthread.c
|
2016-05-05 17:26:47 +00:00
|
|
|
free-space.c
|
2016-03-23 20:35:05 +00:00
|
|
|
fsctl.c
|
2019-09-01 12:53:20 +00:00
|
|
|
fsrtl.c
|
2016-10-29 17:05:10 +00:00
|
|
|
galois.c
|
2017-09-08 08:02:43 +00:00
|
|
|
guid.c
|
2016-05-05 17:26:47 +00:00
|
|
|
pnp.c
|
2016-03-23 20:35:05 +00:00
|
|
|
read.c
|
2016-07-27 19:24:26 +00:00
|
|
|
registry.c
|
2016-03-23 20:35:05 +00:00
|
|
|
reparse.c
|
2017-09-08 08:02:43 +00:00
|
|
|
scrub.c
|
2016-03-23 20:35:05 +00:00
|
|
|
search.c
|
|
|
|
security.c
|
2020-04-23 02:38:57 +00:00
|
|
|
sha256.c
|
2017-09-08 08:02:43 +00:00
|
|
|
send.c
|
2016-03-23 20:35:05 +00:00
|
|
|
treefuncs.c
|
2017-09-08 08:02:43 +00:00
|
|
|
volume.c
|
2016-07-27 19:24:26 +00:00
|
|
|
worker-thread.c
|
2016-03-23 20:35:05 +00:00
|
|
|
write.c
|
2020-04-23 02:38:57 +00:00
|
|
|
xxhash.c
|
2022-04-28 19:33:48 +00:00
|
|
|
${ZSTD_SRC_FILES}
|
2016-03-23 20:35:05 +00:00
|
|
|
btrfs_drv.h)
|
|
|
|
|
2022-04-28 19:33:48 +00:00
|
|
|
if((ARCH STREQUAL "i386") OR (ARCH STREQUAL "amd64"))
|
|
|
|
list(APPEND ASM_SOURCE crc32c.S xor.S)
|
|
|
|
add_asm_files(btrfs_asm ${ASM_SOURCE})
|
2020-04-23 02:38:57 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(btrfs MODULE ${SOURCE} ${btrfs_asm} btrfs.rc)
|
2016-03-23 20:35:05 +00:00
|
|
|
|
2021-06-29 08:03:28 +00:00
|
|
|
if(MSVC)
|
|
|
|
# Disable warning C4267: 'function': conversion from 'size_t' to 'uint16_t', possible loss of data
|
|
|
|
target_compile_options(btrfs PRIVATE /wd4267)
|
|
|
|
endif()
|
|
|
|
|
2016-03-23 20:35:05 +00:00
|
|
|
add_definitions(-D__KERNEL__)
|
|
|
|
set_module_type(btrfs kernelmodedriver)
|
2019-09-01 12:53:20 +00:00
|
|
|
target_link_libraries(btrfs rtlver zlib_solo chkstk wdmguid ${PSEH_LIB})
|
2016-03-23 20:35:05 +00:00
|
|
|
add_importlibs(btrfs ntoskrnl hal)
|
2022-03-29 02:01:55 +00:00
|
|
|
|
2018-06-13 23:30:06 +00:00
|
|
|
add_cd_file(TARGET btrfs DESTINATION reactos/system32/drivers NO_CAB FOR all)
|
2020-04-26 16:50:44 +00:00
|
|
|
add_driver_inf(btrfs btrfs.inf)
|
2022-03-29 02:01:55 +00:00
|
|
|
add_registry_inf(btrfs_reg.inf)
|