summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-02-22 12:02:30 +0100
committerZenWalker <[email protected]>2019-03-15 20:37:21 +0100
commit449753407d3ecf43e3401363557437984c138941 (patch)
tree9fc9697392d10fce6c36a676e94c7ff16b879ec2 /src/Makefile.am
parent773ef179210ecc4572ba9df1887ba79ac1eb1876 (diff)
downloadmate-terminal-449753407d3ecf43e3401363557437984c138941.tar.bz2
mate-terminal-449753407d3ecf43e3401363557437984c138941.tar.xz
Use gresources for about_DATA, uimanager_DATA & builder_DATA
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am37
1 files changed, 16 insertions, 21 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 8994e3a..938120c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,6 +9,8 @@ bin_PROGRAMS = mate-terminal
BUILT_SOURCES = \
terminal-marshal.c \
terminal-marshal.h \
+ terminal-resources.c \
+ terminal-resources.h \
terminal-type-builtins.c \
terminal-type-builtins.h \
$(NULL)
@@ -64,6 +66,7 @@ nodist_mate_terminal_SOURCES= $(BUILT_SOURCES)
mate_terminal_CPPFLAGS = \
-DTERMINAL_COMPILATION \
+ -DTERMINAL_RESOURCES_PATH_PREFIX="\"/org/mate/terminal\"" \
-DTERM_DATADIR="\"$(datadir)\"" \
-DTERM_LOCALEDIR="\"$(datadir)/locale\"" \
-DTERM_PKGDATADIR="\"$(pkgdatadir)\"" \
@@ -136,32 +139,14 @@ terminal-marshal.c: $(srcdir)/terminal-marshal.list
&& mv terminal-marshal.c.tmp terminal-marshal.c ) \
|| ( rm -f terminal-marshal.c.tmp && exit 1 )
+terminal-resources.h terminal-resources.c: terminal.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir) $(srcdir)/terminal.gresource.xml)
+ $(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir) --generate --c-name terminal $<
+
gsettingsschema_in_files = org.mate.terminal.gschema.xml.in
gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
.PRECIOUS: $(gsettings_SCHEMAS)
@INTLTOOL_XML_NOMERGE_RULE@
-aboutdir = $(pkgdatadir)
-about_DATA = \
- terminal.about \
- $(NULL)
-
-uimanagerdir = $(pkgdatadir)
-uimanager_DATA = \
- terminal.xml \
- $(NULL)
-
-builderdir = $(pkgdatadir)
-builder_DATA = \
- encodings-dialog.ui \
- find-dialog.ui \
- keybinding-editor.ui \
- profile-manager.ui \
- profile-new-dialog.ui \
- profile-preferences.ui \
- skey-challenge.ui \
- $(NULL)
-
CLEANFILES = \
stamp-terminal-type-builtins.h \
mate-terminal.schemas \
@@ -170,6 +155,16 @@ CLEANFILES = \
$(BUILT_SOURCES)
EXTRA_DIST = \
+ encodings-dialog.ui \
+ find-dialog.ui \
+ keybinding-editor.ui \
+ profile-manager.ui \
+ profile-new-dialog.ui \
+ profile-preferences.ui \
+ skey-challenge.ui \
+ terminal.about \
+ terminal.xml \
+ terminal.gresource.xml \
terminal-marshal.list \
terminal-type-builtins.c.template \
terminal-type-builtins.h.template \