diff options
author | Slávek Banko <[email protected]> | 2021-07-22 18:16:19 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-07-23 11:30:38 +0200 |
commit | 9877be51998ac1ad3fb87f388aa123983cc84583 (patch) | |
tree | 70c0c53f509ea70d67971aa170420979c8990b41 | |
parent | 982815b69f037be1370e23498e96c70d749a00dd (diff) | |
download | kaffeine-9877be51998ac1ad3fb87f388aa123983cc84583.tar.gz kaffeine-9877be51998ac1ad3fb87f388aa123983cc84583.zip |
Use common rules for build and install documentation and translations.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 9755721093439febe785b40b2c9975a45e8dfbbf)
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | doc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | doc/en/discwindow.png (renamed from doc/kaffeine/discwindow.png) | bin | 191080 -> 191080 bytes | |||
-rw-r--r-- | doc/en/dvbbroadcast.png (renamed from doc/kaffeine/dvbbroadcast.png) | bin | 18122 -> 18122 bytes | |||
-rw-r--r-- | doc/en/dvbclient.png (renamed from doc/kaffeine/dvbclient.png) | bin | 400011 -> 400011 bytes | |||
-rw-r--r-- | doc/en/dvbconfig.png (renamed from doc/kaffeine/dvbconfig.png) | bin | 33608 -> 33608 bytes | |||
-rw-r--r-- | doc/en/dvbepg.png (renamed from doc/kaffeine/dvbepg.png) | bin | 28162 -> 28162 bytes | |||
-rw-r--r-- | doc/en/dvblive.jpg (renamed from doc/kaffeine/dvblive.jpg) | bin | 77062 -> 77062 bytes | |||
-rw-r--r-- | doc/en/dvbscan.png (renamed from doc/kaffeine/dvbscan.png) | bin | 46159 -> 46159 bytes | |||
-rw-r--r-- | doc/en/dvbtimers.png (renamed from doc/kaffeine/dvbtimers.png) | bin | 32871 -> 32871 bytes | |||
-rw-r--r-- | doc/en/dvbwin.png (renamed from doc/kaffeine/dvbwin.png) | bin | 265591 -> 265591 bytes | |||
-rw-r--r-- | doc/en/gstpart.png (renamed from doc/kaffeine/gstpart.png) | bin | 40659 -> 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) | bin | 106916 -> 106916 bytes | |||
-rw-r--r-- | doc/en/playlistwin.png (renamed from doc/kaffeine/playlistwin.png) | bin | 82939 -> 82939 bytes | |||
-rw-r--r-- | doc/en/startwindow.png (renamed from doc/kaffeine/startwindow.png) | bin | 36173 -> 36173 bytes | |||
-rw-r--r-- | doc/kaffeine/CMakeLists.txt | 8 | ||||
-rw-r--r-- | doc/man/CMakeLists.txt | 5 | ||||
-rw-r--r-- | translations/CMakeLists.txt | 1 | ||||
-rw-r--r-- | translations/messages/CMakeLists.txt | 14 |
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 Binary files differindex 08e0282..08e0282 100644 --- a/doc/kaffeine/discwindow.png +++ b/doc/en/discwindow.png diff --git a/doc/kaffeine/dvbbroadcast.png b/doc/en/dvbbroadcast.png Binary files differindex 12c6acb..12c6acb 100644 --- a/doc/kaffeine/dvbbroadcast.png +++ b/doc/en/dvbbroadcast.png diff --git a/doc/kaffeine/dvbclient.png b/doc/en/dvbclient.png Binary files differindex 2eba8c1..2eba8c1 100644 --- a/doc/kaffeine/dvbclient.png +++ b/doc/en/dvbclient.png diff --git a/doc/kaffeine/dvbconfig.png b/doc/en/dvbconfig.png Binary files differindex dca9ec9..dca9ec9 100644 --- a/doc/kaffeine/dvbconfig.png +++ b/doc/en/dvbconfig.png diff --git a/doc/kaffeine/dvbepg.png b/doc/en/dvbepg.png Binary files differindex 57fd9da..57fd9da 100644 --- a/doc/kaffeine/dvbepg.png +++ b/doc/en/dvbepg.png diff --git a/doc/kaffeine/dvblive.jpg b/doc/en/dvblive.jpg Binary files differindex 0d6948f..0d6948f 100644 --- a/doc/kaffeine/dvblive.jpg +++ b/doc/en/dvblive.jpg diff --git a/doc/kaffeine/dvbscan.png b/doc/en/dvbscan.png Binary files differindex fc3de42..fc3de42 100644 --- a/doc/kaffeine/dvbscan.png +++ b/doc/en/dvbscan.png diff --git a/doc/kaffeine/dvbtimers.png b/doc/en/dvbtimers.png Binary files differindex 83c4c53..83c4c53 100644 --- a/doc/kaffeine/dvbtimers.png +++ b/doc/en/dvbtimers.png diff --git a/doc/kaffeine/dvbwin.png b/doc/en/dvbwin.png Binary files differindex 94cfa1f..94cfa1f 100644 --- a/doc/kaffeine/dvbwin.png +++ b/doc/en/dvbwin.png diff --git a/doc/kaffeine/gstpart.png b/doc/en/gstpart.png Binary files differindex 7fba99a..7fba99a 100644 --- a/doc/kaffeine/gstpart.png +++ b/doc/en/gstpart.png 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 Binary files differindex a3360ac..a3360ac 100644 --- a/doc/kaffeine/kaffeinepart.png +++ b/doc/en/kaffeinepart.png diff --git a/doc/kaffeine/playlistwin.png b/doc/en/playlistwin.png Binary files differindex d3bd631..d3bd631 100644 --- a/doc/kaffeine/playlistwin.png +++ b/doc/en/playlistwin.png diff --git a/doc/kaffeine/startwindow.png b/doc/en/startwindow.png Binary files differindex 2da29bf..2da29bf 100644 --- a/doc/kaffeine/startwindow.png +++ b/doc/en/startwindow.png 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( ) |