Browse Source

Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/14/head
Slávek Banko 2 years ago
parent
commit
b845a73b7e
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 10
      applnk/CMakeLists.txt
  2. 2
      keduca/keduca/CMakeLists.txt
  3. 22
      keduca/resources/CMakeLists.txt
  4. 4
      kig/kig/CMakeLists.txt
  5. 11
      kig/mimetypes/CMakeLists.txt
  6. 12
      kig/tdefile/CMakeLists.txt
  7. 6
      kmplot/kmplot/CMakeLists.txt
  8. 4
      kvoctrain/kvoctrain/CMakeLists.txt
  9. 6
      kwordquiz/src/CMakeLists.txt

10
applnk/CMakeLists.txt

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

2
keduca/keduca/CMakeLists.txt

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

22
keduca/resources/CMakeLists.txt

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

4
kig/kig/CMakeLists.txt

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

11
kig/mimetypes/CMakeLists.txt

@ -23,16 +23,13 @@ install(
DESTINATION ${CONFIG_INSTALL_DIR}/magic
)
foreach( _mimetype
tde_create_translated_desktop(
SOURCE
x-kig.desktop
x-kgeo.desktop
x-kseg.desktop
x-cabri.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()

12
kig/tdefile/CMakeLists.txt

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

6
kmplot/kmplot/CMakeLists.txt

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

4
kvoctrain/kvoctrain/CMakeLists.txt

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

6
kwordquiz/src/CMakeLists.txt

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

Loading…
Cancel
Save