[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 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 regsvr.c
31 sec_mgr.c
32 session.c
33 umon.c
34 umstream.c
35 uri.c
36 urlmon_main.c
37 usrmarshal.c
38 rsrc.rc
39 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
40 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_urlmon_p.c
41 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_stubs.c
42 ${CMAKE_CURRENT_BINARY_DIR}/urlmon.def)
43
44 add_library(urlmon SHARED ${SOURCE})
45
46
47 set_module_type(urlmon win32dll)
48
49 target_link_libraries(urlmon
50 uuid
51 wine
52 ${PSEH_LIB})
53
54 add_importlibs(urlmon
55 rpcrt4
56 ole32
57 oleaut32
58 shlwapi
59 shell32
60 wininet
61 user32
62 advapi32
63 msvcrt
64 kernel32
65 ntdll)
66
67
68 add_definitions(
69 -DENTRY_PREFIX=URLMON_
70 -DPROXY_DELEGATION
71 -DREGISTER_PROXY_DLL
72 -D_URLMON_)
73
74 add_definitions(-DPROXY_CLSID_IS="{0x79EAC9F1,0xBAF9,0x11CE,{0x8C,0x82,0x00,0xAA,0x00,0x4B,0xA9,0x0B}}")
75
76 add_cd_file(TARGET urlmon DESTINATION reactos/system32 FOR all)
77 add_importlib_target(urlmon.spec)