[LT2013]
[reactos.git] / dll / win32 / urlmon / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8
9 spec2def(urlmon.dll urlmon.spec ADD_IMPORTLIB)
10
11 add_rpcproxy_files(urlmon_urlmon.idl)
12
13 list(APPEND SOURCE
14 bindctx.c
15 binding.c
16 bindprot.c
17 download.c
18 file.c
19 format.c
20 ftp.c
21 gopher.c
22 http.c
23 internet.c
24 mimefilter.c
25 mk.c
26 protocol.c
27 protproxy.c
28 sec_mgr.c
29 session.c
30 umon.c
31 umstream.c
32 uri.c
33 urlmon_main.c
34 usrmarshal.c
35 rsrc.rc
36 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
37 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_urlmon_p.c
38 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_stubs.c
39 ${CMAKE_CURRENT_BINARY_DIR}/urlmon.def)
40
41 add_library(urlmon SHARED ${SOURCE})
42
43 set_module_type(urlmon win32dll)
44
45 target_link_libraries(urlmon
46 uuid
47 wine
48 ${PSEH_LIB})
49
50 add_importlibs(urlmon
51 rpcrt4
52 ole32
53 oleaut32
54 shlwapi
55 shell32
56 wininet
57 user32
58 advapi32
59 msvcrt
60 kernel32
61 ntdll)
62
63 add_definitions(
64 -DENTRY_PREFIX=URLMON_
65 -DPROXY_DELEGATION
66 -DWINE_REGISTER_DLL
67 -D_URLMON_)
68
69 add_pch(urlmon urlmon_main.h)
70 add_definitions(-DPROXY_CLSID_IS="{0x79EAC9F1,0xBAF9,0x11CE,{0x8C,0x82,0x00,0xAA,0x00,0x4B,0xA9,0x0B}}")
71 add_cd_file(TARGET urlmon DESTINATION reactos/system32 FOR all)