2014-02-25 18:23:02 +00:00
|
|
|
PROJECT(SHELL)
|
2013-06-22 14:44:56 +00:00
|
|
|
|
2015-08-19 13:51:20 +00:00
|
|
|
add_subdirectory(shelldesktop)
|
2015-08-19 09:05:54 +00:00
|
|
|
add_subdirectory(shellmenu)
|
2016-05-03 14:36:04 +00:00
|
|
|
add_subdirectory(shellrecyclebin)
|
2015-08-19 09:05:54 +00:00
|
|
|
|
2016-08-29 12:29:45 +00:00
|
|
|
set_cpp(WITH_RUNTIME)
|
2014-10-17 23:28:29 +00:00
|
|
|
spec2def(shell32.dll shell32.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-10 12:05:06 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
# HACK: this should be enabled globally!
|
|
|
|
add_compile_flags_language("-std=c++11" "CXX")
|
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D_SHELL32_
|
2016-08-29 12:29:45 +00:00
|
|
|
-D_WINE
|
|
|
|
-D_ATL_NO_EXCEPTIONS)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/atl
|
2011-05-16 13:12:07 +00:00
|
|
|
${REACTOS_SOURCE_DIR})
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2014-11-04 13:28:57 +00:00
|
|
|
CIDLDataObj.cpp
|
2015-03-28 23:27:10 +00:00
|
|
|
CQueryAssociations.cpp
|
2011-05-31 16:55:10 +00:00
|
|
|
debughlp.cpp
|
2014-11-02 23:30:48 +00:00
|
|
|
dialogs/dialogs.cpp
|
|
|
|
dialogs/drive.cpp
|
|
|
|
dialogs/drvdefext.cpp
|
|
|
|
dialogs/folder_options.cpp
|
|
|
|
dialogs/filedefext.cpp
|
|
|
|
dialogs/fprop.cpp
|
2015-08-19 18:10:30 +00:00
|
|
|
dialogs/recycler_prop.cpp
|
2014-11-04 13:28:57 +00:00
|
|
|
CDropTargetHelper.cpp
|
|
|
|
CEnumIDListBase.cpp
|
|
|
|
CExtractIcon.cpp
|
2011-05-31 16:55:10 +00:00
|
|
|
folders.cpp
|
|
|
|
iconcache.cpp
|
2014-11-03 10:38:21 +00:00
|
|
|
shell32.cpp
|
2014-11-04 13:28:57 +00:00
|
|
|
CShellItem.cpp
|
|
|
|
CShellLink.cpp
|
2016-04-23 23:05:07 +00:00
|
|
|
CFolderOptions.cpp
|
2014-11-04 13:28:57 +00:00
|
|
|
folders/CDesktopFolder.cpp
|
|
|
|
folders/CFSFolder.cpp
|
|
|
|
folders/CDrivesFolder.cpp
|
|
|
|
folders/CMyDocsFolder.cpp
|
|
|
|
folders/CPrinterFolder.cpp
|
|
|
|
folders/CAdminToolsFolder.cpp
|
|
|
|
folders/CNetFolder.cpp
|
|
|
|
folders/CFontsFolder.cpp
|
|
|
|
folders/CControlPanelFolder.cpp
|
|
|
|
folders/CRecycleBin.cpp
|
2016-08-10 18:56:48 +00:00
|
|
|
folders/CRegFolder.cpp
|
2014-03-15 13:59:22 +00:00
|
|
|
droptargets/CexeDropHandler.cpp
|
2016-08-12 11:35:24 +00:00
|
|
|
droptargets/CFSDropTarget.cpp
|
2017-08-22 13:50:25 +00:00
|
|
|
droptargets/CRecyclerDropTarget.cpp
|
2011-05-31 16:55:10 +00:00
|
|
|
shlexec.cpp
|
|
|
|
shlfileop.cpp
|
|
|
|
shlfolder.cpp
|
2014-11-04 13:28:57 +00:00
|
|
|
CFileSysBindData.cpp
|
|
|
|
CDefView.cpp
|
2016-04-10 12:05:06 +00:00
|
|
|
CDefViewDual.cpp
|
2016-11-29 15:38:55 +00:00
|
|
|
CDefViewBckgrndMenu.cpp
|
2011-05-31 16:55:10 +00:00
|
|
|
stubs.cpp
|
2011-12-18 15:47:41 +00:00
|
|
|
systray.cpp
|
2014-11-04 13:28:57 +00:00
|
|
|
CDefaultContextMenu.cpp
|
|
|
|
COpenWithMenu.cpp
|
|
|
|
CNewMenu.cpp
|
2016-05-31 17:40:44 +00:00
|
|
|
CShellDispatch.cpp
|
2016-04-08 08:30:09 +00:00
|
|
|
CFolder.cpp
|
|
|
|
CFolderItems.cpp
|
|
|
|
CFolderItemVerbs.cpp
|
2014-02-10 12:19:56 +00:00
|
|
|
precomp.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-30 16:21:23 +00:00
|
|
|
file(GLOB_RECURSE shell32_rc_deps res/*.*)
|
|
|
|
list(APPEND shell32_rc_deps ${CMAKE_CURRENT_BINARY_DIR}/shell32_shldisp.tlb)
|
|
|
|
add_rc_deps(shell32.rc ${shell32_rc_deps})
|
|
|
|
|
2012-03-12 12:39:51 +00:00
|
|
|
add_library(shell32 SHARED
|
|
|
|
${SOURCE}
|
2014-11-04 20:10:43 +00:00
|
|
|
wine/brsfolder.c
|
2014-11-06 16:01:10 +00:00
|
|
|
wine/changenotify.c
|
2014-11-06 16:49:41 +00:00
|
|
|
wine/classes.c
|
2014-11-06 18:07:58 +00:00
|
|
|
wine/clipboard.c
|
2014-11-03 14:36:57 +00:00
|
|
|
wine/control.c
|
2014-11-03 19:50:36 +00:00
|
|
|
wine/pidl.c
|
2014-11-03 12:17:30 +00:00
|
|
|
wine/shell32_main.c
|
2014-11-03 10:52:20 +00:00
|
|
|
wine/shellole.c
|
2014-11-03 18:09:50 +00:00
|
|
|
wine/shellord.c
|
2014-11-03 13:29:18 +00:00
|
|
|
wine/shellpath.c
|
2014-11-03 19:05:48 +00:00
|
|
|
wine/shellreg.c
|
2014-11-02 23:41:24 +00:00
|
|
|
wine/shellstring.c
|
2014-11-06 12:45:07 +00:00
|
|
|
wine/shlmenu.c
|
2014-11-03 13:59:23 +00:00
|
|
|
wine/shpolicy.c
|
2014-06-08 17:51:38 +00:00
|
|
|
vista.c
|
2014-02-10 12:19:56 +00:00
|
|
|
shell32.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
|
2012-03-12 12:39:51 +00:00
|
|
|
|
2016-04-10 21:32:27 +00:00
|
|
|
|
|
|
|
add_typelib(shell32_shldisp.idl)
|
|
|
|
set_source_files_properties(shell32.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/shell32_shldisp.tlb)
|
|
|
|
|
2015-11-04 18:06:16 +00:00
|
|
|
set_module_type(shell32 win32dll UNICODE)
|
2015-08-19 13:51:20 +00:00
|
|
|
target_link_libraries(shell32 shellmenu shelldesktop atlnew wine uuid recyclebin)
|
2016-11-05 17:04:15 +00:00
|
|
|
add_delay_importlibs(shell32 powrprof shdocvw devmgr winspool winmm mpr uxtheme ole32 oleaut32 userenv browseui version fmifs)
|
|
|
|
add_importlibs(shell32 advapi32 gdi32 user32 comctl32 comdlg32 shlwapi msvcrt kernel32 ntdll)
|
2016-07-25 19:25:46 +00:00
|
|
|
add_dependencies(shell32 stdole2) # shell32_shldisp.tlb needs stdole2.tlb
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(shell32 precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)
|