xref: /reactos/dll/win32/urlmon/CMakeLists.txt (revision bd712186)
1
2add_definitions(
3    -D__WINESRC__
4    -D_URLMON_
5    -DENTRY_PREFIX=URLMON_
6    -DPROXY_DELEGATION
7    -DWINE_REGISTER_DLL)
8
9include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
10spec2def(urlmon.dll urlmon.spec ADD_IMPORTLIB)
11add_rpcproxy_files(urlmon_urlmon.idl)
12
13set(_source_file ${CMAKE_CURRENT_SOURCE_DIR}/urlmon.inf)
14set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/urlmon_utf16.inf)
15add_custom_command(
16    OUTPUT "${_converted_file}"
17    COMMAND native-utf16le "${_source_file}" "${_converted_file}"
18    DEPENDS native-utf16le "${_source_file}")
19
20set_source_files_properties(${_converted_file} PROPERTIES GENERATED TRUE)
21set_source_files_properties(urlmon.rc PROPERTIES OBJECT_DEPENDS "${_converted_file}")
22
23list(APPEND SOURCE
24    axinstall.c
25    bindctx.c
26    binding.c
27    bindprot.c
28    download.c
29    file.c
30    format.c
31    ftp.c
32    gopher.c
33    http.c
34    internet.c
35    mimefilter.c
36    mk.c
37    protocol.c
38    sec_mgr.c
39    session.c
40    umon.c
41    umstream.c
42    uri.c
43    urlmon_main.c
44    usrmarshal.c
45    precomp.h)
46
47add_library(urlmon MODULE
48    ${SOURCE}
49    urlmon.rc
50    ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
51    ${CMAKE_CURRENT_BINARY_DIR}/urlmon_urlmon_p.c
52    ${CMAKE_CURRENT_BINARY_DIR}/urlmon_stubs.c
53    ${CMAKE_CURRENT_BINARY_DIR}/urlmon.def)
54
55set_module_type(urlmon win32dll)
56target_link_libraries(urlmon uuid wine ${PSEH_LIB})
57add_delay_importlibs(urlmon advpack)
58add_importlibs(urlmon rpcrt4 propsys ole32 oleaut32 shlwapi shell32 wininet user32 advapi32 kernel32_vista msvcrt kernel32 ntdll)
59add_pch(urlmon precomp.h SOURCE)
60add_cd_file(TARGET urlmon DESTINATION reactos/system32 FOR all)
61