[CMAKE]
[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)
10
11 rpcproxy(urlmon 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 regsvr.c
29 sec_mgr.c
30 session.c
31 umon.c
32 umstream.c
33 uri.c
34 urlmon_main.c
35 usrmarshal.c
36 rsrc.rc
37 ${CMAKE_CURRENT_BINARY_DIR}/urlmon.def)
38
39 add_library(urlmon SHARED ${SOURCE})
40
41
42 set_module_type(urlmon win32dll)
43
44 target_link_libraries(urlmon
45 uuid
46 wine
47 ${PSEH_LIB})
48
49 add_importlibs(urlmon
50 rpcrt4
51 ole32
52 oleaut32
53 shlwapi
54 shell32
55 wininet
56 user32
57 advapi32
58 msvcrt
59 kernel32
60 ntdll)
61
62
63 add_definitions(
64 -DENTRY_PREFIX=URLMON_
65 -DPROXY_DELEGATION
66 -DREGISTER_PROXY_DLL
67 -D_URLMON_)
68
69 # FIXME : this should be quotes enclosed
70 add_definitions(-DPROXY_CLSID_IS={0x79EAC9F1,0xBAF9,0x11CE,{0x8C,0x82,0x00,0xAA,0x00,0x4B,0xA9,0x0B}})
71 #add_definitions(-DPROXY_CLSID_IS="{0x79EAC9F1,0xBAF9,0x11CE,{0x8C,0x82,0x00,0xAA,0x00,0x4B,0xA9,0x0B}}")
72
73 add_cab_target(urlmon 1)
74 add_importlib_target(urlmon.spec)