Browse Source

Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/29/head
Slávek Banko 2 years ago
parent
commit
2fa177c5d6
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 4
      ark/CMakeLists.txt
  2. 10
      kdf/CMakeLists.txt
  3. 4
      kfloppy/CMakeLists.txt
  4. 14
      kgpg/CMakeLists.txt
  5. 2
      khexedit/CMakeLists.txt
  6. 2
      khexedit/parts/kbytesedit/CMakeLists.txt
  7. 2
      khexedit/parts/kpart/CMakeLists.txt
  8. 12
      klaptopdaemon/applnk/CMakeLists.txt
  9. 2
      kmilo/asus/CMakeLists.txt
  10. 2
      kmilo/delli8k/CMakeLists.txt
  11. 2
      kmilo/demo/CMakeLists.txt
  12. 2
      kmilo/generic/CMakeLists.txt
  13. 2
      kmilo/kmilo_kvaio/CMakeLists.txt
  14. 2
      kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt
  15. 4
      kmilo/kmilod/CMakeLists.txt
  16. 2
      kmilo/powerbook/CMakeLists.txt
  17. 2
      kmilo/powerbook2/CMakeLists.txt
  18. 2
      kmilo/thinkpad/CMakeLists.txt
  19. 2
      kmilo/thinkpad/kcmthinkpad/CMakeLists.txt
  20. 4
      kregexpeditor/CMakeLists.txt
  21. 2
      ksim/CMakeLists.txt
  22. 2
      ksim/monitors/cpu/CMakeLists.txt
  23. 2
      ksim/monitors/disk/CMakeLists.txt
  24. 2
      ksim/monitors/filesystem/CMakeLists.txt
  25. 2
      ksim/monitors/i8k/CMakeLists.txt
  26. 2
      ksim/monitors/lm_sensors/CMakeLists.txt
  27. 2
      ksim/monitors/mail/CMakeLists.txt
  28. 2
      ksim/monitors/net/CMakeLists.txt
  29. 2
      ksim/monitors/snmp/CMakeLists.txt
  30. 2
      superkaramba/mimetypes/CMakeLists.txt
  31. 2
      superkaramba/src/CMakeLists.txt
  32. 4
      tdefilereplace/CMakeLists.txt
  33. 2
      tdelirc/irkick/CMakeLists.txt
  34. 2
      tdelirc/kcmlirc/CMakeLists.txt
  35. 10
      tdewallet/CMakeLists.txt
  36. 14
      tdewallet/konfigurator/CMakeLists.txt

4
ark/CMakeLists.txt

