summaryrefslogtreecommitdiff
path: root/libcaribou/Makefile.am
blob: f6d9ce055e6f546d87bc83b687eb3417ae7d6733 (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
lib_LTLIBRARIES = libcaribou.la

INCLUDES = \
	-DG_LOG_DOMAIN=\"caribou\" \
	-I$(top_srcdir) \
	$(LIBCARIBOU_CFLAGS)

libcaribou_la_VALAFLAGS = \
	-H caribou.h --vapi caribou-1.0.vapi \
	-h caribou-internals.h \
	--vapidir=. \
	--pkg x11 --pkg xtst --pkg gdk-3.0 --pkg gio-2.0 --pkg gee-0.8 \
	--pkg libxklavier --pkg external-libs --pkg gdk-x11-3.0 --pkg libxml-2.0 \
	--internal-vapi caribou-internals-1.0.vapi \
	--library caribou-1.0 --gir _Caribou-1.0.gir \
	$(VALAFLAGS)

libcaribou_la_CPPFLAGS = \
	$(INCLUDES)

libcaribouincludedir = $(includedir)/libcaribou

caribou_headers = \
	caribou.h

libcaribouinclude_HEADERS = \
	$(caribou_headers)

libcaribou_la_LIBADD = \
	$(LIBCARIBOU_LIBS)

libcaribou_la_SOURCES = \
	xadapter.vala \
	keyboard-model.vala \
	keyboard-service.vala \
	group-model.vala \
	level-model.vala \
	row-model.vala \
	key-model.vala \
	column-model.vala \
	scanner.vala \
	iscannable-item.vala \
	iscannable-group.vala \
	scannable-group.vala \
	ikeyboard-object.vala \
	xml-deserializer.vala

EXTRA_DIST = \
	external-libs.vapi \
	libxklavier.vapi

#
# Introspection support
#

girdir = $(datadir)/gir-1.0
gir_DATA = Caribou-1.0.gir

typelibdir = $(libdir)/girepository-1.0
typelib_DATA = Caribou-1.0.typelib

Caribou-1.0.gir: _Caribou-1.0.gir
	$(top_srcdir)/tools/fix_gir.py $< > $@

Caribou-1.0.typelib: Caribou-1.0.gir
	@INTROSPECTION_COMPILER@ --shared-library=libcaribou.so.0 -o $@ $^

Caribou-1.0.gir caribou-internals-1.0.vapi caribou-1.0.vapi: libcaribou.la

CLEANFILES = \
	caribou-1.0.vapi \
	caribou-internals-1.0.vapi \
	Caribou-1.0.typelib \
	Caribou-1.0.gir \
	_Caribou-1.0.gir \
	*.[ch]