* Sync to recent trunk (r52563).
[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 set_rc_compiler()
10
11 spec2def(urlmon.dll urlmon.spec)
12
13 add_rpcproxy_files(urlmon_urlmon.idl)
14
15 list(APPEND SOURCE
16 bindctx.c
17 binding.c
18 bindprot.c
19 download.c
20 file.c
21 format.c
22 ftp.c
23 gopher.c
24 http.c
25 internet.c
26 mimefilter.c
27 mk.c
28 protocol.c
29 protproxy.c
30 sec_mgr.c
31 session.c
32 umon.c
33 umstream.c
34 uri.c
35 urlmon_main.c
36 usrmarshal.c
37 rsrc.rc
38 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
39 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_urlmon_p.c
40 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_stubs.c
41 ${CMAKE_CURRENT_BINARY_DIR}/urlmon.def)
42
43 add_library(urlmon SHARED ${SOURCE})
44
45
46 set_module_type(urlmon win32dll)
47
48 target_link_libraries(urlmon
49 uuid
50 wine
51 ${PSEH_LIB})
52
53 add_importlibs(urlmon
54 rpcrt4
55 ole32
56 oleaut32
57 shlwapi
58 shell32
59 wininet
60 user32
61 advapi32
62 msvcrt
63 kernel32
64 ntdll)
65
66
67 add_definitions(
68 -DENTRY_PREFIX=URLMON_
69 -DPROXY_DELEGATION
70 -DREGISTER_PROXY_DLL
71 -D_URLMON_)
72
73 add_definitions(-DPROXY_CLSID_IS="{0x79EAC9F1,0xBAF9,0x11CE,{0x8C,0x82,0x00,0xAA,0x00,0x4B,0xA9,0x0B}}")
74
75 if(NOT MSVC)
76 # FIXME: msvc build
77 add_cd_file(TARGET urlmon DESTINATION reactos/system32 FOR all)
78 endif()
79 add_importlib_target(urlmon.spec)