@ -69,13 +69,13 @@ install( FILES arkui.rc ark_part.rc
tde_create_translated_desktop(
SOURCE ark.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ark-desktops
PO_DIR ark-desktops
)
tde_create_translated_desktop(
SOURCE ark_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ark-desktops
PO_DIR ark-desktops
)
install( FILES ark.kcfg

10
kdf/CMakeLists.txt

@ -67,9 +67,7 @@ install( FILES kdfui.rc
DESTINATION ${DATA_INSTALL_DIR}/kdf
)
foreach( _desktop kdf.desktop kwikdisk.desktop kcmdf.desktop )
tde_create_translated_desktop(
SOURCE ${_desktop}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kdf-desktops
)
endforeach()
tde_create_translated_desktop(
SOURCE kdf.desktop kwikdisk.desktop kcmdf.desktop
PO_DIR kdf-desktops
)

4
kfloppy/CMakeLists.txt

@ -40,11 +40,11 @@ tde_install_icons( kfloppy)
tde_create_translated_desktop(
SOURCE KFloppy.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kfloppy-desktops
PO_DIR kfloppy-desktops
)
tde_create_translated_desktop(
SOURCE floppy_format.desktop
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kfloppy-desktops
PO_DIR kfloppy-desktops
)

14
kgpg/CMakeLists.txt

@ -59,7 +59,7 @@ install( FILES kgpg_anim.gif kgpg_docked.png
tde_create_translated_desktop(
SOURCE kgpg.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kgpg-desktops
PO_DIR kgpg-desktops
)
install(
@ -71,13 +71,11 @@ install( FILES kgpg.rc listkeys.rc tips
DESTINATION ${DATA_INSTALL_DIR}/kgpg
)
foreach( _desktop encryptfile.desktop encryptfolder.desktop )
tde_create_translated_desktop(
SOURCE ${_desktop}
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kgpg-desktops
)
endforeach()
tde_create_translated_desktop(
SOURCE encryptfile.desktop encryptfolder.desktop
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
PO_DIR kgpg-desktops
)
install( FILES kgpg.kcfg
DESTINATION ${KCFG_INSTALL_DIR}

2
khexedit/CMakeLists.txt

@ -57,5 +57,5 @@ install( FILES khexeditui.rc
tde_create_translated_desktop(
SOURCE khexedit.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/khexedit-desktops
PO_DIR khexedit-desktops
)

2
khexedit/parts/kbytesedit/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( libkbyteseditwidget AUTOMOC
tde_create_translated_desktop(
SOURCE kbyteseditwidget.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/khexdedit-desktops
PO_DIR khexdedit-desktops
)

2
khexedit/parts/kpart/CMakeLists.txt

@ -39,7 +39,7 @@ tde_add_kpart( libkhexedit2part AUTOMOC
tde_create_translated_desktop(
SOURCE khexedit2part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/khexedit-desktops
PO_DIR khexedit-desktops
)
install( FILES khexedit2partui.rc

12
klaptopdaemon/applnk/CMakeLists.txt

@ -9,15 +9,13 @@
#
#################################################
foreach( _desktop laptop.desktop pcmcia.desktop )
tde_create_translated_desktop(
SOURCE ${_desktop}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/klaptopdaemon-desktops
)
endforeach()
tde_create_translated_desktop(
SOURCE laptop.desktop pcmcia.desktop
PO_DIR klaptopdaemon-desktops
)
tde_create_translated_desktop(
SOURCE klaptopdaemon.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kded
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/klaptopdaemon-desktops
PO_DIR klaptopdaemon-desktops
)

2
kmilo/asus/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( kmilo_asus AUTOMOC
tde_create_translated_desktop(
SOURCE kmilo_asus.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

2
kmilo/delli8k/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( kmilo_delli8k AUTOMOC
tde_create_translated_desktop(
SOURCE kmilo_delli8k.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

2
kmilo/demo/CMakeLists.txt

@ -36,5 +36,5 @@ tde_add_kpart( kmilo_demo AUTOMOC
tde_create_translated_desktop(
SOURCE kmilo_demo.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

2
kmilo/generic/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( kmilo_generic AUTOMOC
tde_create_translated_desktop(
SOURCE kmilo_generic.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

2
kmilo/kmilo_kvaio/CMakeLists.txt

@ -48,5 +48,5 @@ tde_add_kpart( kmilo_kvaio AUTOMOC
tde_create_translated_desktop(
SOURCE kmilo_kvaio.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

2
kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( kcm_kvaio AUTOMOC
tde_create_translated_desktop(
SOURCE kvaio.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

4
kmilo/kmilod/CMakeLists.txt

@ -47,11 +47,11 @@ tde_add_kpart( kded_kmilod AUTOMOC
tde_create_translated_desktop(
SOURCE kmilod.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kded
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)
tde_create_translated_desktop(
SOURCE kmilopluginsvc.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}/kmilo
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

2
kmilo/powerbook/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( kmilo_powerbook AUTOMOC
tde_create_translated_desktop(
SOURCE kmilo_powerbook.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

2
kmilo/powerbook2/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( kmilo_powerbook AUTOMOC
tde_create_translated_desktop(
SOURCE kmilo_powerbook.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

2
kmilo/thinkpad/CMakeLists.txt

@ -40,5 +40,5 @@ tde_add_kpart( kmilo_thinkpad AUTOMOC
tde_create_translated_desktop(
SOURCE kmilo_thinkpad.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

2
kmilo/thinkpad/kcmthinkpad/CMakeLists.txt

@ -39,5 +39,5 @@ tde_add_kpart( kcm_thinkpad AUTOMOC
tde_create_translated_desktop(
SOURCE thinkpad.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmilo-desktops
PO_DIR kmilo-desktops
)

4
kregexpeditor/CMakeLists.txt

@ -102,11 +102,11 @@ tde_install_icons( )
tde_create_translated_desktop(
SOURCE kregexpeditor.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kregexpeditor-desktops
PO_DIR kregexpeditor-desktops
)
tde_create_translated_desktop(
SOURCE kregexpeditorgui.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kregexpeditor-desktops
PO_DIR kregexpeditor-desktops
)

2
ksim/CMakeLists.txt

@ -53,7 +53,7 @@ tde_add_kpart( ksim_panelextension AUTOMOC
tde_create_translated_desktop(
SOURCE ksim.desktop
DESTINATION ${DATA_INSTALL_DIR}/kicker/extensions
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksim-desktops
PO_DIR ksim-desktops
)
install( FILES ksim_panelextensionrc

2
ksim/monitors/cpu/CMakeLists.txt

@ -43,5 +43,5 @@ tde_install_icons( )
tde_create_translated_desktop(
SOURCE cpu.desktop
DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksim-desktops
PO_DIR ksim-desktops
)

2
ksim/monitors/disk/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( ksim_disk AUTOMOC
tde_create_translated_desktop(
SOURCE disk.desktop
DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksim-desktops
PO_DIR ksim-desktops
)

2
ksim/monitors/filesystem/CMakeLists.txt

@ -40,5 +40,5 @@ tde_add_kpart( ksim_filesystem AUTOMOC
tde_create_translated_desktop(
SOURCE DFree.desktop
DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksim-desktops
PO_DIR ksim-desktops
)

2
ksim/monitors/i8k/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( ksim_i8k AUTOMOC
tde_create_translated_desktop(
SOURCE i8k.desktop
DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksim-desktops
PO_DIR ksim-desktops
)

2
ksim/monitors/lm_sensors/CMakeLists.txt

@ -46,5 +46,5 @@ tde_add_kpart( ksim_sensors AUTOMOC
tde_create_translated_desktop(
SOURCE Lm_sensors.desktop
DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksim-desktops
PO_DIR ksim-desktops
)

2
ksim/monitors/mail/CMakeLists.txt

@ -36,5 +36,5 @@ tde_add_kpart( ksim_mail AUTOMOC
tde_create_translated_desktop(
SOURCE mail.desktop
DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksim-desktops
PO_DIR ksim-desktops
)

2
ksim/monitors/net/CMakeLists.txt

@ -38,5 +38,5 @@ tde_add_kpart( ksim_net AUTOMOC
tde_create_translated_desktop(
SOURCE Net.desktop
DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksim-desktops
PO_DIR ksim-desktops
)

2
ksim/monitors/snmp/CMakeLists.txt

@ -48,5 +48,5 @@ tde_add_kpart( ksim_snmp AUTOMOC
tde_create_translated_desktop(
SOURCE Snmp.desktop
DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksim-desktops
PO_DIR ksim-desktops
)

2
superkaramba/mimetypes/CMakeLists.txt

@ -12,5 +12,5 @@
tde_create_translated_desktop(
SOURCE x-superkaramba.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/superkaramba-desktops
PO_DIR superkaramba-desktops
)

2
superkaramba/src/CMakeLists.txt

@ -69,5 +69,5 @@ install( FILES superkarambaui.rc
tde_create_translated_desktop(
SOURCE superkaramba.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/superkaramba-desktops
PO_DIR superkaramba-desktops
)

4
tdefilereplace/CMakeLists.txt

@ -28,12 +28,12 @@ link_directories(
tde_install_icons( )
tde_create_translated_desktop(
SOURCE tdefilereplace.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefilereplace-desktops
PO_DIR tdefilereplace-desktops
)
tde_create_translated_desktop(
SOURCE tdefilereplacepart.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefilereplace-desktops
PO_DIR tdefilereplace-desktops
)
install( FILES tdefilereplacepartui.rc DESTINATION ${DATA_INSTALL_DIR}/tdefilereplacepart )
install( FILES tdefilereplaceui.rc DESTINATION ${DATA_INSTALL_DIR}/tdefilereplace )

2
tdelirc/irkick/CMakeLists.txt

@ -52,7 +52,7 @@ tde_install_icons( )
tde_create_translated_desktop(
SOURCE irkick.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdelirc-desktops
PO_DIR tdelirc-desktops
)
install(

2
tdelirc/kcmlirc/CMakeLists.txt

@ -44,5 +44,5 @@ tde_add_kpart( kcm_kcmlirc AUTOMOC
tde_create_translated_desktop(
SOURCE kcmlirc.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdelirc-desktops
PO_DIR tdelirc-desktops
)

10
tdewallet/CMakeLists.txt

@ -48,9 +48,7 @@ install( FILES tdewalletmanager.rc tdewalleteditor.rc
DESTINATION ${DATA_INSTALL_DIR}/tdewalletmanager
)
foreach( _desktop tdewalletmanager.desktop tdewalletmanager-tdewalletd.desktop )
tde_create_translated_desktop(
SOURCE ${_desktop}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdewallet-desktops
)
endforeach()
tde_create_translated_desktop(
SOURCE tdewalletmanager.desktop tdewalletmanager-tdewalletd.desktop
PO_DIR tdewallet-desktops
)

14
tdewallet/konfigurator/CMakeLists.txt

@ -35,13 +35,11 @@ tde_add_kpart( kcm_tdewallet AUTOMOC
tde_create_translated_desktop(
SOURCE tdewalletconfig.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdewallet-desktops
PO_DIR tdewallet-desktops
)
foreach( _desktop tdewallet_config.desktop tdewalletmanager_show.desktop )
tde_create_translated_desktop(
SOURCE ${_desktop}
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdewallet-desktops
)
endforeach()
tde_create_translated_desktop(
SOURCE tdewallet_config.desktop tdewalletmanager_show.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR tdewallet-desktops
)

Loading…
Cancel
Save