aboutsummaryrefslogtreecommitdiff
path: root/libindicate/Makefile.am
blob: 5528d1d2409ba36ca29ccdfb427a2410a5bdaefb (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124

INCLUDES= \
	-DG_LOG_DOMAIN=\"libindicate\"

EXTRA_DIST = \
	indicate-interface.xml \
	indicate-listener.xml \
	listener-marshal.list \
	indicate.pc.in

BUILT_SOURCES = \
	dbus-indicate-server.h \
	dbus-indicate-client.h \
	dbus-listener-server.h \
	dbus-listener-client.h \
	listener-marshal.c \
	listener-marshal.h

lib_LTLIBRARIES = \
	libindicate.la

libindicateincludedir=$(includedir)/libindicate-0.1/libindicate

indicate_headers = \
	indicator.h \
	indicator-message.h \
	listener.h \
	server.h

libindicateinclude_HEADERS = \
	$(indicate_headers)

libindicate_la_SOURCES = \
	$(indicate_headers) \
	dbus-indicate-server.h \
	dbus-indicate-client.h \
	server.c \
	listener.c \
	listener-marshal.c \
	listener-marshal.h \
	indicator.c \
	indicator-message.c

libindicate_la_LDFLAGS = \
	-version-info $(LIBINDICATE_CURRENT):$(LIBINDICATE_REVISION):$(LIBINDICATE_AGE) \
	-no-undefined \
	-export-symbols-regex "^[^_].*"

libindicate_la_CFLAGS = \
	$(LIBINDICATE_CFLAGS)

libindicate_la_LIBADD = \
	$(LIBINDICATE_LIBS)

dbus-indicate-server.h: indicate-interface.xml
	dbus-binding-tool \
		--prefix=indicate_server \
		--mode=glib-server \
		--output=dbus-indicate-server.h \
		$(srcdir)/indicate-interface.xml

dbus-indicate-client.h: indicate-interface.xml
	dbus-binding-tool \
		--prefix=indicate_client \
		--mode=glib-client \
		--output=dbus-indicate-client.h \
		$(srcdir)/indicate-interface.xml

dbus-listener-server.h: indicate-listener.xml
	dbus-binding-tool \
		--prefix=indicate_listener \
		--mode=glib-server \
		--output=dbus-listener-server.h \
		$(srcdir)/indicate-listener.xml

dbus-listener-client.h: indicate-listener.xml
	dbus-binding-tool \
		--prefix=indicate_listener \
		--mode=glib-client \
		--output=dbus-listener-client.h \
		$(srcdir)/indicate-listener.xml

listener-marshal.h: $(srcdir)/listener-marshal.list
	glib-genmarshal --header \
		--prefix=indicate_listener_marshal $(srcdir)/listener-marshal.list \
		> listener-marshal.h

listener-marshal.c: $(srcdir)/listener-marshal.list
	glib-genmarshal --body \
		--prefix=indicate_listener_marshal $(srcdir)/listener-marshal.list \
		> listener-marshal.c

pkgconfig_DATA = indicate.pc
pkgconfigdir = $(libdir)/pkgconfig

gobjectintrospection_gir_DATA = \
	Indicate-0.1.gir
gobjectintrospection_girdir = $(datadir)/gir

gobjectintrospection_type_DATA = \
	Indicate-0.1.typelib
gobjectintrospection_typedir = $(libdir)/girepository

irscanner_headers = $(patsubst %,$(srcdir)/%,$(indicate_headers))
Indicate-0.1.gir: $(irscanner_headers)
	$(G_IR_SCANNER) \
		-v --namespace Indicate \
		--nsversion=0.1 \
		--add-include-path=$(srcdir) \
		--include=GObject-2.0 \
		--include=GLib-2.0 \
		--include=GdkPixbuf-2.0 \
		--library=indicate --pkg indicate \
		--output Indicate-0.1.gir $(irscanner_headers)

Indicate-0.1.typelib: Indicate-0.1.gir
	$(G_IR_COMPILER) \
		--includedir=$(srcdir) Indicate-0.1.gir \
		-o Indicate-0.1.typelib

DISTCLEANFILES = \
	Indicate-0.1.gir \
	Indicate-0.1.typelib