9 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
10 spec2def(urlmon.dll urlmon.spec ADD_IMPORTLIB)
11 add_rpcproxy_files(urlmon_urlmon.idl)
13 set(_source_file ${CMAKE_CURRENT_SOURCE_DIR}/urlmon.inf)
14 set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/urlmon_utf16.inf)
16 OUTPUT "${_converted_file}"
17 COMMAND native-utf16le "${_source_file}" "${_converted_file}"
18 DEPENDS native-utf16le "${_source_file}")
20 set_source_files_properties(${_converted_file} PROPERTIES GENERATED TRUE)
21 set_source_files_properties(urlmon.rc PROPERTIES OBJECT_DEPENDS "${_converted_file}")
46 list(APPEND PCH_SKIP_SOURCE
47 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
48 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_urlmon_p.c
49 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_stubs.c)
51 add_library(urlmon MODULE
55 ${CMAKE_CURRENT_BINARY_DIR}/urlmon.def)
57 set_module_type(urlmon win32dll)
58 target_link_libraries(urlmon uuid wine ${PSEH_LIB})
59 add_delay_importlibs(urlmon advpack)
60 add_importlibs(urlmon rpcrt4 propsys ole32 oleaut32 shlwapi shell32 wininet user32 advapi32 kernel32_vista msvcrt kernel32 ntdll)
61 add_pch(urlmon precomp.h "${PCH_SKIP_SOURCE}")
62 add_cd_file(TARGET urlmon DESTINATION reactos/system32 FOR all)