diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-02-03 16:22:06 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-02-03 16:22:06 +0100 |
commit | 7f49d7c2602ccb2ef01c64067e2abcc6b5715200 (patch) | |
tree | 48fe2d080655bb443e07795c26e7791eed034a72 /bindings/vala/Makefile.am | |
parent | 19c543fd42571ef3e011db21a6d93e93d7da4483 (diff) | |
download | libayatana-appindicator-7f49d7c2602ccb2ef01c64067e2abcc6b5715200.tar.gz libayatana-appindicator-7f49d7c2602ccb2ef01c64067e2abcc6b5715200.tar.bz2 libayatana-appindicator-7f49d7c2602ccb2ef01c64067e2abcc6b5715200.zip |
Adding vala bindings and example
Adding proper support for vala bindings, fixing the include path
Now they are built in the bindings subfolder and they
include a *.deps file.
and I've also added a small example.
Diffstat (limited to 'bindings/vala/Makefile.am')
-rw-r--r-- | bindings/vala/Makefile.am | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/bindings/vala/Makefile.am b/bindings/vala/Makefile.am new file mode 100644 index 0000000..c4627f5 --- /dev/null +++ b/bindings/vala/Makefile.am @@ -0,0 +1,32 @@ +SUBDIRS = . examples + + +######################### +# VAPI Files +######################### + +if HAVE_INTROSPECTION + +if USE_GTK3 +GTKVAPI = gtk+-3.0 +else +GTKVAPI = gtk+-2.0 +endif + +vapidir = $(datadir)/vala/vapi +vapiprefix = appindicator$(VER)-0.1 +vapi_DATA = $(vapiprefix).vapi $(vapiprefix).deps +DEPS = $(GTKVAPI) + +$(vapiprefix).deps: + echo $(DEPS) > $@ + +$(vapiprefix).vapi: $(top_builddir)/src/AppIndicator$(VER)-0.1.gir $(vapiprefix).deps + $(VALA_API_GEN) --library=$(vapiprefix) \ + --pkg $(GTKVAPI) \ + $< + + +CLEANFILES = $(vapi_DATA) + +endif |