blob: ff313f6e9a55e560643e4f94bd4680ab89facc32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
if USE_GTK3
VER=3
else
VER=
endif
CLEANFILES =
EXTRA_DIST =
check_PROGRAMS = \
simple-client \
simple-client-vala
#########################################
## simple-client
#########################################
simple_client_SOURCES = \
simple-client.c
#-Werror removed for Vala
simple_client_CFLAGS = \
$(LIBRARY_CFLAGS) \
-DLOCAL_ICON="\"$(abs_srcdir)/simple-client-test-icon.png\"" \
-Wall \
-I$(top_srcdir)/src
simple_client_LDADD = \
$(LIBRARY_LIBS) \
$(top_builddir)/src/libappindicator$(VER).la
EXTRA_DIST += \
simple-client-test-icon.png
#########################################
## simple-client-vala
#########################################
if HAVE_VALAC
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*<\s*libappindicator/app-indicator.h\s*>||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
endif
EXTRA_DIST += \
simple-client-vala.vala
|