summaryrefslogtreecommitdiff
path: root/gck
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-10-20 14:03:38 +0200
committerStef Walter <stefw@gnome.org>2013-04-21 14:58:44 +0200
commitc258c860e34b905e4c4a8095ddd3a9a9f583c9f8 (patch)
tree34f4774789b5e2117ffc810e39b5487f36f64819 /gck
parent19726e6be3408f3505fb706a0541c2a43ab6c04e (diff)
Add vala vapi files for Gck and Gcr libraries
https://bugzilla.gnome.org/show_bug.cgi?id=689685
Diffstat (limited to 'gck')
-rw-r--r--gck/Gck-1.metadata2
-rw-r--r--gck/Makefile.am59
2 files changed, 47 insertions, 14 deletions
diff --git a/gck/Gck-1.metadata b/gck/Gck-1.metadata
new file mode 100644
index 0000000..b175213
--- /dev/null
+++ b/gck/Gck-1.metadata
@@ -0,0 +1,2 @@
+// Metadata file for Vala API generation.
+// See https://live.gnome.org/Vala/UpstreamGuide for more information
diff --git a/gck/Makefile.am b/gck/Makefile.am
index 771a443..9b30933 100644
--- a/gck/Makefile.am
+++ b/gck/Makefile.am
@@ -100,6 +100,21 @@ gck-enum-types.h: $(ENUM_TEMPLATE_H) $(HEADER_FILES)
gck-enum-types.c: $(ENUM_TEMPLATE_C) $(HEADER_FILES)
$(GLIB_MKENUMS) --template $^ > $@
+EXTRA_DIST = \
+ gck.pc.in \
+ gck-marshal.list \
+ gck.symbols \
+ pkcs11-trust-assertions.h \
+ pkcs11i.h
+
+CLEANFILES = \
+ gck-$(GCK_MAJOR).pc \
+ $(gir_DATA) \
+ $(typelibs_DATA) \
+ $(BUILT_SOURCES) \
+ gck-actual.abi \
+ gck-expected.abi
+
# ------------------------------------------------------------------
# INTROSPECTION
@@ -127,6 +142,36 @@ gir_DATA = $(INTROSPECTION_GIRS)
typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+if ENABLE_VAPIGEN
+include $(VAPIGEN_MAKEFILE)
+
+gck-@GCK_MAJOR@.vapi: Gck-@GCK_MAJOR@.gir Gck-@GCK_MAJOR@.metadata gck-@GCK_MAJOR@.deps
+
+VAPIGEN_VAPIS = gck-@GCK_MAJOR@.vapi
+
+gck_@GCK_MAJOR@_vapi_DEPS = glib-2.0 gio-2.0
+gck_@GCK_MAJOR@_vapi_METADATADIRS = $(srcdir)
+gck_@GCK_MAJOR@_vapi_FILES = Gck-@GCK_MAJOR@.gir
+
+VAPI_DEPS = $(VAPIGEN_VAPIS:.vapi=.deps)
+
+gck-$(GCK_MAJOR).deps: Makefile.am
+ $(AM_V_GEN) echo $(gck_@GCK_MAJOR@_vapi_DEPS) | tr ' ' '\n' > $@
+
+vapidir = $(datadir)/vala/vapi
+vapi_DATA = \
+ $(VAPIGEN_VAPIS) \
+ $(VAPI_DEPS)
+
+EXTRA_DIST += \
+ Gck-@GCK_MAJOR@.metadata
+
+CLEANFILES += \
+ $(VAPIGEN_VAPIS) \
+ $(VAPI_DEPS)
+
+endif # ENABLE_VAPIGEN
+
endif
# ----------------------------------------------------------------
@@ -152,17 +197,3 @@ check-local: check-symbols
check-memory:
make -C tests check-memory
-EXTRA_DIST = \
- gck.pc.in \
- gck-marshal.list \
- gck.symbols \
- pkcs11-trust-assertions.h \
- pkcs11i.h
-
-CLEANFILES = \
- gck-$(GCK_MAJOR).pc \
- $(gir_DATA) \
- $(typelibs_DATA) \
- $(BUILT_SOURCES) \
- gck-actual.abi \
- gck-expected.abi