Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2fa177c5d6)
pull/30/head
Slávek Banko 4 years ago
parent 898fe8dd6b
commit 569a752784
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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