mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[LAUTUS] Make the text files UTF-8 without BOM, and convert them to UTF-16 LE at compile time. Remove the now unneeded application/octet-stream type property and set native EOL one. CORE-9770
svn path=/trunk/; revision=68051
This commit is contained in:
parent
084970da0a
commit
debb8a2b7f
5 changed files with 21 additions and 3 deletions
|
@ -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 "")
|
||||
|
|
|
@ -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"
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue