xref: /reactos/sdk/lib/fslib/btrfslib/CMakeLists.txt (revision 09dde2cf)
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") OR (ARCH STREQUAL "amd64"))
13    list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c.S)
14    add_asm_files(btrfs_asm ${ASM_SOURCE})
15endif()
16
17add_library(btrfslib ${SOURCE} ${btrfs_asm})
18target_compile_definitions(btrfslib PRIVATE _USRDLL)
19add_dependencies(btrfslib psdk)
20