@ -1889,8 +1889,8 @@ macro( tde_create_translated_desktop )
# m e r g e t r a n s l a t i o n s c o m m a n d
# m e r g e t r a n s l a t i o n s c o m m a n d
get_filename_component ( _src ${ _src } ABSOLUTE )
get_filename_component ( _src ${ _src } ABSOLUTE )
add_custom_command (
add_custom_command (
O U T P U T $ { _ ou t _ n a m e }
O U T P U T $ { _ ba s e n a m e }
C O M M A N D $ { M S G F M T _ E X E C U T A B L E } - - d e s k t o p - - t e m p l a t e $ { _ s r c } - d $ { _ p o _ d i r } - o $ { _ ou t _ n a m e } $ { _ k e y w o r d s _ a r g }
C O M M A N D $ { M S G F M T _ E X E C U T A B L E } - - d e s k t o p - - t e m p l a t e $ { _ s r c } - d $ { _ p o _ d i r } - o $ { _ ba s e n a m e } $ { _ k e y w o r d s _ a r g }
D E P E N D S $ { _ s r c }
D E P E N D S $ { _ s r c }
)
)
@ -1912,30 +1912,34 @@ macro( tde_create_translated_desktop )
file ( READ ${ _src } _src_data )
file ( READ ${ _src } _src_data )
string ( REPLACE ";" "|" _keywords_match "(${_keywords_desktop})" )
string ( REPLACE ";" "|" _keywords_match "(${_keywords_desktop})" )
string ( REGEX REPLACE "(^|\n)${_keywords_match}[ ]*=[ ]*" "\\1_\\2=" _src_data "${_src_data}" )
string ( REGEX REPLACE "(^|\n)${_keywords_match}[ ]*=[ ]*" "\\1_\\2=" _src_data "${_src_data}" )
file ( WRITE ${ CMAKE_CURRENT_BINARY_DIR } / ${ _ out_ name} .in "${_src_data}" )
file ( WRITE ${ CMAKE_CURRENT_BINARY_DIR } / ${ _ base name} .in "${_src_data}" )
# m e r g e t r a n s l a t i o n s c o m m a n d
# m e r g e t r a n s l a t i o n s c o m m a n d
add_custom_command (
add_custom_command (
O U T P U T $ { _ ou t _ n a m e }
O U T P U T $ { _ ba s e n a m e }
C O M M A N D $ { I N T L T O O L _ M E R G E _ E X E C U T A B L E } - d $ { _ p o _ d i r } $ { _ ou t _ n a m e } . i n $ { _ ou t _ n a m e }
C O M M A N D $ { I N T L T O O L _ M E R G E _ E X E C U T A B L E } - d $ { _ p o _ d i r } $ { _ ba s e n a m e } . i n $ { _ ba s e n a m e }
D E P E N D S $ { _ s r c }
D E P E N D S $ { _ s r c }
)
)
endif ( )
endif ( )
# m e r g e t r a n s l a t i o n s t a r g e t
# m e r g e t r a n s l a t i o n s t a r g e t
add_custom_target ( "${_target}" ALL DEPENDS ${ _out_ name} )
add_custom_target ( "${_target}" ALL DEPENDS ${ CMAKE_CURRENT_BINARY_DIR} / ${ _base name} )
else ( )
else ( )
# j u s t w r i t e t h e o r i g i n a l f i l e w i t h o u t t r a n s l a t i o n s
# j u s t w r i t e t h e o r i g i n a l f i l e w i t h o u t t r a n s l a t i o n s
file ( READ ${ _src } _src_data )
file ( READ ${ _src } _src_data )
file ( WRITE ${ CMAKE_CURRENT_BINARY_DIR } / ${ _ out_ name} "${_src_data}" )
file ( WRITE ${ CMAKE_CURRENT_BINARY_DIR } / ${ _ base name} "${_src_data}" )
endif ( )
endif ( )
# i n s t a l l t r a s l a t e d d e s k t o p f i l e
# i n s t a l l t r a s l a t e d d e s k t o p f i l e
install ( FILES ${ CMAKE_CURRENT_BINARY_DIR } / ${ _out_name } DESTINATION ${ _dest } )
install (
F I L E S $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ b a s e n a m e }
R E N A M E $ { _ o u t _ n a m e }
D E S T I N A T I O N $ { _ d e s t }
)
endmacro ( )
endmacro ( )