[SHELL32]
[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 vista.c
81 shell32.rc
82 ${CMAKE_CURRENT_BINARY_DIR}/shell32_stubs.c
83 ${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
84
85 set_module_type(shell32 win32dll UNICODE HOTPATCHABLE)
86
87 target_link_libraries(shell32
88 atlnew
89 wine
90 uuid
91 recyclebin)
92
93 add_delay_importlibs(shell32 ole32 version fmifs)
94
95 add_importlibs(shell32
96 advapi32
97 browseui
98 gdi32
99 user32
100 comctl32
101 comdlg32
102 shdocvw
103 shlwapi
104 devmgr
105 winspool
106 winmm
107 msvcrt
108 kernel32
109 ntdll)
110
111 add_dependencies(shell32 shdocvw_v1)
112 add_pch(shell32 precomp.h SOURCE)
113 add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)