aboutsummaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: 125289bb25b7d62a3a6d4f1d35011bd97179ebc7 (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
AM_CFLAGS = -DGNOME_DESKTOP_USE_UNSTABLE_API
AM_LDFLAGS = -lm
AM_VALAFLAGS = --metadatadir $(top_srcdir)/deps \
               --vapidir $(top_srcdir)/deps

noinst_PROGRAMS = indicator-keyboard-icon-generator

indicator_keyboard_icon_generator_SOURCES = main.vala                     \
                                            $(top_srcdir)/lib/common.vala
indicator_keyboard_icon_generator_VALAFLAGS = $(AM_VALAFLAGS)         \
                                              --pkg gee-1.0           \
                                              --pkg gtk+-3.0          \
                                              --pkg GDesktopEnums-3.0 \
                                              --pkg gnome-desktop-3.0 \
                                              --pkg Xkl-1.0
indicator_keyboard_icon_generator_CFLAGS = $(AM_CFLAGS)            \
                                           $(GEE_CFLAGS)           \
                                           $(GTK_CFLAGS)           \
                                           $(GNOME_DESKTOP_CFLAGS) \
                                           $(LIBXKLAVIER_CFLAGS)
indicator_keyboard_icon_generator_LDFLAGS = $(AM_LDFLAGS)         \
                                            $(GEE_LIBS)           \
                                            $(GTK_LIBS)           \
                                            $(GNOME_DESKTOP_LIBS) \
                                            $(LIBXKLAVIER_LIBS)

servicedir = $(DBUS_SERVICE_DIR)
dist_service_DATA = indicator-keyboard.service

indicator-keyboard.service:
	$(AM_V_GEN) (echo '[D-BUS Service]';                                           \
	             echo 'Name=com.canonical.indicator.keyboard';                     \
	             echo 'Exec=${libexecdir}/indicator-keyboard-service') > $@.tmp && \
	            mv $@.tmp $@

indicatordir = $(INDICATOR_DIR)
dist_indicator_DATA = indicator-keyboard.indicator

indicator-keyboard.indicator:
	$(AM_V_GEN) (echo '[Indicator Service]';                                      \
	             echo 'Name=indicator-keyboard';                                  \
	             echo 'BusName=com.canonical.indicator.keyboard';                 \
	             echo 'ObjectPath=/com/canonical/indicator/keyboard') > $@.tmp && \
	            mv $@.tmp $@

gsettings_SCHEMAS = com.canonical.indicator.keyboard.gschema.xml

@GSETTINGS_RULES@

EXTRA_DIST = $(dist_service_DATA)   \
	     $(dist_indicator_DATA) \
	     $(gsettings_SCHEMAS)