summaryrefslogtreecommitdiff
path: root/endless/Makefile.am
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2013-06-27 18:02:04 -0700
committerPhilip Chimento <philip@endlessm.com>2013-06-27 18:42:21 -0700
commitbcd585907baac071b78090894992930fbf9410af (patch)
tree372face9c8526428601ae1fc40d1096accad653a /endless/Makefile.am
parentfe90102bc9ebd808a7abe7ce060d2182399e3899 (diff)
Add CSS files in a GResource
resource:///com/endlessm/sdk/ is now the official GResource path for SDK resources. Right now the GResource contains reset.css (from GTK) and endless-widgets.css (from eos-theme). [endlessm/eos-sdk#125]
Diffstat (limited to 'endless/Makefile.am')
-rw-r--r--endless/Makefile.am23
1 files changed, 23 insertions, 0 deletions
diff --git a/endless/Makefile.am b/endless/Makefile.am
index 77f8c95..9b0eb4f 100644
--- a/endless/Makefile.am
+++ b/endless/Makefile.am
@@ -1,5 +1,27 @@
# Copyright 2013 Endless Mobile, Inc.
+# Generate dependencies for make rule from XML resource file description
+resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/data \
+ --generate-dependencies $(srcdir)/data/eos-sdk.gresource.xml)
+
+# Generated sources for GResource file
+endless/eosresource-private.h: data/eos-sdk.gresource.xml $(resource_files)
+ $(AM_V_GEN) $(MKDIR_P) $(builddir)/data && \
+ $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data \
+ --generate-header --internal $<
+endless/eosresource.c: data/eos-sdk.gresource.xml $(resource_files)
+ $(AM_V_GEN) $(MKDIR_P) $(builddir)/data && \
+ $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data \
+ --generate-source --internal $<
+
+BUILT_SOURCES = \
+ endless/eosresource-private.h \
+ endless/eosresource.c \
+ $(NULL)
+EXTRA_DIST += \
+ $(resource_files) \
+ data/eos-sdk.gresource.xml
+
endless_public_installed_headers = endless/endless.h
endless_private_installed_headers = \
@@ -20,6 +42,7 @@ endless_library_sources = \
endless/eosinit.c endless/eosinit-private.h \
endless/eospagemanager.c endless/eospagemanager-private.h \
endless/eosmainarea.c endless/eosmainarea-private.h \
+ endless/eosresource.c endless/eosresource-private.h \
endless/eossplashpagemanager.c \
endless/eostopbar.c endless/eostopbar-private.h \
endless/eosactionbutton.c \