summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2013-08-02 14:55:29 -0700
committerPhilip Chimento <philip@endlessm.com>2013-08-02 17:42:45 -0700
commit3515a9d94829f42133ab8ef2779574e8a605d3cc (patch)
tree1d9eaeb7079e67f68b0418b1b643a6cd2d3aa5c1 /Makefile.am
parentbdc0fb8dadb8982ee74c50d3178fb1ce30db1b66 (diff)
Integrate Wikipedia into SDK build system
Now you should be able to import the app generator using const EndlessWikipedia = imports.wikipedia.EndlessWikipedia; [endlessm/eos-sdk#206] [endlessm/eos-sdk#206]
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index fc08ee0..e999b91 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -57,6 +57,9 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = @EOS_SDK_API_NAME@.pc
DISTCLEANFILES += @EOS_SDK_API_NAME@.pc
+# Open Endless Wikipedia SDK library
+include $(top_srcdir)/wikipedia/Makefile.am.inc
+
# # # INTROSPECTION FILES # # #
-include $(INTROSPECTION_MAKEFILE)
@@ -118,6 +121,21 @@ CLEANFILES += \
docs/reference/endless-js/html/*.js
endif
+# # # SECONDARY GRESOURCES # # #
+
+wikipedia_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/data --generate-dependencies $(srcdir)/data/eos-wikipedia-domain.gresource.xml)
+data/eos-wikipedia-domain.gresource: data/eos-wikipedia-domain.gresource.xml $(wikipedia_resource_files)
+ $(AM_V_GEN) $(MKDIR_P) $(builddir)/data && \
+ $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data $<
+
+wikipediadatadir = $(datadir)/eos-wikipedia-domain
+wikipediadata_DATA = data/eos-wikipedia-domain.gresource
+EXTRA_DIST += \
+ $(wikipedia_resource_files) \
+ data/eos-wikipedia-domain.gresource.xml \
+ $(NULL)
+CLEANFILES += data/eos-wikipedia-domain.gresource
+
# # # GJS OVERRIDES # # #
gjsoverridedir = ${datadir}/gjs-1.0/overrides