Debian Codegraph @

client/x11/Makefile.am

raw
1 # vim:set noet ts=4:
2 #
3 # ibus - The Input Bus
4 #
5 # Copyright (c) 2007-2015 Peng Huang <[email protected]>
6 # Copyright (c) 2007-2015 Red Hat, Inc.
7 #
8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either
11 # version 2.1 of the License, or (at your option) any later version.
12 #
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with this library; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
21 # USA
22
23
24 libIMdkit = $(top_builddir)/util/IMdkit/libIMdkit.la
25 libibus = $(top_builddir)/src/libibus-@[email protected]
26
27 libexec_PROGRAMS = ibus-x11
28
29 if ENABLE_GTK3
30 GTK_CFLAGS = @GTK3_CFLAGS@
31 GTK_LIBS = @GTK3_LIBS@
32 else
33 GTK_CFLAGS = @GTK2_CFLAGS@
34 GTK_LIBS = @GTK2_LIBS@
35 endif
36
37 ibus_x11_SOURCES = \
38 main.c \
39 gdk-private.c \
40 $(NULL)
41
42 ibus_x11_DEPENDENCIES = \
43 $(libIMdkit) \
44 $(libibus) \
45 $(NULL)
46
47 ibus_x11_LDADD = \
48 $(libIMdkit) \
49 $(libibus) \
50 @X11_LIBS@ \
51 $(GTK_LIBS) \
52 $(XFIXES_LIBS) \
53 $(NULL)
54
55 ibus_x11_CFLAGS = \
56 @X11_CFLAGS@ \
57 $(GTK_CFLAGS) \
58 $(XFIXES_CFLAGS) \
59 @DBUS_CFLAGS@ \
60 -I$(top_srcdir)/util/IMdkit \
61 -I$(top_srcdir)/src \
62 -I$(top_builddir)/src \
63 $(NULL)
64
65 noinst_HEADERS = \
66 gdk-private.h \
67 locales.h \
68 $(NULL)
69
70 xwaylandsessiond_in_files = 10-ibus-x11.in
71 xwaylandsessiond_DATA = $(xwaylandsessiond_in_files:.in=)
72 xwaylandsessionddir=$(sysconfdir)/xdg/Xwayland-session.d
73
74 10-ibus-x11: 10-ibus-x11.in
75 $(AM_V_GEN) sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > [email protected] && mv [email protected] $@
76
77 install-data-hook:
78 chmod 755 $(DESTDIR)$(xwaylandsessionddir)/10-ibus-x11
79
80 $(libIMdkit):
81 (cd $(top_builddir)/util/IMdkit; make)
82
83 $(libibus):
84 (cd $(top_builddir)/src; make)
85
86 locales.h:
87 ( \
88 locale -a | \
89 gawk -F _ '{ if (length($$1) <= 3) print $$1 }' | \
90 uniq | sort | \
91 xargs python -c 'import sys;print "#define LOCALES_STRING \"%s\"" % ",".join(sys.argv[1:])' \
92 ) > $@
93
94 CLEANFILES = \
95 $(xwaylandsessiond_DATA) \
96 $(NULL)
97
98 EXTRA_DIST = \
99 10-ibus-x11.in \
100 $(NULL)
101
102 -include $(top_srcdir)/git.mk