Browse Source

Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/9/head
Slávek Banko 1 year ago
parent
commit
b21981e7e3
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
  1. 2
      atlantik/CMakeLists.txt
  2. 2
      kbackgammon/CMakeLists.txt
  3. 2
      kbattleship/kbattleship/CMakeLists.txt
  4. 2
      kfouleggs/CMakeLists.txt
  5. 2
      klickety/CMakeLists.txt
  6. 2
      kmines/data/CMakeLists.txt
  7. 2
      knetwalk/src/CMakeLists.txt
  8. 26
      kolf/CMakeLists.txt
  9. 14
      kolf/courses/CMakeLists.txt
  10. 2
      kreversi/sounds/CMakeLists.txt
  11. 2
      ksame/CMakeLists.txt
  12. 2
      ksirtet/ksirtet/CMakeLists.txt
  13. 4
      ktuberling/CMakeLists.txt
  14. 2
      libtdegames/carddecks/CMakeLists.txt

2
atlantik/CMakeLists.txt

@ -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(

2
kbackgammon/CMakeLists.txt

@ -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(

2
kbattleship/kbattleship/CMakeLists.txt

@ -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 )

2
kfouleggs/CMakeLists.txt

@ -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 )

2
klickety/CMakeLists.txt

@ -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

2
kmines/data/CMakeLists.txt

@ -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
)

2
knetwalk/src/CMakeLists.txt

@ -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 )

26
kolf/CMakeLists.txt

@ -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}
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-desktops
)
endforeach()
tde_create_translated_desktop(
SOURCE x-kourse.desktop x-kolf.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
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}
DESTINATION ${DATA_INSTALL_DIR}/kolf
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-courses
)
endforeach()
tde_create_translated_desktop(
SOURCE intro tutorial.kolf
DESTINATION ${DATA_INSTALL_DIR}/kolf
PO_DIR kolf-courses
)
install( FILES kolfui.rc tutorial.kolfgame
DESTINATION ${DATA_INSTALL_DIR}/kolf

14
kolf/courses/CMakeLists.txt

@ -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
ReallyEasy Practice Impossible USApro
tde_create_translated_desktop(
SOURCE
Classic.kolf Hard.kolf Medium.kolf Easy.kolf
ReallyEasy Practice Impossible USApro
DESTINATION ${DATA_INSTALL_DIR}/kolf/courses
PO_DIR ${CMAKE_SOURCE_DIR}translations/desktop_files/kolf-courses
)
tde_create_translated_desktop(
SOURCE ${_course}
DESTINATION ${DATA_INSTALL_DIR}/kolf/courses
PO_DIR ${CMAKE_SOURCE_DIR}translations/desktop_files/kolf-courses
)
endforeach()

2
kreversi/sounds/CMakeLists.txt

@ -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

2
ksame/CMakeLists.txt

@ -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 )

2
ksirtet/ksirtet/CMakeLists.txt

@ -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
)

4
ktuberling/CMakeLists.txt

@ -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

2
libtdegames/carddecks/CMakeLists.txt

@ -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