2016-11-02 19:36:59 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
2017-09-08 11:59:42 +00:00
|
|
|
add_definitions(-D_WIN32_WINNT=0x603)
|
2016-11-02 19:36:59 +00:00
|
|
|
|
2017-11-26 13:16:29 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
|
|
|
|
|
2016-11-02 19:36:59 +00:00
|
|
|
spec2def(shellbtrfs.dll shellbtrfs.spec)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2017-09-08 11:59:42 +00:00
|
|
|
balance.cpp
|
2016-11-02 19:36:59 +00:00
|
|
|
contextmenu.cpp
|
2017-09-08 11:59:42 +00:00
|
|
|
devices.cpp
|
2016-11-02 19:36:59 +00:00
|
|
|
factory.cpp
|
|
|
|
iconoverlay.cpp
|
|
|
|
main.cpp
|
2019-11-12 20:45:49 +00:00
|
|
|
mountmgr_local.cpp
|
2016-11-02 19:36:59 +00:00
|
|
|
propsheet.cpp
|
2017-09-08 11:59:42 +00:00
|
|
|
reactos.cpp
|
|
|
|
recv.cpp
|
|
|
|
scrub.cpp
|
|
|
|
send.cpp
|
2020-05-09 21:37:40 +00:00
|
|
|
volpropsheet.cpp)
|
|
|
|
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
2022-04-28 19:33:48 +00:00
|
|
|
guid.c
|
|
|
|
${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c.c)
|
|
|
|
|
|
|
|
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})
|
|
|
|
endif()
|
2016-11-02 19:36:59 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(shellbtrfs MODULE
|
2017-11-26 13:16:29 +00:00
|
|
|
${SOURCE}
|
2022-04-28 19:33:48 +00:00
|
|
|
${btrfs_asm}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2017-11-26 13:16:29 +00:00
|
|
|
shellbtrfs.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/shellbtrfs.def)
|
2017-09-08 11:59:42 +00:00
|
|
|
|
2016-11-02 19:36:59 +00:00
|
|
|
file(GLOB shellbtrfs_rc_deps *.ico)
|
|
|
|
add_rc_deps(shellbtrfs.rc ${shellbtrfs_rc_deps})
|
|
|
|
|
|
|
|
set_module_type(shellbtrfs win32dll UNICODE)
|
2020-09-18 07:34:18 +00:00
|
|
|
target_link_libraries(shellbtrfs uuid cppstl)
|
|
|
|
set_target_cpp_properties(shellbtrfs WITH_EXCEPTIONS)
|
2017-09-08 11:59:42 +00:00
|
|
|
add_importlibs(shellbtrfs advapi32 advapi32_vista ole32 shell32 shlwapi user32 comctl32 uxtheme setupapi comdlg32 gdi32 msvcrt kernel32_vista kernel32 ntdll)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(shellbtrfs precomp.h "${PCH_SKIP_SOURCE}")
|
2016-11-02 19:36:59 +00:00
|
|
|
add_cd_file(TARGET shellbtrfs DESTINATION reactos/system32 FOR all)
|