43454bc5d0fa2ea1647536c609dd697039c196ab
[platform/upstream/ibus.git] / ui / gtk3 / 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 component_DATA = \
28         gtkpanel.xml \
29         $(NULL)
30 componentdir = $(pkgdatadir)/component
31
32 gtkpanel.xml: gtkpanel.xml.in
33         $(AM_V_GEN) sed \
34                 -e 's|@VERSION[@]|$(VERSION)|g' \
35                 -e 's|@libexecdir[@]|$(libexecdir)|g' $< > $@.tmp && \
36                 mv $@.tmp $@
37
38 INCLUDES = \
39         -I$(top_srcdir)/src \
40         -I$(top_builddir)/src \
41         $(NULL)
42
43 USE_SYMBOL_ICON = FALSE
44
45 # force include config.h before gi18n.h.
46 AM_CPPFLAGS = -include $(CONFIG_HEADER)
47
48 AM_CFLAGS = \
49         @GLIB2_CFLAGS@ \
50         @GIO2_CFLAGS@ \
51         @GTHREAD2_CFLAGS@ \
52         @GTK3_CFLAGS@ \
53         @X11_CFLAGS@ \
54         $(INCLUDES) \
55         -DG_LOG_DOMAIN=\"IBUS\" \
56         -DBINDIR=\"$(bindir)\" \
57         -DIBUS_DISABLE_DEPRECATED \
58         -DSWITCHER_USE_SYMBOL_ICON=$(USE_SYMBOL_ICON) \
59         -Wno-unused-variable \
60         -Wno-unused-but-set-variable \
61         -Wno-unused-function \
62         $(NULL)
63
64 AM_LDADD = \
65         @GOBJECT2_LIBS@ \
66         @GLIB2_LIBS@ \
67         @GIO2_LIBS@ \
68         @GTHREAD2_LIBS@ \
69         @GTK3_LIBS@ \
70         @X11_LIBS@ \
71         -lXi \
72         $(libibus) \
73         $(NULL)
74
75 AM_VALAFLAGS = \
76         --vapidir=$(top_builddir)/bindings/vala \
77         --vapidir=$(top_srcdir)/bindings/vala \
78         --pkg=posix \
79         --pkg=gtk+-3.0 \
80         --pkg=gdk-x11-3.0 \
81         --pkg=ibus-1.0 \
82         --pkg=config \
83         --pkg=xi \
84         $(NULL)
85
86 libexec_PROGRAMS = ibus-ui-gtk3
87
88 ibus_ui_gtk3_SOURCES = \
89         application.vala \
90         candidatearea.vala \
91         candidatepanel.vala \
92         handle.vala \
93         iconwidget.vala \
94         keybindingmanager.vala \
95         panel.vala \
96         pango.vala \
97         property.vala \
98         separator.vala \
99         switcher.vala \
100         $(NULL)
101
102 ibus_ui_gtk3_LDADD = \
103         $(AM_LDADD) \
104         $(NULL)
105
106 CLEANFILES = \
107         gtkpanel.xml \
108         $(NULL)
109
110 EXTRA_DIST = \
111         gtkpanel.xml.in \
112         $(NULL)
113
114
115 -include $(top_srcdir)/git.mk