1
2remove_definitions(-D_WIN32_WINNT=0x502)
3add_definitions(-D_WIN32_WINNT=0x603)
4
5include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
6
7spec2def(shellbtrfs.dll shellbtrfs.spec)
8
9list(APPEND SOURCE
10    balance.cpp
11    contextmenu.cpp
12    devices.cpp
13    factory.cpp
14    iconoverlay.cpp
15    main.cpp
16    mountmgr_local.cpp
17    propsheet.cpp
18    reactos.cpp
19    recv.cpp
20    scrub.cpp
21    send.cpp
22    volpropsheet.cpp)
23
24list(APPEND PCH_SKIP_SOURCE
25    guid.c
26    ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c.c)
27
28if((ARCH STREQUAL "i386") OR (ARCH STREQUAL "amd64"))
29    list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c.S)
30    add_asm_files(btrfs_asm ${ASM_SOURCE})
31endif()
32
33add_library(shellbtrfs MODULE
34    ${SOURCE}
35    ${btrfs_asm}
36    ${PCH_SKIP_SOURCE}
37    shellbtrfs.rc
38    ${CMAKE_CURRENT_BINARY_DIR}/shellbtrfs.def)
39
40file(GLOB shellbtrfs_rc_deps *.ico)
41add_rc_deps(shellbtrfs.rc ${shellbtrfs_rc_deps})
42
43set_module_type(shellbtrfs win32dll UNICODE)
44target_link_libraries(shellbtrfs uuid cppstl)
45set_target_cpp_properties(shellbtrfs WITH_EXCEPTIONS)
46add_importlibs(shellbtrfs advapi32 advapi32_vista ole32 shell32 shlwapi user32 comctl32 uxtheme setupapi comdlg32 gdi32 msvcrt kernel32_vista kernel32 ntdll)
47add_pch(shellbtrfs precomp.h "${PCH_SKIP_SOURCE}")
48add_cd_file(TARGET shellbtrfs DESTINATION reactos/system32 FOR all)
49