summaryrefslogtreecommitdiffstats
path: root/quanta
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-02 02:27:18 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-13 00:44:04 +0100
commit5f692d18937536679f2fa7f41766e3b92aeeae8f (patch)
tree9c693096400dbe3210cb91a5bd19497c5190ba44 /quanta
parent92326f9e69bb4aee30dd0f088523d293fc0804da (diff)
downloadtdewebdev-5f692d18937536679f2fa7f41766e3b92aeeae8f.tar.gz
tdewebdev-5f692d18937536679f2fa7f41766e3b92aeeae8f.zip
Quanta: Change CMake rules to make tarballs for toolbars created during building.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 8155faa4ac0e5ac5b6e304c68d04a6df25690feb)
Diffstat (limited to 'quanta')
-rw-r--r--quanta/data/toolbars/CMakeLists.txt33
-rw-r--r--quanta/data/toolbars/cfml/CMakeLists.txt20
-rw-r--r--quanta/data/toolbars/css/CMakeLists.txt18
-rw-r--r--quanta/data/toolbars/docbook/CMakeLists.txt19
-rw-r--r--quanta/data/toolbars/html/CMakeLists.txt19
-rw-r--r--quanta/data/toolbars/kde-docbook/CMakeLists.txt31
-rw-r--r--quanta/data/toolbars/schema/CMakeLists.txt21
-rw-r--r--quanta/data/toolbars/tagxml/CMakeLists.txt18
-rw-r--r--quanta/data/toolbars/wml-1-2/CMakeLists.txt19
-rw-r--r--quanta/data/toolbars/xml/CMakeLists.txt18
10 files changed, 162 insertions, 54 deletions
diff --git a/quanta/data/toolbars/CMakeLists.txt b/quanta/data/toolbars/CMakeLists.txt
index 32f6cf23..efcb5a07 100644
--- a/quanta/data/toolbars/CMakeLists.txt
+++ b/quanta/data/toolbars/CMakeLists.txt
@@ -3,22 +3,29 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-add_subdirectory( html )
-add_subdirectory( xml )
-add_subdirectory( wml-1-2 )
-add_subdirectory( tagxml )
-add_subdirectory( schema )
-add_subdirectory( cfml )
-add_subdirectory( kde-docbook )
-add_subdirectory( docbook )
-add_subdirectory( css )
-
-install( FILES
- debug.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars )
+
+##### other data ################################
+
+foreach( _toolbar debug )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars
+ )
+
+endforeach( )
+
+
+##### directories ###############################
+
+tde_auto_add_subdirectories( )
diff --git a/quanta/data/toolbars/cfml/CMakeLists.txt b/quanta/data/toolbars/cfml/CMakeLists.txt
index fe0e4a09..1f6081bc 100644
--- a/quanta/data/toolbars/cfml/CMakeLists.txt
+++ b/quanta/data/toolbars/cfml/CMakeLists.txt
@@ -3,14 +3,24 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-install( FILES
- fonts.toolbar.tgz forms.toolbar.tgz
- lists.toolbar.tgz standard.toolbar.tgz
- tables.toolbar.tgz cfml.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/cfml )
+
+##### other data ################################
+
+foreach( _toolbar cfml fonts forms lists standard tables )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/cfml
+ )
+
+endforeach( )
diff --git a/quanta/data/toolbars/css/CMakeLists.txt b/quanta/data/toolbars/css/CMakeLists.txt
index c4d833b2..78f5196b 100644
--- a/quanta/data/toolbars/css/CMakeLists.txt
+++ b/quanta/data/toolbars/css/CMakeLists.txt
@@ -3,12 +3,24 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-install( FILES
- css.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/css )
+
+##### other data ################################
+
+foreach( _toolbar css )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/css
+ )
+
+endforeach( )
diff --git a/quanta/data/toolbars/docbook/CMakeLists.txt b/quanta/data/toolbars/docbook/CMakeLists.txt
index 2933ca17..97eff95c 100644
--- a/quanta/data/toolbars/docbook/CMakeLists.txt
+++ b/quanta/data/toolbars/docbook/CMakeLists.txt
@@ -3,13 +3,24 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-install( FILES
- xmltools.toolbar.tgz docbook_code.toolbar.tgz
- docbook_ui.toolbar.tgz docbook_xml.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/docbook )
+
+##### other data ################################
+
+foreach( _toolbar docbook_code docbook_ui docbook_xml xmltools )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/docbook
+ )
+
+endforeach( )
diff --git a/quanta/data/toolbars/html/CMakeLists.txt b/quanta/data/toolbars/html/CMakeLists.txt
index edfb88dc..810d4e2c 100644
--- a/quanta/data/toolbars/html/CMakeLists.txt
+++ b/quanta/data/toolbars/html/CMakeLists.txt
@@ -3,13 +3,24 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-install( FILES
- forms.toolbar.tgz lists.toolbar.tgz other.toolbar.tgz
- standard.toolbar.tgz tables.toolbar.tgz style.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/html )
+
+##### other data ################################
+
+foreach( _toolbar forms lists other standard style tables )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/html
+ )
+
+endforeach( )
diff --git a/quanta/data/toolbars/kde-docbook/CMakeLists.txt b/quanta/data/toolbars/kde-docbook/CMakeLists.txt
index 81f287d8..58f14638 100644
--- a/quanta/data/toolbars/kde-docbook/CMakeLists.txt
+++ b/quanta/data/toolbars/kde-docbook/CMakeLists.txt
@@ -3,18 +3,31 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-install( FILES
- kde-docbook-admonitions.toolbar.tgz
- kde-docbook-images.toolbar.tgz
- kde-docbook-list.toolbar.tgz
- kde-docbook-standard.toolbar.tgz
- kde-docbook-tables.toolbar.tgz
- kde-docbook-uielements.toolbar.tgz
- kdexmltools.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/kde-docbook )
+
+##### other data ################################
+
+foreach( _toolbar
+ kde-docbook-admonitions
+ kde-docbook-images
+ kde-docbook-list
+ kde-docbook-standard
+ kde-docbook-tables
+ kde-docbook-uielements
+ kdexmltools )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/kde-docbook
+ )
+
+endforeach( )
diff --git a/quanta/data/toolbars/schema/CMakeLists.txt b/quanta/data/toolbars/schema/CMakeLists.txt
index 74df9584..358b374c 100644
--- a/quanta/data/toolbars/schema/CMakeLists.txt
+++ b/quanta/data/toolbars/schema/CMakeLists.txt
@@ -3,15 +3,24 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-install( FILES
- attributes.toolbar.tgz complex.toolbar.tgz
- documentation.toolbar.tgz facets.toolbar.tgz
- misc.toolbar.tgz simple.toolbar.tgz
- main.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/schema )
+
+##### other data ################################
+
+foreach( _toolbar attributes complex documentation facets main misc simple )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/schema
+ )
+
+endforeach( )
diff --git a/quanta/data/toolbars/tagxml/CMakeLists.txt b/quanta/data/toolbars/tagxml/CMakeLists.txt
index 0ced778c..e010fa57 100644
--- a/quanta/data/toolbars/tagxml/CMakeLists.txt
+++ b/quanta/data/toolbars/tagxml/CMakeLists.txt
@@ -3,12 +3,24 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-install( FILES
- tagxml.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/tagxml )
+
+##### other data ################################
+
+foreach( _toolbar tagxml )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/tagxml
+ )
+
+endforeach( )
diff --git a/quanta/data/toolbars/wml-1-2/CMakeLists.txt b/quanta/data/toolbars/wml-1-2/CMakeLists.txt
index b320beb8..26b03a23 100644
--- a/quanta/data/toolbars/wml-1-2/CMakeLists.txt
+++ b/quanta/data/toolbars/wml-1-2/CMakeLists.txt
@@ -3,13 +3,24 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-install( FILES
- deck.toolbar.tgz forms.toolbar.tgz misc.toolbar.tgz
- table.toolbar.tgz tasks.toolbar.tgz text.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/wml-1-2 )
+
+##### other data ################################
+
+foreach( _toolbar deck forms misc table tasks text )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/wml-1-2
+ )
+
+endforeach( )
diff --git a/quanta/data/toolbars/xml/CMakeLists.txt b/quanta/data/toolbars/xml/CMakeLists.txt
index 9eac83df..0bc79e1b 100644
--- a/quanta/data/toolbars/xml/CMakeLists.txt
+++ b/quanta/data/toolbars/xml/CMakeLists.txt
@@ -3,12 +3,24 @@
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2019 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
-install( FILES
- fonts.toolbar.tgz
- DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/xml )
+
+##### other data ################################
+
+foreach( _toolbar fonts )
+
+ tde_create_tarball(
+ TARGET ${_toolbar}.toolbar.tgz
+ FILES ${_toolbar}.actions ${_toolbar}.toolbar
+ DESTINATION ${DATA_INSTALL_DIR}/quanta/toolbars/xml
+ )
+
+endforeach( )