summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-09 03:35:29 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-09 03:35:51 +0200
commita22f9a51cca647a6a194bccc338800fcba2de39d (patch)
tree07894962afddd872b8672e8f17cb69e26025eb74
parent05f4389305dbb19194dbb5f6a1ad762a74057119 (diff)
downloadtdeedu-a22f9a51cca647a6a194bccc338800fcba2de39d.tar.gz
tdeedu-a22f9a51cca647a6a194bccc338800fcba2de39d.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit b845a73b7eb95f7928b2079b8a594a6b7b2ccb7d)
-rw-r--r--applnk/CMakeLists.txt10
-rw-r--r--keduca/keduca/CMakeLists.txt2
-rw-r--r--keduca/resources/CMakeLists.txt22
-rw-r--r--kig/kig/CMakeLists.txt4
-rw-r--r--kig/mimetypes/CMakeLists.txt11
-rw-r--r--kig/tdefile/CMakeLists.txt12
-rw-r--r--kmplot/kmplot/CMakeLists.txt6
-rw-r--r--kvoctrain/kvoctrain/CMakeLists.txt4
-rw-r--r--kwordquiz/src/CMakeLists.txt6
9 files changed, 34 insertions, 43 deletions
diff --git a/applnk/CMakeLists.txt b/applnk/CMakeLists.txt
index 8b64a5a1..5e0b426f 100644
--- a/applnk/CMakeLists.txt
+++ b/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
)
diff --git a/keduca/keduca/CMakeLists.txt b/keduca/keduca/CMakeLists.txt
index 80eeae43..4476355d 100644
--- a/keduca/keduca/CMakeLists.txt
+++ b/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
)
diff --git a/keduca/resources/CMakeLists.txt b/keduca/resources/CMakeLists.txt
index 58a3e7bb..7f39f3e4 100644
--- a/keduca/resources/CMakeLists.txt
+++ b/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
+)
diff --git a/kig/kig/CMakeLists.txt b/kig/kig/CMakeLists.txt
index 166cd370..8134f923 100644
--- a/kig/kig/CMakeLists.txt
+++ b/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
)
diff --git a/kig/mimetypes/CMakeLists.txt b/kig/mimetypes/CMakeLists.txt
index 468bba81..4a606f3f 100644
--- a/kig/mimetypes/CMakeLists.txt
+++ b/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()
diff --git a/kig/tdefile/CMakeLists.txt b/kig/tdefile/CMakeLists.txt
index 9d4ad579..0f74ec84 100644
--- a/kig/tdefile/CMakeLists.txt
+++ b/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
+)
diff --git a/kmplot/kmplot/CMakeLists.txt b/kmplot/kmplot/CMakeLists.txt
index 0f1ff6c7..fef6b1ae 100644
--- a/kmplot/kmplot/CMakeLists.txt
+++ b/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(
diff --git a/kvoctrain/kvoctrain/CMakeLists.txt b/kvoctrain/kvoctrain/CMakeLists.txt
index e44da25c..bec156ac 100644
--- a/kvoctrain/kvoctrain/CMakeLists.txt
+++ b/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(
diff --git a/kwordquiz/src/CMakeLists.txt b/kwordquiz/src/CMakeLists.txt
index 881a9e7a..2128055e 100644
--- a/kwordquiz/src/CMakeLists.txt
+++ b/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(