2011-05-16 13:12:07 +00:00
|
|
|
|
2013-03-22 14:29:11 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_URLMON_
|
|
|
|
-DENTRY_PREFIX=URLMON_
|
|
|
|
-DPROXY_DELEGATION
|
2019-04-27 09:33:37 +00:00
|
|
|
-DWINE_REGISTER_DLL)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(urlmon.dll urlmon.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_rpcproxy_files(urlmon_urlmon.idl)
|
|
|
|
|
2017-10-07 21:43:57 +00:00
|
|
|
set(_source_file ${CMAKE_CURRENT_SOURCE_DIR}/urlmon.inf)
|
|
|
|
set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/urlmon_utf16.inf)
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT "${_converted_file}"
|
|
|
|
COMMAND native-utf16le "${_source_file}" "${_converted_file}"
|
|
|
|
DEPENDS native-utf16le "${_source_file}")
|
|
|
|
|
|
|
|
set_source_files_properties(${_converted_file} PROPERTIES GENERATED TRUE)
|
|
|
|
set_source_files_properties(urlmon.rc PROPERTIES OBJECT_DEPENDS "${_converted_file}")
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
2013-03-22 14:29:11 +00:00
|
|
|
axinstall.c
|
2011-05-16 13:12:07 +00:00
|
|
|
bindctx.c
|
|
|
|
binding.c
|
|
|
|
bindprot.c
|
|
|
|
download.c
|
|
|
|
file.c
|
|
|
|
format.c
|
|
|
|
ftp.c
|
|
|
|
gopher.c
|
|
|
|
http.c
|
|
|
|
internet.c
|
|
|
|
mimefilter.c
|
|
|
|
mk.c
|
|
|
|
protocol.c
|
|
|
|
sec_mgr.c
|
|
|
|
session.c
|
|
|
|
umon.c
|
|
|
|
umstream.c
|
|
|
|
uri.c
|
|
|
|
urlmon_main.c
|
2020-05-09 21:37:40 +00:00
|
|
|
usrmarshal.c)
|
|
|
|
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/urlmon_urlmon_p.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/urlmon_stubs.c)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(urlmon MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2014-02-10 12:19:56 +00:00
|
|
|
urlmon.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/urlmon.def)
|
|
|
|
|
|
|
|
set_module_type(urlmon win32dll)
|
2013-03-22 14:29:11 +00:00
|
|
|
target_link_libraries(urlmon uuid wine ${PSEH_LIB})
|
2019-11-28 20:40:20 +00:00
|
|
|
add_delay_importlibs(urlmon advpack)
|
|
|
|
add_importlibs(urlmon rpcrt4 propsys ole32 oleaut32 shlwapi shell32 wininet user32 advapi32 kernel32_vista msvcrt kernel32 ntdll)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(urlmon precomp.h "${PCH_SKIP_SOURCE}")
|
2011-07-08 01:50:27 +00:00
|
|
|
add_cd_file(TARGET urlmon DESTINATION reactos/system32 FOR all)
|