blob: 6d5c62757bb8933e7224fa2de4c0062cf06d9991 (
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
|
BUILT_SOURCES =
CLEANFILES =
EXTRA_DIST = \
indicator.pc.in
libindicatorincludedir=$(includedir)/libindicator-0.3/libindicator
indicator_headers = \
indicator.h \
indicator-object.h \
indicator-service.h \
indicator-service-manager.h
libindicatorinclude_HEADERS = \
$(indicator_headers)
lib_LTLIBRARIES = \
libindicator.la
libindicator_la_SOURCES = \
$(indicator_headers) \
dbus-shared.h \
indicator-object.c \
indicator-service.c \
indicator-service-manager.c
libindicator_la_CFLAGS = \
$(LIBINDICATOR_CFLAGS) \
-DG_LOG_DOMAIN=\"libindicator\" \
-Wall -Werror
libindicator_la_LIBADD = \
$(LIBINDICATOR_LIBS)
pkgconfig_DATA = indicator.pc
pkgconfigdir = $(libdir)/pkgconfig
##################################
# DBus Specs
##################################
DBUS_SPECS = \
indicator-service.xml
%-client.h: %.xml
dbus-binding-tool \
--prefix=_$(subst -,_,$(basename $(notdir $<)))_client \
--mode=glib-client \
--output=$@ \
$<
%-server.h: %.xml
dbus-binding-tool \
--prefix=_$(subst -,_,$(basename $(notdir $<)))_server \
--mode=glib-server \
--output=$@ \
$<
BUILT_SOURCES += \
$(DBUS_SPECS:.xml=-client.h) \
$(DBUS_SPECS:.xml=-server.h)
CLEANFILES += $(BUILT_SOURCES)
EXTRA_DIST += $(DBUS_SPECS)
|