Blame bus/Makefile.am

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