summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-07-22 18:16:19 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-07-23 11:30:38 +0200
commit9877be51998ac1ad3fb87f388aa123983cc84583 (patch)
tree70c0c53f509ea70d67971aa170420979c8990b41
parent982815b69f037be1370e23498e96c70d749a00dd (diff)
downloadkaffeine-9877be51.tar.gz
kaffeine-9877be51.zip
Use common rules for build and install documentation and translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 9755721093439febe785b40b2c9975a45e8dfbbf)
-rw-r--r--CMakeLists.txt8
-rw-r--r--doc/CMakeLists.txt2
-rw-r--r--doc/en/discwindow.png (renamed from doc/kaffeine/discwindow.png)bin191080 -> 191080 bytes
-rw-r--r--doc/en/dvbbroadcast.png (renamed from doc/kaffeine/dvbbroadcast.png)bin18122 -> 18122 bytes
-rw-r--r--doc/en/dvbclient.png (renamed from doc/kaffeine/dvbclient.png)bin400011 -> 400011 bytes
-rw-r--r--doc/en/dvbconfig.png (renamed from doc/kaffeine/dvbconfig.png)bin33608 -> 33608 bytes
-rw-r--r--doc/en/dvbepg.png (renamed from doc/kaffeine/dvbepg.png)bin28162 -> 28162 bytes
-rw-r--r--doc/en/dvblive.jpg (renamed from doc/kaffeine/dvblive.jpg)bin77062 -> 77062 bytes
-rw-r--r--doc/en/dvbscan.png (renamed from doc/kaffeine/dvbscan.png)bin46159 -> 46159 bytes
-rw-r--r--doc/en/dvbtimers.png (renamed from doc/kaffeine/dvbtimers.png)bin32871 -> 32871 bytes
-rw-r--r--doc/en/dvbwin.png (renamed from doc/kaffeine/dvbwin.png)bin265591 -> 265591 bytes
-rw-r--r--doc/en/gstpart.png (renamed from doc/kaffeine/gstpart.png)bin40659 -> 40659 bytes
-rw-r--r--doc/en/index.docbook (renamed from doc/kaffeine/index.docbook)0
-rw-r--r--doc/en/kaffeinepart.png (renamed from doc/kaffeine/kaffeinepart.png)bin106916 -> 106916 bytes
-rw-r--r--doc/en/playlistwin.png (renamed from doc/kaffeine/playlistwin.png)bin82939 -> 82939 bytes
-rw-r--r--doc/en/startwindow.png (renamed from doc/kaffeine/startwindow.png)bin36173 -> 36173 bytes
-rw-r--r--doc/kaffeine/CMakeLists.txt8
-rw-r--r--doc/man/CMakeLists.txt5
-rw-r--r--translations/CMakeLists.txt1
-rw-r--r--translations/messages/CMakeLists.txt14
20 files changed, 6 insertions, 32 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 695ea43..1c80379 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,8 +78,12 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
##### directories
add_subdirectory( ${PROJECT_NAME} )
-tde_conditional_add_subdirectory( BUILD_DOC doc )
-tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations )
+
+
+##### other data ################################
+
+tde_conditional_add_project_docs( BUILD_DOC )
+tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
##### write configure files
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
deleted file mode 100644
index 633b623..0000000
--- a/doc/CMakeLists.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-
-tde_auto_add_subdirectories( )
diff --git a/doc/kaffeine/discwindow.png b/doc/en/discwindow.png
index 08e0282..08e0282 100644
--- a/doc/kaffeine/discwindow.png
+++ b/doc/en/discwindow.png
Binary files differ
diff --git a/doc/kaffeine/dvbbroadcast.png b/doc/en/dvbbroadcast.png
index 12c6acb..12c6acb 100644
--- a/doc/kaffeine/dvbbroadcast.png
+++ b/doc/en/dvbbroadcast.png
Binary files differ
diff --git a/doc/kaffeine/dvbclient.png b/doc/en/dvbclient.png
index 2eba8c1..2eba8c1 100644
--- a/doc/kaffeine/dvbclient.png
+++ b/doc/en/dvbclient.png
Binary files differ
diff --git a/doc/kaffeine/dvbconfig.png b/doc/en/dvbconfig.png
index dca9ec9..dca9ec9 100644
--- a/doc/kaffeine/dvbconfig.png
+++ b/doc/en/dvbconfig.png
Binary files differ
diff --git a/doc/kaffeine/dvbepg.png b/doc/en/dvbepg.png
index 57fd9da..57fd9da 100644
--- a/doc/kaffeine/dvbepg.png
+++ b/doc/en/dvbepg.png
Binary files differ
diff --git a/doc/kaffeine/dvblive.jpg b/doc/en/dvblive.jpg
index 0d6948f..0d6948f 100644
--- a/doc/kaffeine/dvblive.jpg
+++ b/doc/en/dvblive.jpg
Binary files differ
diff --git a/doc/kaffeine/dvbscan.png b/doc/en/dvbscan.png
index fc3de42..fc3de42 100644
--- a/doc/kaffeine/dvbscan.png
+++ b/doc/en/dvbscan.png
Binary files differ
diff --git a/doc/kaffeine/dvbtimers.png b/doc/en/dvbtimers.png
index 83c4c53..83c4c53 100644
--- a/doc/kaffeine/dvbtimers.png
+++ b/doc/en/dvbtimers.png
Binary files differ
diff --git a/doc/kaffeine/dvbwin.png b/doc/en/dvbwin.png
index 94cfa1f..94cfa1f 100644
--- a/doc/kaffeine/dvbwin.png
+++ b/doc/en/dvbwin.png
Binary files differ
diff --git a/doc/kaffeine/gstpart.png b/doc/en/gstpart.png
index 7fba99a..7fba99a 100644
--- a/doc/kaffeine/gstpart.png
+++ b/doc/en/gstpart.png
Binary files differ
diff --git a/doc/kaffeine/index.docbook b/doc/en/index.docbook
index 79a8152..79a8152 100644
--- a/doc/kaffeine/index.docbook
+++ b/doc/en/index.docbook
diff --git a/doc/kaffeine/kaffeinepart.png b/doc/en/kaffeinepart.png
index a3360ac..a3360ac 100644
--- a/doc/kaffeine/kaffeinepart.png
+++ b/doc/en/kaffeinepart.png
Binary files differ
diff --git a/doc/kaffeine/playlistwin.png b/doc/en/playlistwin.png
index d3bd631..d3bd631 100644
--- a/doc/kaffeine/playlistwin.png
+++ b/doc/en/playlistwin.png
Binary files differ
diff --git a/doc/kaffeine/startwindow.png b/doc/en/startwindow.png
index 2da29bf..2da29bf 100644
--- a/doc/kaffeine/startwindow.png
+++ b/doc/en/startwindow.png
Binary files differ
diff --git a/doc/kaffeine/CMakeLists.txt b/doc/kaffeine/CMakeLists.txt
deleted file mode 100644
index 65ddbc7..0000000
--- a/doc/kaffeine/CMakeLists.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-##### help page
-
-
-file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.docbook *.css *.png *.jpg )
-tde_create_handbook(
- FILES ${_srcs}
- DESTINATION ${PROJECT_NAME}
-)
diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt
deleted file mode 100644
index 8512250..0000000
--- a/doc/man/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-INSTALL(
- FILES ${PROJECT_NAME}.1
- DESTINATION ${MAN_INSTALL_DIR}/man1
- COMPONENT doc
-)
diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt
deleted file mode 100644
index 42b186a..0000000
--- a/translations/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-tde_auto_add_subdirectories()
diff --git a/translations/messages/CMakeLists.txt b/translations/messages/CMakeLists.txt
deleted file mode 100644
index 75c89f8..0000000
--- a/translations/messages/CMakeLists.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
-string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
-
-foreach( _po ${po_files} )
- get_filename_component( _lang ${_po} NAME_WE )
- if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" )
- if( "${_po}" MATCHES "^([^/]*)/.*" )
- string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" )
- else( )
- set( _component "${PROJECT_NAME}" )
- endif( )
- tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} )
- endif( )
-endforeach( )