[gtk+] build: Stop compressing ui files



commit c82fee4882db08947dbde1d4706eaf4303ec5399
Author: Timm Bäder <mail baedert org>
Date:   Thu Jan 26 13:31:56 2017 +0100

    build: Stop compressing ui files
    
    It's slower at runtime. Instead, strip blanks.

 gtk/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 99e574c..9920ed8 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -1257,7 +1257,7 @@ gtk.gresource.xml: Makefile.am inspector/Makefile.inc
        done; \
        for f in $(srcdir)/ui/*.ui; do \
          n=`basename $$f`; \
-         echo "    <file compressed='true'>ui/$$n</file>" >> $@; \
+         echo "    <file preprocess='xml-stripblanks'>ui/$$n</file>" >> $@; \
        done; \
        for s in 16x16 22x22 24x24 32x32 48x48; do \
          for c in actions status; do \
@@ -1270,7 +1270,7 @@ gtk.gresource.xml: Makefile.am inspector/Makefile.inc
        done; \
        for f in $(srcdir)/inspector/*.ui; do \
          n=`basename $$f`; \
-         echo "    <file compressed='true'>inspector/$$n</file>" >> $@; \
+         echo "    <file preprocess='xml-stripblanks'>inspector/$$n</file>" >> $@; \
        done; \
        echo "    <file>inspector/logo.png</file>" >> $@; \
        echo "  </gresource>" >> $@; \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]