Cleanup the vala code of gtk3 panel and tool by:
[platform/upstream/ibus.git] / tools / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus - The Input Bus
4 #
5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
6 # Copyright (c) 2007-2010 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 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
16 # GNU 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 program; if not, write to the
20 # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21 # Boston, MA  02111-1307  USA
22
23 NULL =
24
25 libibus = $(top_builddir)/src/libibus-@IBUS_API_VERSION@.la
26
27 INCLUDES = \
28         -I$(top_srcdir)/src \
29         -I$(top_builddir)/src \
30         $(NULL)
31
32 # force include config.h before gi18n.h.
33 AM_CPPFLAGS = -include $(CONFIG_HEADER)
34
35 AM_CFLAGS = \
36         @GLIB2_CFLAGS@ \
37         @GIO2_CFLAGS@ \
38         @GTHREAD2_CFLAGS@ \
39         $(INCLUDES) \
40         -DG_LOG_DOMAIN=\"IBUS\" \
41         -DIBUS_DISABLE_DEPRECATED \
42         -Wno-unused-variable \
43         -Wno-unused-but-set-variable \
44         -Wno-unused-function \
45         $(NULL)
46
47 AM_LDADD = \
48         @GOBJECT2_LIBS@ \
49         @GLIB2_LIBS@ \
50         @GIO2_LIBS@ \
51         @GTHREAD2_LIBS@ \
52         $(libibus) \
53         $(NULL)
54
55 AM_VALAFLAGS = \
56         --vapidir=$(top_builddir)/bindings/vala \
57         --vapidir=$(top_srcdir)/bindings/vala \
58         --pkg=ibus-1.0 \
59         --pkg=posix \
60         --pkg=config \
61         $(NULL)
62
63 bin_PROGRAMS = ibus
64
65 ibus_SOURCES = \
66         main.vala \
67         $(NULL)
68
69 ibus_LDADD = \
70         $(AM_LDADD) \
71         $(NULL)
72
73 bash_completion_SCRIPTS= \
74         ibus.bash \
75         $(NULL)
76 bash_completiondir=@sysconfdir@/bash_completion.d
77
78 EXTRA_DIST = \
79         ibus.bash \
80         $(NULL)
81
82 -include $(top_srcdir)/git.mk