aboutsummaryrefslogtreecommitdiff
path: root/example/Makefile.am
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-02-04 04:45:35 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-02-04 04:45:35 +0100
commit89b31ab0083ef53a0372d5a3ab3b76a5f9d00d3b (patch)
treefd4199a05f0075e4b00e09bd3cf0286d2cc9942a /example/Makefile.am
parent32a1bf9cbb537a759c5fd8484c9eb37d5fa17d6b (diff)
downloadlibayatana-appindicator-89b31ab0083ef53a0372d5a3ab3b76a5f9d00d3b.tar.gz
libayatana-appindicator-89b31ab0083ef53a0372d5a3ab3b76a5f9d00d3b.tar.bz2
libayatana-appindicator-89b31ab0083ef53a0372d5a3ab3b76a5f9d00d3b.zip
Examples, added simple-client-vala
A rewrite of the simple-client.c version in Vala as example. Added a workaround for compiling it.
Diffstat (limited to 'example/Makefile.am')
-rw-r--r--example/Makefile.am26
1 files changed, 25 insertions, 1 deletions
diff --git a/example/Makefile.am b/example/Makefile.am
index 0900baf..ae9ee94 100644
--- a/example/Makefile.am
+++ b/example/Makefile.am
@@ -4,9 +4,11 @@ else
VER=
endif
+CLEANFILES =
check_PROGRAMS = \
- simple-client
+ simple-client \
+ simple-client-vala
#########################################
## simple-client
@@ -27,3 +29,25 @@ simple_client_LDADD = \
EXTRA_DIST = \
simple-client-test-icon.png
+
+#########################################
+## simple-client-vala
+#########################################
+
+VALAFLAGS = \
+ --pkg appindicator$(VER)-0.1 \
+ --vapidir=$(top_builddir)/bindings/vala
+
+BUILT_SOURCES = simple-client-vala.c
+simple-client-vala.c: $(srcdir)/simple-client-vala.vala
+ $(VALAC) $(VALAFLAGS) -C $< -o $@
+ $(SED) -i "s|#include\s<libappindicator/app-indicator.h>||g" $@
+
+simple_client_vala_SOURCES = simple-client-vala.c
+simple_client_vala_CFLAGS = \
+ $(simple_client_CFLAGS) \
+ -include $(top_srcdir)/src/app-indicator.h
+
+simple_client_vala_LDADD = $(simple_client_LDADD)
+
+CLEANFILES += *.stamp *-vala.c