mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 12:26:32 +00:00
0b366ea122
Used when we convert files to UTF16-LE during our build process. Removes duplicated code.
22 lines
927 B
CMake
22 lines
927 B
CMake
|
|
list(APPEND TEXTFILES
|
|
textfiles/ExtraLargeNormal.INI
|
|
textfiles/LargeFontsNormal.INI
|
|
textfiles/NormalNormal.INI)
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/textfiles)
|
|
foreach(_file ${TEXTFILES})
|
|
get_filename_component(_file_name ${_file} NAME_WE)
|
|
get_filename_component(_subdir ${_file} DIRECTORY)
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_subdir})
|
|
set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/${_subdir}/${_file_name}_utf16.INI)
|
|
utf16le_convert(${CMAKE_CURRENT_SOURCE_DIR}/${_file} ${_converted_file})
|
|
list(APPEND _converted_files ${_converted_file})
|
|
endforeach()
|
|
|
|
set_source_files_properties(mizu.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
|
|
add_library(mizu.msstyles MODULE mizu.rc)
|
|
set_module_type(mizu.msstyles module)
|
|
set_target_properties(mizu.msstyles PROPERTIES SUFFIX "")
|
|
add_cd_file(TARGET mizu.msstyles DESTINATION reactos/Resources/Themes/Mizu FOR all)
|