[LAUTUS] Make the text files UTF-8 without BOM, and convert them to UTF-16 LE at...
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 6 Jun 2015 18:27:12 +0000 (18:27 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 6 Jun 2015 18:27:12 +0000 (18:27 +0000)
svn path=/trunk/; revision=68051

reactos/media/themes/lautus.msstyles/CMakeLists.txt
reactos/media/themes/lautus.msstyles/lautus.rc
reactos/media/themes/lautus.msstyles/textfiles/ExtraLargeNormal.INI
reactos/media/themes/lautus.msstyles/textfiles/LargeFontsNormal.INI
reactos/media/themes/lautus.msstyles/textfiles/NormalNormal.INI

index 7aeeffd..51c23b8 100644 (file)
@@ -1,4 +1,22 @@
 
+list(APPEND TEXTFILES
+    textfiles/ExtraLargeNormal.INI
+    textfiles/LargeFontsNormal.INI
+    textfiles/NormalNormal.INI)
+
+foreach(_file ${TEXTFILES})
+    get_filename_component(_file_name ${_file} NAME_WE)
+    string(REPLACE ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} _converted_file "${_file}")
+    string(REPLACE ${_file_name} "${_file_name}_utf16" _converted_file ${_converted_file})
+    set(_file ${CMAKE_CURRENT_SOURCE_DIR}/${_file})
+    set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/${_converted_file})
+    add_custom_command(OUTPUT ${_converted_file}
+                       COMMAND native-utf16le ${_file} ${_converted_file}
+                       DEPENDS native-utf16le ${_file})
+    list(APPEND _converted_files ${_converted_file})
+endforeach()
+
+set_source_files_properties(lautus.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
 add_library(lautus.msstyles SHARED lautus.rc)
 set_module_type(lautus.msstyles module)
 set_target_properties(lautus.msstyles PROPERTIES SUFFIX "")
index 5012150..dd85670 100644 (file)
@@ -15,9 +15,9 @@ COMBO COMBODATA                                       {0x0003,0x0003, 0x0000, 0x0003, 0x0006, 0x0001,0x0004,0x0007
 1 SIZENAMES                                            {L"Normal Size\0Large Fonts\0Extra Large Fonts\0\0"}
 1 MINDEPTH                                             {0x000F,0x000F,0x000F,0x000F,0x000F,0x000F,0x000F,0x000F,0x000F,0x0000,}
 
-EXTRALARGENORMAL_INI TEXTFILE  "textfiles/ExtraLargeNormal.INI"
-LARGEFONTSNORMAL_INI TEXTFILE  "textfiles/LargeFontsNormal.INI"
-NORMALNORMAL_INI TEXTFILE              "textfiles/NormalNormal.INI"
+EXTRALARGENORMAL_INI TEXTFILE  "textfiles/ExtraLargeNormal_utf16.INI"
+LARGEFONTSNORMAL_INI TEXTFILE  "textfiles/LargeFontsNormal_utf16.INI"
+NORMALNORMAL_INI TEXTFILE              "textfiles/NormalNormal_utf16.INI"
 THEMES_INI TEXTFILE                            {L"\r\n"}
 
 NORMAL_BALLOONCLOSE_BMP BITMAP "bitmaps/NORMAL_BALLOONCLOSE.bmp"
index 6b19e6e..01bf8c2 100644 (file)
Binary files a/reactos/media/themes/lautus.msstyles/textfiles/ExtraLargeNormal.INI and b/reactos/media/themes/lautus.msstyles/textfiles/ExtraLargeNormal.INI differ
index 7e9fb21..dc8dd27 100644 (file)
Binary files a/reactos/media/themes/lautus.msstyles/textfiles/LargeFontsNormal.INI and b/reactos/media/themes/lautus.msstyles/textfiles/LargeFontsNormal.INI differ
index 4111ce3..6adbb44 100644 (file)
Binary files a/reactos/media/themes/lautus.msstyles/textfiles/NormalNormal.INI and b/reactos/media/themes/lautus.msstyles/textfiles/NormalNormal.INI differ