Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit b21981e7e3)
r14.0.x
Slávek Banko 4 years ago
parent 6f19ced0b8
commit 1b49161758
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -15,7 +15,7 @@ tde_create_translated_desktop( atlantik.desktop )
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/atlantik
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/atlantik-eventsrc
PO_DIR atlantik-eventsrc
)
install(

@ -46,7 +46,7 @@ tde_create_translated_desktop( kbackgammon.desktop )
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kbackgammon
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kbackgammon-eventsrc
PO_DIR kbackgammon-eventsrc
)
install(

@ -54,7 +54,7 @@ install(
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kbattleship
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kbattleship-eventsrc
PO_DIR kbattleship-eventsrc
)
tde_create_translated_desktop( kbattleship.desktop )

@ -51,7 +51,7 @@ install( FILES kfouleggs.kcfg
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kfouleggs
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kfouleggs-eventsrc
PO_DIR kfouleggs-eventsrc
)
tde_create_translated_desktop( kfouleggs.desktop )

@ -41,7 +41,7 @@ tde_add_executable( klickety AUTOMOC
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/klickety
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/klickety-eventsrc
PO_DIR klickety-eventsrc
)
install( FILES klicketyui.rc

@ -10,5 +10,5 @@ tde_create_translated_desktop( kmines.desktop )
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kmines
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmines-eventsrc
PO_DIR kmines-eventsrc
)

@ -32,7 +32,7 @@ tde_add_executable( knetwalk AUTOMOC
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/knetwalk
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/knetwalk-eventsrc
PO_DIR knetwalk-eventsrc
)
tde_create_translated_desktop( knetwalk.desktop )

@ -68,13 +68,11 @@ add_custom_command ( OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc"
add_custom_target( kolf-magic-mgc ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc" )
foreach( _mimetype x-kourse.desktop x-kolf.desktop )
tde_create_translated_desktop(
SOURCE ${_mimetype}
tde_create_translated_desktop(
SOURCE x-kourse.desktop x-kolf.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-desktops
)
endforeach()
PO_DIR kolf-desktops
)
install( FILES kolf.magic "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc"
DESTINATION ${CONFIG_INSTALL_DIR}/magic
@ -82,16 +80,14 @@ install( FILES kolf.magic "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc"
tde_create_translated_desktop(
SOURCE kolf.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-desktops
PO_DIR kolf-desktops
)
foreach( _course intro tutorial.kolf )
tde_create_translated_desktop(
SOURCE ${_course}
tde_create_translated_desktop(
SOURCE intro tutorial.kolf
DESTINATION ${DATA_INSTALL_DIR}/kolf
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-courses
)
endforeach()
PO_DIR kolf-courses
)
install( FILES kolfui.rc tutorial.kolfgame
DESTINATION ${DATA_INSTALL_DIR}/kolf

@ -1,11 +1,9 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
foreach( _course Classic.kolf Hard.kolf Medium.kolf Easy.kolf
tde_create_translated_desktop(
SOURCE
Classic.kolf Hard.kolf Medium.kolf Easy.kolf
ReallyEasy Practice Impossible USApro
)
tde_create_translated_desktop(
SOURCE ${_course}
DESTINATION ${DATA_INSTALL_DIR}/kolf/courses
PO_DIR ${CMAKE_SOURCE_DIR}translations/desktop_files/kolf-courses
)
endforeach()
)

@ -3,7 +3,7 @@
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kreversi
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kreversi-eventsrc
PO_DIR kreversi-eventsrc
)
install( FILES reversi-click.wav reversi-won.wav

@ -38,7 +38,7 @@ install(
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/ksame
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksame-eventsrc
PO_DIR ksame-eventsrc
)
tde_create_translated_desktop( ksame.desktop )

@ -70,5 +70,5 @@ install( FILES ksirtet.kcfg
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/ksirtet
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksirtet-eventsrc
PO_DIR ksirtet-eventsrc
)

@ -39,12 +39,12 @@ tde_install_icons( ktuberling )
tde_create_translated_desktop(
SOURCE x-tuberling.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ktuberling-desktops
PO_DIR ktuberling-desktops
)
tde_create_translated_desktop(
SOURCE ktuberling.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ktuberling-desktops
PO_DIR ktuberling-desktops
)
install( FILES ktuberlingui.rc

@ -25,6 +25,6 @@ foreach( _desktop IN LISTS _desktops )
tde_create_translated_desktop(
SOURCE ${_desktop}
DESTINATION ${DATA_INSTALL_DIR}/carddecks/${_theme}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/libtdegames-carddecks
PO_DIR libtdegames-carddecks
)
endforeach()

Loading…
Cancel
Save