[SHELL32]
[reactos.git] / dll / win32 / shell32 / CMakeLists.txt
1 PROJECT(SHELL)
2
3 set_cpp(WITH_RUNTIME)
4 spec2def(shell32.dll shell32.spec ADD_IMPORTLIB)
5
6 remove_definitions(-D_WIN32_WINNT=0x502)
7 add_definitions(-D_WIN32_WINNT=0x600)
8
9 add_definitions(
10 -D_SHELL32_
11 -D_WINE)
12
13 include_directories(
14 ${REACTOS_SOURCE_DIR}/lib/recyclebin
15 ${REACTOS_SOURCE_DIR}/lib/atl
16 ${REACTOS_SOURCE_DIR})
17
18 list(APPEND SOURCE
19 #authors.cpp
20 autocomplete.cpp
21 brsfolder.cpp
22 changenotify.cpp
23 classes.cpp
24 clipboard.cpp
25 CMenuBand.cpp
26 CMenuDeskBar.cpp
27 dataobject.cpp
28 dde.cpp
29 debughlp.cpp
30 desktop.cpp
31 dialogs/dialogs.cpp
32 dialogs/drive.cpp
33 dialogs/drvdefext.cpp
34 dialogs/folder_options.cpp
35 dialogs/filedefext.cpp
36 dialogs/fprop.cpp
37 dragdrophelper.cpp
38 enumidlist.cpp
39 extracticon.cpp
40 folders.cpp
41 iconcache.cpp
42 pidl.cpp
43 shell32.cpp
44 shellitem.cpp
45 shelllink.cpp
46 folders/desktop.cpp
47 folders/fs.cpp
48 folders/mycomp.cpp
49 folders/mydocuments.cpp
50 folders/printers.cpp
51 folders/admintools.cpp
52 folders/netplaces.cpp
53 folders/fonts.cpp
54 folders/cpanel.cpp
55 folders/recyclebin.cpp
56 droptargets/CexeDropHandler.cpp
57 shlexec.cpp
58 shlfileop.cpp
59 shlfolder.cpp
60 shlfsbind.cpp
61 shlmenu.cpp
62 shlview.cpp
63 stubs.cpp
64 systray.cpp
65 defcontextmenu.cpp
66 openwithmenu.cpp
67 newmenu.cpp
68 startmenu.cpp
69 precomp.h)
70
71 add_library(shell32 SHARED
72 ${SOURCE}
73 wine/control.c
74 wine/shell32_main.c
75 wine/shellole.c
76 wine/shellord.c
77 wine/shellpath.c
78 wine/shellreg.c
79 wine/shellstring.c
80 wine/shpolicy.c
81 vista.c
82 shell32.rc
83 ${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
84 ${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
85
86 set_module_type(shell32 win32dll UNICODE HOTPATCHABLE)
87 target_link_libraries(shell32 atlnew wine uuid recyclebin)
88 add_delay_importlibs(shell32 ole32 version fmifs)
89 add_importlibs(shell32 advapi32 browseui gdi32 user32 powrprof comctl32 comdlg32 shdocvw shlwapi devmgr winspool winmm msvcrt kernel32 ntdll)
90 add_pch(shell32 precomp.h SOURCE)
91 add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)