1 2include_directories( 3 ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs) 4 5list(APPEND SOURCE 6 ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/blake2b-ref.c 7 ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c.c 8 ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/sha256.c 9 ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/xxhash.c 10 btrfslib.c) 11 12if(ARCH STREQUAL "i386") 13 list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c-x86.S) 14elseif(ARCH STREQUAL "amd64") 15 list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c-amd64.S) 16endif() 17 18add_asm_files(btrfs_asm ${ASM_SOURCE}) 19 20add_library(btrfslib ${SOURCE} ${btrfs_asm}) 21target_compile_definitions(btrfslib PRIVATE _USRDLL) 22add_dependencies(btrfslib psdk) 23