|
Packit |
3ff832 |
# vim:set noet ts=4:
|
|
Packit |
3ff832 |
#
|
|
Packit |
3ff832 |
# ibus - The Input Bus
|
|
Packit |
3ff832 |
#
|
|
Packit |
3ff832 |
# Copyright (c) 2007-2013 Peng Huang <shawn.p.huang@gmail.com>
|
|
Packit |
3ff832 |
# Copyright (c) 2013-2018 Takao Fujiwara <takao.fujiwara1@gmail.com>
|
|
Packit |
3ff832 |
# Copyright (c) 2007-2018 Red Hat, Inc.
|
|
Packit |
3ff832 |
#
|
|
Packit |
3ff832 |
# This library is free software; you can redistribute it and/or
|
|
Packit |
3ff832 |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit |
3ff832 |
# License as published by the Free Software Foundation; either
|
|
Packit |
3ff832 |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
3ff832 |
#
|
|
Packit |
3ff832 |
# This library is distributed in the hope that it will be useful,
|
|
Packit |
3ff832 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
3ff832 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
3ff832 |
# Lesser General Public License for more details.
|
|
Packit |
3ff832 |
#
|
|
Packit |
3ff832 |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
3ff832 |
# License along with this library; if not, write to the Free Software
|
|
Packit |
3ff832 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
|
Packit |
3ff832 |
# USA
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
NULL =
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
libibus = $(top_builddir)/src/libibus-@IBUS_API_VERSION@.la
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
AM_CPPFLAGS = \
|
|
Packit |
3ff832 |
-I$(top_srcdir)/src \
|
|
Packit |
3ff832 |
-I$(top_builddir)/src \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
AM_CFLAGS = \
|
|
Packit |
3ff832 |
@GLIB2_CFLAGS@ \
|
|
Packit |
3ff832 |
@GIO2_CFLAGS@ \
|
|
Packit |
3ff832 |
@GTHREAD2_CFLAGS@ \
|
|
Packit |
3ff832 |
-DG_LOG_DOMAIN=\"IBUS\" \
|
|
Packit |
3ff832 |
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
|
Packit |
3ff832 |
-DLIBEXECDIR=\"$(libexecdir)\" \
|
|
Packit |
3ff832 |
-DBINDIR=\"@bindir@\" \
|
|
Packit |
3ff832 |
-DIBUS_DISABLE_DEPRECATED \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
AM_LDADD = \
|
|
Packit |
3ff832 |
@GOBJECT2_LIBS@ \
|
|
Packit |
3ff832 |
@GLIB2_LIBS@ \
|
|
Packit |
3ff832 |
@GIO2_LIBS@ \
|
|
Packit |
3ff832 |
@GTHREAD2_LIBS@ \
|
|
Packit |
3ff832 |
$(libibus) \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
commonsrc = \
|
|
Packit |
3ff832 |
component.c \
|
|
Packit |
3ff832 |
component.h \
|
|
Packit |
3ff832 |
dbusimpl.c \
|
|
Packit |
3ff832 |
dbusimpl.h \
|
|
Packit |
3ff832 |
ibusimpl.c \
|
|
Packit |
3ff832 |
ibusimpl.h \
|
|
Packit |
3ff832 |
inputcontext.c \
|
|
Packit |
3ff832 |
inputcontext.h \
|
|
Packit |
3ff832 |
engineproxy.c \
|
|
Packit |
3ff832 |
engineproxy.h \
|
|
Packit |
3ff832 |
panelproxy.c \
|
|
Packit |
3ff832 |
panelproxy.h \
|
|
Packit |
3ff832 |
factoryproxy.c \
|
|
Packit |
3ff832 |
factoryproxy.h \
|
|
Packit |
3ff832 |
global.c \
|
|
Packit |
3ff832 |
global.h \
|
|
Packit |
3ff832 |
server.c \
|
|
Packit |
3ff832 |
server.h \
|
|
Packit |
3ff832 |
connection.c \
|
|
Packit |
3ff832 |
connection.h \
|
|
Packit |
3ff832 |
matchrule.c \
|
|
Packit |
3ff832 |
matchrule.h \
|
|
Packit |
3ff832 |
marshalers.c \
|
|
Packit |
3ff832 |
marshalers.h \
|
|
Packit |
3ff832 |
types.h \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
bin_PROGRAMS = ibus-daemon
|
|
Packit |
3ff832 |
ibus_daemon_DEPENDENCIES = \
|
|
Packit |
3ff832 |
$(libibus) \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
ibus_daemon_SOURCES = \
|
|
Packit |
3ff832 |
$(commonsrc) \
|
|
Packit |
3ff832 |
main.c \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
ibus_daemon_CFLAGS = \
|
|
Packit |
3ff832 |
$(AM_CFLAGS) \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
ibus_daemon_LDADD = \
|
|
Packit |
3ff832 |
$(AM_LDADD) \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
BUILT_SOURCES = \
|
|
Packit |
3ff832 |
marshalers.h \
|
|
Packit |
3ff832 |
marshalers.c \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
# gen marshal
|
|
Packit |
3ff832 |
marshalers.h: marshalers.list
|
|
Packit |
3ff832 |
$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=bus_marshal $(srcdir)/marshalers.list --header --internal > $@.tmp && \
|
|
Packit |
3ff832 |
mv $@.tmp $@
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
marshalers.c: marshalers.h marshalers.list
|
|
Packit |
3ff832 |
$(AM_V_GEN) (echo "#include \"marshalers.h\""; \
|
|
Packit |
3ff832 |
$(GLIB_GENMARSHAL) --prefix=bus_marshal $(srcdir)/marshalers.list --body --internal) > $@.tmp && \
|
|
Packit |
3ff832 |
mv $@.tmp $@
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
if ENABLE_EMOJI_DICT
|
|
Packit |
3ff832 |
AM_CFLAGS += -DEMOJI_DICT
|
|
Packit |
3ff832 |
endif
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
if ENABLE_TESTS
|
|
Packit |
3ff832 |
TESTS = \
|
|
Packit |
3ff832 |
test-matchrule \
|
|
Packit |
3ff832 |
test-stress \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
endif
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
TESTS_ENVIRONMENT = \
|
|
Packit |
3ff832 |
top_builddir=$(top_builddir) \
|
|
Packit |
3ff832 |
top_srcdir=$(top_srcdir) \
|
|
Packit |
3ff832 |
builddir=$(builddir) \
|
|
Packit |
3ff832 |
srcdir=$(srcdir) \
|
|
Packit |
3ff832 |
LD_LIBRARY_PATH="$(top_builddir)/src/.libs:$(top_builddir)/src" \
|
|
Packit |
3ff832 |
DISABLE_GUI_TESTS="$(DISABLE_GUI_TESTS)" \
|
|
rpm-build |
e25ef4 |
DISABLE_DAEMONIZE_IN_TESTS="$(DISABLE_DAEMONIZE_IN_TESTS)" \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
LOG_COMPILER = $(top_srcdir)/src/tests/runtest
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
noinst_PROGRAMS = $(TESTS)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
test_matchrule_DEPENDENCIES = \
|
|
Packit |
3ff832 |
$(libibus) \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
test_matchrule_SOURCES = \
|
|
Packit |
3ff832 |
$(commonsrc) \
|
|
Packit |
3ff832 |
test-matchrule.c \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
test_matchrule_CFLAGS = \
|
|
Packit |
3ff832 |
$(AM_CFLAGS) \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
test_matchrule_LDADD = \
|
|
Packit |
3ff832 |
$(AM_LDADD) \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
test_stress_SOURCES = \
|
|
Packit |
3ff832 |
test-client.c \
|
|
Packit |
3ff832 |
test-client.h \
|
|
Packit |
3ff832 |
test-stress.c \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
test_stress_CFLAGS = \
|
|
Packit |
3ff832 |
$(AM_CFLAGS) \
|
|
Packit |
3ff832 |
@GTK2_CFLAGS@ \
|
|
Packit |
3ff832 |
@X11_CFLAGS@ \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
test_stress_LDADD = \
|
|
Packit |
3ff832 |
$(AM_LDADD) \
|
|
Packit |
3ff832 |
@GTK2_LIBS@ \
|
|
Packit |
3ff832 |
@X11_LIBS@ \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
EXTRA_DIST = \
|
|
Packit |
3ff832 |
$(man_one_in_files) \
|
|
Packit |
3ff832 |
marshalers.list \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
CLEANFILES = \
|
|
Packit |
3ff832 |
$(man_one_DATA) \
|
|
Packit |
3ff832 |
$(man_one_files) \
|
|
Packit |
3ff832 |
$(NULL)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
$(libibus):
|
|
Packit |
3ff832 |
$(MAKE) -C $(top_builddir)/src
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
test: ibus-daemon
|
|
Packit |
3ff832 |
$(ENV_IBUS_TEST) \
|
|
Packit |
3ff832 |
G_DEBUG=fatal_warnings \
|
|
Packit |
3ff832 |
$(builddir)/ibus-daemon -v
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
man_one_in_files = ibus-daemon.1.in
|
|
Packit |
3ff832 |
man_one_files = $(man_one_in_files:.1.in=.1)
|
|
Packit |
3ff832 |
man_one_DATA =$(man_one_files:.1=.1.gz)
|
|
Packit |
3ff832 |
man_onedir = $(mandir)/man1
|
|
Packit |
3ff832 |
%.1: %.1.in
|
|
Packit |
3ff832 |
$(AM_V_GEN) sed \
|
|
Packit |
3ff832 |
-e 's|@VERSION[@]|$(VERSION)|g' $< > $@.tmp && \
|
|
Packit |
3ff832 |
mv $@.tmp $@
|
|
Packit |
3ff832 |
%.1.gz: %.1
|
|
Packit |
3ff832 |
$(AM_V_GEN) gzip -c $< > $@.tmp && mv $@.tmp $@
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
dbusservice_in_files = org.freedesktop.IBus.service.in
|
|
Packit |
3ff832 |
dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
|
|
Packit |
3ff832 |
dbusservicedir=${datadir}/dbus-1/services
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
org.freedesktop.IBus.service: org.freedesktop.IBus.service.in
|
|
Packit |
3ff832 |
$(AM_V_GEN) sed -e "s|\@bindir\@|$(bindir)|" -e "s|\@xim_cli_arg\@|$(XIM_CLI_ARG)|" $< > $@.tmp && mv $@.tmp $@
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
EXTRA_DIST += $(dbusservice_in_files)
|
|
Packit |
3ff832 |
CLEANFILES += $(dbusservice_DATA)
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
-include $(top_srcdir)/git.mk
|