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