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 4 months ago
parent
commit
b21981e7e3
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
14 changed files with 30 additions and 36 deletions
  1. +1
    -1
      atlantik/CMakeLists.txt
  2. +1
    -1
      kbackgammon/CMakeLists.txt
  3. +1
    -1
      kbattleship/kbattleship/CMakeLists.txt
  4. +1
    -1
      kfouleggs/CMakeLists.txt
  5. +1
    -1
      klickety/CMakeLists.txt
  6. +1
    -1
      kmines/data/CMakeLists.txt
  7. +1
    -1
      knetwalk/src/CMakeLists.txt
  8. +11
    -15
      kolf/CMakeLists.txt
  9. +6
    -8
      kolf/courses/CMakeLists.txt
  10. +1
    -1
      kreversi/sounds/CMakeLists.txt
  11. +1
    -1
      ksame/CMakeLists.txt
  12. +1
    -1
      ksirtet/ksirtet/CMakeLists.txt
  13. +2
    -2
      ktuberling/CMakeLists.txt
  14. +1
    -1
      libtdegames/carddecks/CMakeLists.txt

+ 1
- 1
atlantik/CMakeLists.txt View File

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


+ 1
- 1
kbackgammon/CMakeLists.txt View File

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


+ 1
- 1
kbattleship/kbattleship/CMakeLists.txt View File

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


+ 1
- 1
kfouleggs/CMakeLists.txt View File

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

+ 1
- 1
klickety/CMakeLists.txt View File

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


+ 1
- 1
kmines/data/CMakeLists.txt View File

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

+ 1
- 1
knetwalk/src/CMakeLists.txt View File

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


+ 11
- 15
kolf/CMakeLists.txt View File

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


+ 6
- 8
kolf/courses/CMakeLists.txt View File

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

+ 1
- 1
kreversi/sounds/CMakeLists.txt View File

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


+ 1
- 1
ksame/CMakeLists.txt View File

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

+ 1
- 1
ksirtet/ksirtet/CMakeLists.txt View File

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

+ 2
- 2
ktuberling/CMakeLists.txt View File

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


+ 1
- 1
libtdegames/carddecks/CMakeLists.txt View File

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