2017-01-15 10:58:38 +00:00
|
|
|
|
2017-09-08 16:31:32 +00:00
|
|
|
include_directories(
|
|
|
|
${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
|
|
|
|
|
2020-04-23 02:38:57 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/blake2b-ref.c
|
|
|
|
${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c.c
|
|
|
|
${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/sha256.c
|
|
|
|
${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/xxhash.c
|
|
|
|
btrfslib.c)
|
|
|
|
|
2022-04-28 19:33:48 +00:00
|
|
|
if((ARCH STREQUAL "i386") OR (ARCH STREQUAL "amd64"))
|
|
|
|
list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c.S)
|
|
|
|
add_asm_files(btrfs_asm ${ASM_SOURCE})
|
2020-04-23 02:38:57 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(btrfslib ${SOURCE} ${btrfs_asm})
|
|
|
|
target_compile_definitions(btrfslib PRIVATE _USRDLL)
|
2017-01-15 10:58:38 +00:00
|
|
|
add_dependencies(btrfslib psdk)
|