summaryrefslogtreecommitdiff
path: root/shell/Makefile.am
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2014-02-11 19:13:06 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2014-02-11 19:14:13 +0100
commit478def9f72f2564eb82ff088985dd761839db41b (patch)
treefaa07bff1ea48fbcd0cefd04bfa14ed373005006 /shell/Makefile.am
parentc54ba7f7aa44f79f55519e565ab7581fc97739d8 (diff)
downloadgraynard-478def9f72f2564eb82ff088985dd761839db41b.tar.gz
graynard-478def9f72f2564eb82ff088985dd761839db41b.zip
css: add new style css file and put it into gresources
Diffstat (limited to 'shell/Makefile.am')
-rw-r--r--shell/Makefile.am15
1 files changed, 14 insertions, 1 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 4b73361..dfbf2eb 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -23,6 +23,8 @@ weston_gtk_shell_SOURCES = \
shell-app-system.h \
sound-applet.c \
sound-applet.h \
+ weston-gtk-shell-resources.c \
+ weston-gtk-shell-resources.h \
desktop-shell-client-protocol.h \
desktop-shell-protocol.c \
$(external_sources)
@@ -30,7 +32,18 @@ weston_gtk_shell_LDADD = $(GTK_LIBS)
BUILT_SOURCES = \
desktop-shell-client-protocol.h \
- desktop-shell-protocol.c
+ desktop-shell-protocol.c \
+ weston-gtk-shell-resources.c \
+ weston-gtk-shell-resources.h
+
+# gresource for css
+resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/weston-gtk-shell.gresource.xml)
+weston-gtk-shell-resources.c: weston-gtk-shell.gresource.xml $(resource_files)
+ $(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name weston_gtk_shell $<
+weston-gtk-shell-resources.h: weston-gtk-shell.gresource.xml $(resource_files)
+ $(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name weston_gtk_shell $<
+
+EXTRA_DIST = style.css
CLEANFILES = $(BUILT_SOURCES)