Remove g_type_init() calls.
[platform/upstream/ibus.git] / engine / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus - The Input Bus
4 #
5 # Copyright (c) 2010, Google Inc. All rights reserved.
6 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
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 libibus = $(top_builddir)/src/libibus-@IBUS_API_VERSION@.la
24
25 INCLUDES = \
26         -I$(top_srcdir)/src \
27         -I$(top_builddir)/src \
28         $(NULL)
29
30 AM_CFLAGS = \
31         @GLIB2_CFLAGS@ \
32         @GIO2_CFLAGS@ \
33         @GTHREAD2_CFLAGS@ \
34         $(INCLUDES) \
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         --target-glib="$(GLIB_VERSION)" \
57         $(NULL)
58
59 libexec_PROGRAMS = \
60         ibus-engine-simple \
61         $(NULL)
62
63 ibus_engine_simple_SOURCES = \
64         main.vala \
65         $(NULL)
66 ibus_engine_simple_CFLAGS = \
67         $(AM_CFLAGS) \
68         $(NULL)
69 ibus_engine_simple_LDADD = \
70         $(AM_LDADD) \
71         $(NULL)
72 ibus_engine_simple_DEPENDENCIES = \
73         $(libibus) \
74         $(NULL)
75
76 component_DATA = \
77         simple.xml \
78         $(NULL)
79
80 componentdir = $(pkgdatadir)/component
81
82 CLEANFILES = \
83         simple.xml \
84         $(NULL)
85
86 EXTRA_DIST = \
87         simple.xml.in \
88         $(NULL)
89
90 simple.xml: simple.xml.in
91         $(AM_V_GEN) sed \
92                 -e 's|@VERSION[@]|$(VERSION)|g' \
93                 -e 's|@libexecdir[@]|$(libexecdir)|g' $< > $@.tmp && \
94                 mv $@.tmp $@
95
96 $(libibus):
97         $(MAKE) -C $(top_builddir)/src
98
99 -include $(top_srcdir)/git.mk