Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/14/head
Slávek Banko 4 years ago
parent 1e72386cec
commit b845a73b7e
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -3,34 +3,34 @@
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE languages.desktop SOURCE languages.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Languages DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Languages
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories PO_DIR applnk-directories
OUTPUT_NAME .directory OUTPUT_NAME .directory
) )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE mathematics.desktop SOURCE mathematics.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Mathematics DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Mathematics
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories PO_DIR applnk-directories
OUTPUT_NAME .directory OUTPUT_NAME .directory
) )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE science.desktop SOURCE science.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Science DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Science
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories PO_DIR applnk-directories
OUTPUT_NAME .directory OUTPUT_NAME .directory
) )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE tools.desktop SOURCE tools.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Tools DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Tools
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories PO_DIR applnk-directories
OUTPUT_NAME .directory OUTPUT_NAME .directory
) )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE miscellaneous.desktop SOURCE miscellaneous.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Miscellaneous DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Miscellaneous
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories PO_DIR applnk-directories
OUTPUT_NAME .directory OUTPUT_NAME .directory
) )

@ -71,5 +71,5 @@ install(
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE keduca_part.desktop SOURCE keduca_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR} DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/keduca-desktops PO_DIR keduca-desktops
) )

@ -9,17 +9,13 @@ tde_install_icons( )
##### other data ##### other data
foreach( _mimetype x-edu.desktop x-edugallery.desktop ) tde_create_translated_desktop(
tde_create_translated_desktop( SOURCE x-edu.desktop x-edugallery.desktop
SOURCE ${_mimetype} DESTINATION ${MIME_INSTALL_DIR}/application
DESTINATION ${MIME_INSTALL_DIR}/application PO_DIR keduca-mimetypes
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/keduca-mimetypes )
)
endforeach()
foreach( _desktop keduca.desktop keducabuilder.desktop ) tde_create_translated_desktop(
tde_create_translated_desktop( SOURCE keduca.desktop keducabuilder.desktop
SOURCE ${_desktop} PO_DIR keduca-desktops
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/keduca-desktops )
)
endforeach()

@ -58,11 +58,11 @@ install(
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE kig.desktop SOURCE kig.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-desktops PO_DIR kig-desktops
) )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE kig_part.desktop SOURCE kig_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR} DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-desktops PO_DIR kig-desktops
) )

@ -23,16 +23,13 @@ install(
DESTINATION ${CONFIG_INSTALL_DIR}/magic DESTINATION ${CONFIG_INSTALL_DIR}/magic
) )
foreach( _mimetype tde_create_translated_desktop(
SOURCE
x-kig.desktop x-kig.desktop
x-kgeo.desktop x-kgeo.desktop
x-kseg.desktop x-kseg.desktop
x-cabri.desktop x-cabri.desktop
x-drgeo.desktop x-drgeo.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR kig-mimetypes
) )
tde_create_translated_desktop(
SOURCE ${_mimetype}
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-mimetypes
)
endforeach()

@ -44,10 +44,8 @@ tde_add_kpart( tdefile_kig AUTOMOC
##### other data ##### other data
foreach( _tdefile tdefile_drgeo.desktop tdefile_kig.desktop ) tde_create_translated_desktop(
tde_create_translated_desktop( SOURCE tdefile_drgeo.desktop tdefile_kig.desktop
SOURCE ${_tdefile} DESTINATION ${SERVICES_INSTALL_DIR}
DESTINATION ${SERVICES_INSTALL_DIR} PO_DIR kig-tdefile
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-tdefile )
)
endforeach()

@ -108,18 +108,18 @@ install(
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE x-kmplot.desktop SOURCE x-kmplot.desktop
DESTINATION ${MIME_INSTALL_DIR}/application DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmplot-desktops PO_DIR kmplot-desktops
) )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE kmplot.desktop SOURCE kmplot.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmplot-desktops PO_DIR kmplot-desktops
) )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE kmplot_part.desktop SOURCE kmplot_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR} DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmplot-desktops PO_DIR kmplot-desktops
) )
install( install(

@ -87,7 +87,7 @@ tde_add_executable( spotlight2kvtml AUTOMOC
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE x-kvtml.desktop SOURCE x-kvtml.desktop
DESTINATION ${MIME_INSTALL_DIR}/text DESTINATION ${MIME_INSTALL_DIR}/text
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kvoctrain-desktops PO_DIR kvoctrain-desktops
) )
install( install(
@ -97,7 +97,7 @@ install(
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE kvoctrain.desktop SOURCE kvoctrain.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kvoctrain-desktops PO_DIR kvoctrain-desktops
) )
install( install(

@ -80,18 +80,18 @@ install(
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE eventsrc SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kwordquiz DESTINATION ${DATA_INSTALL_DIR}/kwordquiz
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kwordquiz-events PO_DIR kwordquiz-events
) )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE kwordquiz.desktop SOURCE kwordquiz.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kwordquiz-desktops PO_DIR kwordquiz-desktops
) )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE x-kwordquiz.desktop SOURCE x-kwordquiz.desktop
DESTINATION ${MIME_INSTALL_DIR}/application DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kwordquiz-desktops PO_DIR kwordquiz-desktops
) )
install( install(

Loading…
Cancel
Save