ced869bbd0ab9ddb94842e4914a66f0e6a74ed4a
[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 ${CMAKE_CURRENT_SOURCE_DIR}/urlmon.spec ${CMAKE_CURRENT_BINARY_DIR}/urlmon.def)
10
11 add_library(urlmon SHARED
12 bindctx.c
13 binding.c
14 bindprot.c
15 download.c
16 file.c
17 format.c
18 ftp.c
19 gopher.c
20 http.c
21 internet.c
22 mimefilter.c
23 mk.c
24 protocol.c
25 protproxy.c
26 regsvr.c
27 sec_mgr.c
28 session.c
29 umon.c
30 umstream.c
31 uri.c
32 urlmon_main.c
33 usrmarshal.c
34 rsrc.rc)
35
36 set_module_type(urlmon win32dll)
37
38 target_link_libraries(urlmon
39 ${CMAKE_CURRENT_BINARY_DIR}/urlmon.def
40 urlmon_proxy
41 uuid
42 wine
43 pseh)
44
45 add_importlibs(urlmon
46 rpcrt4
47 ole32
48 oleaut32
49 shlwapi
50 shell32
51 wininet
52 user32
53 advapi32
54 kernel32
55 ntdll)
56
57 add_dependencies(urlmon urlmon_def)
58 add_definitions(-DENTRY_PREFIX=URLMON_)
59 add_definitions(-DPROXY_DELEGATION)
60 add_definitions(-DREGISTER_PROXY_DLL)
61 add_definitions(-D_URLMON_)
62
63 # FIXME : this should be quotes enclosed
64 add_definitions(-DPROXY_CLSID_IS={0x79EAC9F1,0xBAF9,0x11CE,{0x8C,0x82,0x00,0xAA,0x00,0x4B,0xA9,0x0B}})
65 #add_definitions(-DPROXY_CLSID_IS="{0x79EAC9F1,0xBAF9,0x11CE,{0x8C,0x82,0x00,0xAA,0x00,0x4B,0xA9,0x0B}}")
66
67 rpcproxy(urlmon urlmon_urlmon.idl)