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) 15utf16le_convert(${_source_file} ${_converted_file}) 16set_source_files_properties(urlmon.rc PROPERTIES OBJECT_DEPENDS "${_converted_file}") 17 18list(APPEND SOURCE 19 axinstall.c 20 bindctx.c 21 binding.c 22 bindprot.c 23 download.c 24 file.c 25 format.c 26 ftp.c 27 gopher.c 28 http.c 29 internet.c 30 mimefilter.c 31 mk.c 32 protocol.c 33 sec_mgr.c 34 session.c 35 umon.c 36 umstream.c 37 uri.c 38 urlmon_main.c 39 usrmarshal.c) 40 41list(APPEND PCH_SKIP_SOURCE 42 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c 43 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_urlmon_p.c 44 ${CMAKE_CURRENT_BINARY_DIR}/urlmon_stubs.c) 45 46add_library(urlmon MODULE 47 ${SOURCE} 48 ${PCH_SKIP_SOURCE} 49 urlmon.rc 50 ${CMAKE_CURRENT_BINARY_DIR}/urlmon.def) 51 52set_module_type(urlmon win32dll) 53target_link_libraries(urlmon uuid wine ${PSEH_LIB} oldnames) 54add_delay_importlibs(urlmon advpack) 55add_importlibs(urlmon rpcrt4 propsys ole32 oleaut32 shlwapi shell32 wininet user32 advapi32 kernel32_vista msvcrt kernel32 ntdll) 56add_pch(urlmon precomp.h "${PCH_SKIP_SOURCE}") 57add_cd_file(TARGET urlmon DESTINATION reactos/system32 FOR all) 58