3 add_subdirectory(shelldesktop)
4 add_subdirectory(shellmenu)
5 add_subdirectory(shellrecyclebin)
8 spec2def(shell32.dll shell32.spec ADD_IMPORTLIB)
11 # HACK: this should be enabled globally!
12 add_compile_flags_language("-std=c++11" "CXX")
16 # error C4311: 'type cast': pointer truncation from 'HANDLE' to 'INT'
17 replace_compile_flags("/we4311" " ")
20 remove_definitions(-D_WIN32_WINNT=0x502)
21 add_definitions(-D_WIN32_WINNT=0x600)
29 ${REACTOS_SOURCE_DIR}/sdk/lib/atl
30 ${REACTOS_SOURCE_DIR})
36 CQueryAssociations.cpp
41 dialogs/filedefext.cpp
43 dialogs/folder_options.cpp
46 dialogs/recycler_prop.cpp
57 folders/CDesktopFolder.cpp
59 folders/CDrivesFolder.cpp
60 folders/CMyDocsFolder.cpp
61 folders/CPrinterFolder.cpp
62 folders/CAdminToolsFolder.cpp
63 folders/CNetFolder.cpp
64 folders/CFontsFolder.cpp
65 folders/CControlPanelFolder.cpp
66 folders/CRecycleBin.cpp
67 folders/CRegFolder.cpp
68 droptargets/CexeDropHandler.cpp
69 droptargets/CFSDropTarget.cpp
70 droptargets/CRecyclerDropTarget.cpp
77 CDefViewBckgrndMenu.cpp
81 CDefaultContextMenu.cpp
90 file(GLOB_RECURSE shell32_rc_deps res/*.*)
91 list(APPEND shell32_rc_deps ${CMAKE_CURRENT_BINARY_DIR}/shell32_shldisp.tlb)
92 add_rc_deps(shell32.rc ${shell32_rc_deps})
94 add_library(shell32 MODULE
112 ${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
113 ${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
116 add_typelib(shell32_shldisp.idl)
117 set_source_files_properties(shell32.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/shell32_shldisp.tlb)
119 set_module_type(shell32 win32dll UNICODE)
120 target_link_libraries(shell32 shellmenu shelldesktop atlnew wine uuid recyclebin)
121 add_delay_importlibs(shell32 powrprof shdocvw devmgr winspool.drv winmm mpr uxtheme ole32 oleaut32 userenv browseui version fmifs)
122 add_importlibs(shell32 advapi32 gdi32 user32 comctl32 comdlg32 shlwapi msvcrt kernel32 ntdll)
123 add_dependencies(shell32 stdole2) # shell32_shldisp.tlb needs stdole2.tlb
124 add_pch(shell32 precomp.h SOURCE)
125 add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)