Debian Codegraph @

engine/Makefile.am

raw
1 # vim:set noet ts=4:
2 #
3 # ibus - The Input Bus
4 #
5 # Copyright (c) 2010-2016, Google Inc. All rights reserved.
6 # Copyright (c) 2007-2016 Peng Huang <[email protected]>
7 # Copyright (c) 2013-2025 Takao Fujiwara <[email protected]>
8 #
9 # This library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public
11 # License as published by the Free Software Foundation; either
12 # version 2.1 of the License, or (at your option) any later version.
13 #
14 # This library is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
18 #
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with this library; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
22 # USA
23
24 libibus = $(top_builddir)/src/libibus-@[email protected]
25
26 AM_CPPFLAGS = \
27 -I$(top_srcdir)/src \
28 -I$(top_builddir)/src \
29 $(NULL)
30
31 AM_CFLAGS = \
32 @GLIB2_CFLAGS@ \
33 @GIO2_CFLAGS@ \
34 @GTHREAD2_CFLAGS@ \
35 -DG_LOG_DOMAIN=\"IBUS\" \
36 -DPKGDATADIR=\"$(pkgdatadir)\" \
37 -DLIBEXECDIR=\"$(libexecdir)\" \
38 -DBINDIR=\"@bindir@\" \
39 -DIBUS_DISABLE_DEPRECATED \
40 -Wno-unused-variable \
41 -Wno-unused-but-set-variable \
42 -Wno-unused-function \
43 $(NULL)
44
45 AM_LDADD = \
46 @GOBJECT2_LIBS@ \
47 @GLIB2_LIBS@ \
48 @GIO2_LIBS@ \
49 @GTHREAD2_LIBS@ \
50 $(libibus) \
51 $(NULL)
52
53 AM_VALAFLAGS = \
54 --vapidir=$(top_builddir)/bindings/vala \
55 --pkg=ibus-1.0 \
56 --pkg-config="\"$(PKG_CONFIG) --with-path=$(PKG_CONFIG_PATH)\"" \
57 --target-glib="$(VALA_TARGET_GLIB_VERSION)" \
58 $(NULL)
59
60 TESTS =
61
62 if ENABLE_PYGNOME_DESKTOP
63 TESTS += test-gnome.py
64 endif
65
66 libexec_PROGRAMS = \
67 ibus-engine-simple \
68 $(NULL)
69
70 ibus_engine_simple_SOURCES = \
71 main.vala \
72 $(NULL)
73 ibus_engine_simple_CFLAGS = \
74 $(AM_CFLAGS) \
75 $(NULL)
76 ibus_engine_simple_LDADD = \
77 $(AM_LDADD) \
78 $(NULL)
79 ibus_engine_simple_DEPENDENCIES = \
80 $(libibus) \
81 $(NULL)
82
83 component_DATA = \
84 simple.xml \
85 $(NULL)
86
87 componentdir = $(pkgdatadir)/component
88
89 MAINTAINERCLEANFILES = \
90 simple.xml.in \
91 $(NULL)
92
93 CLEANFILES = \
94 simple.xml \
95 $(NULL)
96
97 EXTRA_DIST = \
98 denylist.txt \
99 gensimple.py \
100 iso639converter.py \
101 simple.xml.in \
102 test-gnome.py \
103 $(NULL)
104
105 simple.xml: simple.xml.in
106 $(AM_V_GEN) sed \
107 -e 's|@libexecdir[@]|$(libexecdir)|g' $< > [email protected] && \
108 mv [email protected] $@
109
110 simple.xml.in:
111 $(PYTHON) $(srcdir)/gensimple.py \
112 --input=$(XKBCONFIG_BASE)/rules/evdev.xml \
113 --output=$@ \
114 --version=$(VERSION).`date '+%Y%m%d'` \
115 --exec-path=@libexecdir\@/ibus-engine-simple \
116 --iso-path=$(ISOCODES_PREFIX)/share/xml/iso-codes/iso_639.xml \
117 --first-language \
118 $(NULL)
119
120 $(libibus):
121 $(MAKE) -C $(top_builddir)/src
122
123 -include $(top_srcdir)/git.mk