[URLMON] Convert urlmon.inf to utf8 since git insists on fucking up utf16 files.
authorMark Jansen <mark.jansen@reactos.org>
Sat, 7 Oct 2017 21:43:57 +0000 (23:43 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Sat, 7 Oct 2017 21:43:57 +0000 (23:43 +0200)
dll/win32/urlmon/CMakeLists.txt
dll/win32/urlmon/urlmon.inf
dll/win32/urlmon/urlmon.rc

index ab17650..6194ab7 100644 (file)
@@ -11,6 +11,16 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
 spec2def(urlmon.dll urlmon.spec ADD_IMPORTLIB)
 add_rpcproxy_files(urlmon_urlmon.idl)
 
+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}")
+
 list(APPEND SOURCE
     axinstall.c
     bindctx.c
index 91d3af2..d92f7ed 100644 (file)
Binary files a/dll/win32/urlmon/urlmon.inf and b/dll/win32/urlmon/urlmon.inf differ
index 098f398..cea1099 100644 (file)
@@ -55,7 +55,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
 2 WINE_REGISTRY "urlmon_urlmon.rgs"
 
 /* @makedep: urlmon.inf */
-REGINST REGINST urlmon.inf
+REGINST REGINST urlmon_utf16.inf
 
 #define WINE_FILENAME_STR "urlmon.dll"
 #define WINE_FILEVERSION 6,0,2800,1485