mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
chore(linux): Remove autotools related files
This commit is contained in:
parent
95bcb8b5a9
commit
958b7db068
24 changed files with 0 additions and 1622 deletions
64
linux/.gitignore
vendored
64
linux/.gitignore
vendored
|
|
@ -1,35 +1,8 @@
|
|||
# linux
|
||||
.deps/
|
||||
autom4te.cache
|
||||
*.o
|
||||
*.orig
|
||||
Makefile.in
|
||||
configure
|
||||
aclocal.m4
|
||||
config.guess
|
||||
config.sub
|
||||
config.h
|
||||
config.h.in
|
||||
config.log
|
||||
config.rpath
|
||||
config.status
|
||||
compile
|
||||
depcomp
|
||||
install-sh
|
||||
libtool
|
||||
ltmain.sh
|
||||
missing
|
||||
test-driver
|
||||
ylwrap
|
||||
INSTALL
|
||||
Makefile
|
||||
ABOUT-NLS
|
||||
ltoptions.m4
|
||||
ltsugar.m4
|
||||
ltversion.m4
|
||||
lt~obsolete.m4
|
||||
libtool.m4
|
||||
stamp-h1
|
||||
__pycache__
|
||||
*.egg-info
|
||||
build-*
|
||||
|
|
@ -43,43 +16,6 @@ dist/
|
|||
keyboardprocessor/
|
||||
# IDE config files
|
||||
**/.idea/
|
||||
ibus-keyman/m4/codeset.m4
|
||||
ibus-keyman/m4/glibc2.m4
|
||||
ibus-keyman/m4/glibc21.m4
|
||||
ibus-keyman/m4/intdiv0.m4
|
||||
ibus-keyman/m4/intl.m4
|
||||
ibus-keyman/m4/intldir.m4
|
||||
ibus-keyman/m4/intmax.m4
|
||||
ibus-keyman/m4/inttypes-pri.m4
|
||||
ibus-keyman/m4/inttypes_h.m4
|
||||
ibus-keyman/m4/lcmessage.m4
|
||||
ibus-keyman/m4/lock.m4
|
||||
ibus-keyman/m4/longdouble.m4
|
||||
ibus-keyman/m4/longlong.m4
|
||||
ibus-keyman/m4/printf-posix.m4
|
||||
ibus-keyman/m4/size_max.m4
|
||||
ibus-keyman/m4/stdint_h.m4
|
||||
ibus-keyman/m4/uintmax_t.m4
|
||||
ibus-keyman/m4/ulonglong.m4
|
||||
ibus-keyman/m4/visibility.m4
|
||||
ibus-keyman/m4/wchar_t.m4
|
||||
ibus-keyman/m4/wint_t.m4
|
||||
ibus-keyman/m4/xsize.m4
|
||||
ibus-keyman/m4/extern-inline.m4
|
||||
ibus-keyman/m4/fcntl-o.m4
|
||||
ibus-keyman/m4/gettext.m4
|
||||
ibus-keyman/m4/iconv.m4
|
||||
ibus-keyman/m4/intlmacosx.m4
|
||||
ibus-keyman/m4/lib-ld.m4
|
||||
ibus-keyman/m4/lib-link.m4
|
||||
ibus-keyman/m4/lib-prefix.m4
|
||||
ibus-keyman/m4/nls.m4
|
||||
ibus-keyman/m4/po.m4
|
||||
ibus-keyman/m4/progtest.m4
|
||||
ibus-keyman/m4/threadlib.m4
|
||||
ibus-keyman/po/Makefile.in.in
|
||||
ibus-keyman/po/Makevars.template
|
||||
ibus-keyman/po/Rules-quot
|
||||
upload/
|
||||
launchpad
|
||||
launchpad-*
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
../VERSION.md
|
||||
|
|
@ -24,62 +24,6 @@ Files: linux/ibus-keyman/src/keyman-service.c
|
|||
Copyright: 2018-2023 SIL International
|
||||
License: GPL-3+
|
||||
|
||||
Files: linux/ibus-keyman/config.rpath
|
||||
linux/ibus-keyman/m4/*
|
||||
Copyright: 1996-2003, 2009-2015, Free Software Foundation, Inc.
|
||||
License: FSFULLR
|
||||
|
||||
Files: linux/ibus-keyman/Makefile.am
|
||||
linux/ibus-keyman/Makefile.in
|
||||
linux/ibus-keyman/compile
|
||||
linux/ibus-keyman/configure.ac
|
||||
linux/ibus-keyman/depcomp
|
||||
linux/ibus-keyman/m4/Makefile.am
|
||||
linux/ibus-keyman/m4/Makefile.in
|
||||
linux/ibus-keyman/missing
|
||||
linux/ibus-keyman/src/Makefile.am
|
||||
linux/ibus-keyman/src/Makefile.in
|
||||
linux/ibus-keyman/src/engine.c
|
||||
linux/ibus-keyman/src/engine.h
|
||||
linux/ibus-keyman/src/main.c
|
||||
linux/ibus-keyman/src/test/Makefile.am
|
||||
linux/ibus-keyman/src/test/Makefile.in
|
||||
linux/ibus-keyman/tap-driver.sh
|
||||
linux/ibus-keyman/test-driver
|
||||
linux/ibus-keyman/tests/Makefile.am
|
||||
linux/ibus-keyman/tests/Makefile.in
|
||||
Copyright: 1994-2017, Free Software Foundation, Inc.
|
||||
2009-2023, SIL International
|
||||
License: GPL-2+
|
||||
|
||||
Files: linux/ibus-keyman/m4/gettext.m4
|
||||
linux/ibus-keyman/m4/intl.m4
|
||||
linux/ibus-keyman/m4/intldir.m4
|
||||
linux/ibus-keyman/m4/intlmacosx.m4
|
||||
linux/ibus-keyman/m4/lcmessage.m4
|
||||
linux/ibus-keyman/m4/nls.m4
|
||||
linux/ibus-keyman/m4/po.m4
|
||||
linux/ibus-keyman/m4/progtest.m4
|
||||
Copyright: 1995-2014, Free Software Foundation, Inc.
|
||||
License: FSFULLR or GPL-3 or LGPL-3
|
||||
|
||||
Files: linux/ibus-keyman/install-sh
|
||||
Copyright: 1994, X Consortium
|
||||
2018, SIL International
|
||||
License: MIT
|
||||
|
||||
Files: linux/ibus-keyman/INSTALL
|
||||
linux/ibus-keyman/po/Makefile.in.in
|
||||
Copyright: 1994-1996, 1999-2002, 2004-2016, Free Software Foundation, Inc.
|
||||
1995-1997, 2000-2007, 2009-2010, Ulrich Drepper <drepper@gnu.ai.mit.edu>
|
||||
License: FSFAP
|
||||
|
||||
Files: linux/ibus-keyman/icons/Makefile.am
|
||||
linux/ibus-keyman/icons/Makefile.in
|
||||
Copyright: 1994-2017, Free Software Foundation, Inc.
|
||||
2018, SIL International
|
||||
License: LGPL-2+
|
||||
|
||||
Files: linux/ibus-keyman/tests/ibusimcontext.c
|
||||
linux/ibus-keyman/tests/ibusimcontext.h
|
||||
Copyright: 2008-2010, Peng Huang <shawn.p.huang@gmail.com>
|
||||
|
|
@ -139,24 +83,6 @@ License: GPL-2+
|
|||
License version 2 can be found in the file
|
||||
`/usr/share/common-licenses/GPL-2'.
|
||||
|
||||
License: GPL-3
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, version 3.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
.
|
||||
On Debian systems, the full text of the GNU General Public
|
||||
License version 3 can be found in the file
|
||||
`/usr/share/common-licenses/GPL-3'.
|
||||
|
||||
License: GPL-3+
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -176,35 +102,6 @@ License: GPL-3+
|
|||
License version 3 can be found in the file
|
||||
`/usr/share/common-licenses/GPL-3'.
|
||||
|
||||
License: FSFULLR
|
||||
This file is free software; the Free Software Foundation gives unlimited
|
||||
permission to copy and/or distribute it, with or without modifications, as long
|
||||
as this notice is preserved.
|
||||
|
||||
License: FSFAP
|
||||
Copying and distribution of this file, with or without modification, are
|
||||
permitted in any medium without royalty provided the copyright notice and this
|
||||
notice are preserved. This file is offered as-is, without any warranty.
|
||||
|
||||
License: LGPL-2+
|
||||
This library is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU Library General Public License as published by the Free
|
||||
Software Foundation; either version 2 of the License, or (at your option)
|
||||
any later version.
|
||||
.
|
||||
This library is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
|
||||
details.
|
||||
.
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
.
|
||||
On Debian systems, the full text of the GNU Library General Public
|
||||
License version 2 can be found in the file
|
||||
`/usr/share/common-licenses/LGPL-2'.
|
||||
|
||||
License: LGPL-2.1+
|
||||
This library is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU Lesser General Public License as published by the Free
|
||||
|
|
@ -223,7 +120,3 @@ License: LGPL-2.1+
|
|||
On Debian systems, the full text of the GNU Lesser General Public
|
||||
License version 2.1 can be found in the file
|
||||
`/usr/share/common-licenses/LGPL-2.1'.
|
||||
|
||||
License: LGPL-3
|
||||
On Debian systems, the full text of the GNU Lesser General Public
|
||||
License version 3 can be found in `/usr/share/common-licenses/LGPL-3'.
|
||||
|
|
|
|||
11
linux/ibus-keyman/.gitignore
vendored
11
linux/ibus-keyman/.gitignore
vendored
|
|
@ -1,11 +0,0 @@
|
|||
po/POTFILES
|
||||
src/keyman.xml
|
||||
src/keyman.xml.in
|
||||
src/keyman-version.h
|
||||
src/ibus-engine-keyman
|
||||
src/print_kmp
|
||||
src/print_kmpdetails
|
||||
src/test/keymanutil-tests
|
||||
*.log
|
||||
*.trs
|
||||
.dirstamp
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# File required by autotools
|
||||
Daniel Glassey <wdg@debian.org>
|
||||
Eberhard Beilharz <eb1@sil.org>
|
||||
|
|
@ -1 +0,0 @@
|
|||
# File required by autotools
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
# vim:set noet ts=4:
|
||||
#
|
||||
# ibus-keyman - The Keyman engine for IBus
|
||||
#
|
||||
# Copyright (c) 2009-2018 SIL International
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
SUBDIRS = \
|
||||
src \
|
||||
tests \
|
||||
icons \
|
||||
m4 \
|
||||
po \
|
||||
$(NULL)
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
EXTRA_DIST = \
|
||||
autogen.sh \
|
||||
VERSION \
|
||||
tap-driver.sh \
|
||||
tap-test \
|
||||
$(NULL)
|
||||
|
||||
noinst_DIST = \
|
||||
$(NULL)
|
||||
|
||||
|
||||
DISTCLEANFILES = \
|
||||
po/stamp-it \
|
||||
$(NULL)
|
||||
|
|
@ -1 +0,0 @@
|
|||
# File required by autotools
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
Keyman engine for IBus
|
||||
|
||||
This readme is required by autoconf. Otherwise see README.md.
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
You need autoconf, autopoint, gettext, automake and libtool to generate the build system
|
||||
|
||||
Run ./autogen.sh to run them
|
||||
|
|
@ -1 +0,0 @@
|
|||
../VERSION
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
autoreconf -if
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
# vim:set et ts=4:
|
||||
#
|
||||
# ibus-keyman - The Keyman engine for IBus
|
||||
#
|
||||
# Copyright (c) 2009-2022 SIL International
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
# if not 1, append datestamp to the version number.
|
||||
m4_define([ibus_released], [0])
|
||||
m4_define([ibus_major_version], [1])
|
||||
m4_define([ibus_minor_version], [2])
|
||||
m4_define([ibus_micro_version], [0])
|
||||
m4_define(ibus_maybe_datestamp,
|
||||
m4_esyscmd([if test x]ibus_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
|
||||
|
||||
m4_define([ibus_version],
|
||||
ibus_major_version.ibus_minor_version.ibus_micro_version[]ibus_maybe_datestamp)
|
||||
|
||||
AC_INIT([ibus-keyman],[m4_esyscmd_s(cat VERSION)],[https://github.com/keymanapp/keyman/issues/new])
|
||||
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
# define PACKAGE_VERSION_* variables
|
||||
AM_SANITY_CHECK
|
||||
AM_MAINTAINER_MODE
|
||||
AC_DISABLE_STATIC([])
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_CXX
|
||||
AC_SEARCH_LIBS([strerror],[cposix])
|
||||
|
||||
LT_INIT
|
||||
|
||||
# check ibus
|
||||
PKG_CHECK_MODULES(IBUS, [
|
||||
ibus-1.0 >= 1.2.0
|
||||
])
|
||||
|
||||
# check Gtk
|
||||
PKG_CHECK_MODULES(GTK, [
|
||||
gtk+-3.0 >= 2.4
|
||||
])
|
||||
|
||||
# Check X11
|
||||
PKG_CHECK_MODULES(X11, [
|
||||
x11 >= 1.6
|
||||
])
|
||||
|
||||
# check Json glib
|
||||
PKG_CHECK_MODULES(JSON_GLIB, [
|
||||
json-glib-1.0 >= 1.0
|
||||
])
|
||||
|
||||
# check Keyman keyboard processor
|
||||
PKG_CHECK_MODULES(KEYMAN_PROC, [
|
||||
keyman_kmn_processor >= 0.0.0
|
||||
])
|
||||
|
||||
|
||||
# check env
|
||||
AC_PATH_PROG(ENV, env)
|
||||
AC_SUBST(ENV)
|
||||
|
||||
# define GETTEXT_* variables
|
||||
GETTEXT_PACKAGE=ibus-keyman
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the read-only architecture-independent data directory.])
|
||||
|
||||
AM_GNU_GETTEXT([external])
|
||||
AM_GNU_GETTEXT_VERSION(0.19.7)
|
||||
|
||||
# check if it's a patched ibus
|
||||
SAV_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$IBUS_CFLAGS $CFLAGS"
|
||||
AC_CHECK_DECLS([IBUS_PREFILTER_MASK, IBUS_CAP_PREFILTER],
|
||||
[AC_DEFINE(IBUS_HAS_PREFILTER, 1, [Does ibus support the prefilter flag])],
|
||||
[],
|
||||
[[#include <ibus.h>]]
|
||||
)
|
||||
CFLAGS="$SAV_CFLAGS"
|
||||
|
||||
|
||||
# OUTPUT files
|
||||
AC_CONFIG_FILES([ po/Makefile.in
|
||||
Makefile
|
||||
src/Makefile
|
||||
src/keyman.xml.in
|
||||
src/keyman-version.h
|
||||
src/test/Makefile
|
||||
tests/Makefile
|
||||
icons/Makefile
|
||||
m4/Makefile
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
@ -1,137 +0,0 @@
|
|||
# from https://gitlab.gnome.org/GNOME/glib/-/blob/glib-2-58/glib-tap.mk
|
||||
# GLIB - Library of useful C routines
|
||||
|
||||
AM_TESTS_ENVIRONMENT= \
|
||||
G_TEST_SRCDIR="$(abs_srcdir)" \
|
||||
G_TEST_BUILDDIR="$(abs_builddir)" \
|
||||
G_DEBUG=gc-friendly \
|
||||
MALLOC_CHECK_=2 \
|
||||
MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
|
||||
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh
|
||||
LOG_COMPILER = $(top_srcdir)/tap-test
|
||||
|
||||
NULL =
|
||||
|
||||
# initialize variables for unconditional += appending
|
||||
BUILT_SOURCES =
|
||||
BUILT_EXTRA_DIST =
|
||||
CLEANFILES = *.log *.trs
|
||||
DISTCLEANFILES =
|
||||
MAINTAINERCLEANFILES =
|
||||
EXTRA_DIST =
|
||||
TESTS =
|
||||
|
||||
# installed_test_LTLIBRARIES =
|
||||
# installed_test_PROGRAMS =
|
||||
# installed_test_SCRIPTS =
|
||||
# nobase_installed_test_DATA =
|
||||
|
||||
noinst_LTLIBRARIES =
|
||||
noinst_PROGRAMS =
|
||||
noinst_SCRIPTS =
|
||||
noinst_DATA =
|
||||
|
||||
check_LTLIBRARIES =
|
||||
check_PROGRAMS =
|
||||
check_SCRIPTS =
|
||||
check_DATA =
|
||||
|
||||
# We support a fairly large range of possible variables. It is expected that all types of files in a test suite
|
||||
# will belong in exactly one of the following variables.
|
||||
#
|
||||
# First, we support the usual automake suffixes, but in lowercase, with the customary meaning:
|
||||
#
|
||||
# test_programs, test_scripts, test_data, test_ltlibraries
|
||||
#
|
||||
# The above are used to list files that are involved in both uninstalled and installed testing. The
|
||||
# test_programs and test_scripts are taken to be actual testcases and will be run as part of the test suite.
|
||||
# Note that _data is always used with the nobase_ automake variable name to ensure that installed test data is
|
||||
# installed in the same way as it appears in the package layout.
|
||||
#
|
||||
# In order to mark a particular file as being only for one type of testing, use 'installed' or 'uninstalled',
|
||||
# like so:
|
||||
#
|
||||
# installed_test_programs, uninstalled_test_programs
|
||||
# installed_test_scripts, uninstalled_test_scripts
|
||||
# installed_test_data, uninstalled_test_data
|
||||
# installed_test_ltlibraries, uninstalled_test_ltlibraries
|
||||
#
|
||||
# Additionally, we support 'extra' infixes for programs and scripts. This is used for support programs/scripts
|
||||
# that should not themselves be run as testcases (but exist to be used from other testcases):
|
||||
#
|
||||
# test_extra_programs, installed_test_extra_programs, uninstalled_test_extra_programs
|
||||
# test_extra_scripts, installed_test_extra_scripts, uninstalled_test_extra_scripts
|
||||
#
|
||||
# Additionally, for _scripts and _data, we support the customary dist_ prefix so that the named script or data
|
||||
# file automatically end up in the tarball.
|
||||
#
|
||||
# dist_test_scripts, dist_test_data, dist_test_extra_scripts
|
||||
# dist_installed_test_scripts, dist_installed_test_data, dist_installed_test_extra_scripts
|
||||
# dist_uninstalled_test_scripts, dist_uninstalled_test_data, dist_uninstalled_test_extra_scripts
|
||||
#
|
||||
# Note that no file is automatically disted unless it appears in one of the dist_ variables. This follows the
|
||||
# standard automake convention of not disting programs scripts or data by default.
|
||||
#
|
||||
# test_programs, test_scripts, uninstalled_test_programs and uninstalled_test_scripts (as well as their disted
|
||||
# variants) will be run as part of the in-tree 'make check'. These are all assumed to be runnable under
|
||||
# gtester. That's a bit strange for scripts, but it's possible.
|
||||
|
||||
TESTS += $(test_programs) $(test_scripts) $(uninstalled_test_programs) $(uninstalled_test_scripts) \
|
||||
$(dist_test_scripts) $(dist_uninstalled_test_scripts)
|
||||
|
||||
# Note: build even the installed-only targets during 'make check' to ensure that they still work.
|
||||
# We need to do a bit of trickery here and manage disting via EXTRA_DIST instead of using dist_ prefixes to
|
||||
# prevent automake from mistreating gmake functions like $(wildcard ...) and $(addprefix ...) as if they were
|
||||
# filenames, including removing duplicate instances of the opening part before the space, eg. '$(addprefix'.
|
||||
all_test_programs = $(test_programs) $(uninstalled_test_programs) $(installed_test_programs) \
|
||||
$(test_extra_programs) $(uninstalled_test_extra_programs) $(installed_test_extra_programs)
|
||||
all_test_scripts = $(test_scripts) $(uninstalled_test_scripts) $(installed_test_scripts) \
|
||||
$(test_extra_scripts) $(uninstalled_test_extra_scripts) $(installed_test_extra_scripts)
|
||||
all_dist_test_scripts = $(dist_test_scripts) $(dist_uninstalled_test_scripts) $(dist_installed_test_scripts) \
|
||||
$(dist_test_extra_scripts) $(dist_uninstalled_test_extra_scripts) $(dist_installed_test_extra_scripts)
|
||||
all_test_scripts += $(all_dist_test_scripts)
|
||||
EXTRA_DIST += $(all_dist_test_scripts)
|
||||
all_test_data = $(test_data) $(uninstalled_test_data) $(installed_test_data)
|
||||
all_dist_test_data = $(dist_test_data) $(dist_uninstalled_test_data) $(dist_installed_test_data)
|
||||
all_test_data += $(all_dist_test_data)
|
||||
EXTRA_DIST += $(all_dist_test_data)
|
||||
all_test_ltlibs = $(test_ltlibraries) $(uninstalled_test_ltlibraries) $(installed_test_ltlibraries)
|
||||
|
||||
# if ENABLE_ALWAYS_BUILD_TESTS
|
||||
# noinst_LTLIBRARIES += $(all_test_ltlibs)
|
||||
# noinst_PROGRAMS += $(all_test_programs)
|
||||
# noinst_SCRIPTS += $(all_test_scripts)
|
||||
# noinst_DATA += $(all_test_data)
|
||||
# else
|
||||
check_LTLIBRARIES += $(all_test_ltlibs)
|
||||
check_PROGRAMS += $(all_test_programs)
|
||||
check_SCRIPTS += $(all_test_scripts)
|
||||
check_DATA += $(all_test_data)
|
||||
# endif
|
||||
|
||||
# if ENABLE_INSTALLED_TESTS
|
||||
# installed_test_PROGRAMS += $(test_programs) $(installed_test_programs) \
|
||||
# $(test_extra_programs) $(installed_test_extra_programs)
|
||||
# installed_test_SCRIPTS += $(test_scripts) $(installed_test_scripts) \
|
||||
# $(test_extra_scripts) $(installed_test_extra_scripts)
|
||||
# installed_test_SCRIPTS += $(dist_test_scripts) $(dist_test_extra_scripts) \
|
||||
# $(dist_installed_test_scripts) $(dist_installed_test_extra_scripts)
|
||||
# nobase_installed_test_DATA += $(test_data) $(installed_test_data)
|
||||
# nobase_installed_test_DATA += $(dist_test_data) $(dist_installed_test_data)
|
||||
# installed_test_LTLIBRARIES += $(test_ltlibraries) $(installed_test_ltlibraries)
|
||||
# installed_testcases = $(test_programs) $(installed_test_programs) \
|
||||
# $(test_scripts) $(installed_test_scripts) \
|
||||
# $(dist_test_scripts) $(dist_installed_test_scripts)
|
||||
|
||||
# installed_test_meta_DATA = $(installed_testcases:=.test)
|
||||
|
||||
# %.test: %$(EXEEXT) Makefile
|
||||
# $(AM_V_GEN) ($(MKDIR_P) $(@D); \
|
||||
# echo '[Test]' > $@.tmp; \
|
||||
# echo 'Type=session' >> $@.tmp; \
|
||||
# echo 'Exec=$(installed_testdir)/$(notdir $<) --tap' >> $@.tmp; \
|
||||
# echo 'Output=TAP' >> $@.tmp; \
|
||||
# mv $@.tmp $@)
|
||||
|
||||
# CLEANFILES += $(installed_test_meta_DATA)
|
||||
# endif
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
# vim:set noet ts=4:
|
||||
#
|
||||
# ibus-keyman - The Keyman engine for IBus
|
||||
#
|
||||
# Copyright (c) 2018 SIL International
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the
|
||||
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
# Boston, MA 02111-1307 USA
|
||||
|
||||
icons_DATA = \
|
||||
default.png \
|
||||
$(NULL)
|
||||
|
||||
iconsdir = $(datadir)/keyman/icons
|
||||
|
||||
EXTRA_DIST = \
|
||||
default.png \
|
||||
$(NULL)
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
# vim:set noet ts=4:
|
||||
#
|
||||
# ibus-keyman - The Keyman engine for IBus
|
||||
#
|
||||
# Copyright (c) 2018 SIL International
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
EXTRA_DIST = \
|
||||
as-version.m4 \
|
||||
$(NULL)
|
||||
|
|
@ -1,71 +0,0 @@
|
|||
dnl as-version.m4 0.2.0
|
||||
|
||||
dnl autostars m4 macro for versioning
|
||||
|
||||
dnl Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
dnl $Id: as-version.m4,v 1.4 2004/06/01 09:40:05 thomasvs Exp $
|
||||
|
||||
dnl AS_VERSION
|
||||
|
||||
dnl example
|
||||
dnl AS_VERSION
|
||||
|
||||
dnl this macro
|
||||
dnl - AC_SUBST's PACKAGE_VERSION_MAJOR, _MINOR, _MICRO
|
||||
dnl - AC_SUBST's PACKAGE_VERSION_RELEASE,
|
||||
dnl which can be used for rpm release fields
|
||||
dnl - doesn't call AM_INIT_AUTOMAKE anymore because it prevents
|
||||
dnl maintainer mode from running correctly
|
||||
dnl
|
||||
dnl don't forget to put #undef PACKAGE_VERSION_RELEASE in acconfig.h
|
||||
dnl if you use acconfig.h
|
||||
|
||||
AC_DEFUN([AS_VERSION],
|
||||
[
|
||||
PACKAGE_VERSION_MAJOR=$(echo AC_PACKAGE_VERSION | cut -d'.' -f1)
|
||||
PACKAGE_VERSION_MINOR=$(echo AC_PACKAGE_VERSION | cut -d'.' -f2)
|
||||
PACKAGE_VERSION_MICRO=$(echo AC_PACKAGE_VERSION | cut -d'.' -f3)
|
||||
|
||||
AC_SUBST(PACKAGE_VERSION_MAJOR)
|
||||
AC_SUBST(PACKAGE_VERSION_MINOR)
|
||||
AC_SUBST(PACKAGE_VERSION_MICRO)
|
||||
])
|
||||
|
||||
dnl AS_NANO(ACTION-IF-NO-NANO, [ACTION-IF-NANO])
|
||||
|
||||
dnl requires AC_INIT to be called before
|
||||
dnl For projects using a fourth or nano number in your versioning to indicate
|
||||
dnl development or prerelease snapshots, this macro allows the build to be
|
||||
dnl set up differently accordingly.
|
||||
|
||||
dnl this macro:
|
||||
dnl - parses AC_PACKAGE_VERSION, set by AC_INIT, and extracts the nano number
|
||||
dnl - sets the variable PACKAGE_VERSION_NANO
|
||||
dnl - sets the variable PACKAGE_VERSION_RELEASE, which can be used
|
||||
dnl for rpm release fields
|
||||
dnl - executes ACTION-IF-NO-NANO or ACTION-IF-NANO
|
||||
|
||||
dnl example:
|
||||
dnl AS_NANO(RELEASE="yes", RELEASE="no")
|
||||
|
||||
AC_DEFUN([AS_NANO],
|
||||
[
|
||||
AC_MSG_CHECKING(nano version)
|
||||
|
||||
NANO=$(echo AC_PACKAGE_VERSION | cut -d'.' -f4)
|
||||
|
||||
if test x"$NANO" = x || test "x$NANO" = "x0" ; then
|
||||
AC_MSG_RESULT([0 (release)])
|
||||
NANO=0
|
||||
PACKAGE_VERSION_RELEASE=1
|
||||
ifelse([$1], , :, [$1])
|
||||
else
|
||||
AC_MSG_RESULT($NANO)
|
||||
PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
|
||||
ifelse([$2], , :, [$2])
|
||||
fi
|
||||
PACKAGE_VERSION_NANO=$NANO
|
||||
AC_SUBST(PACKAGE_VERSION_NANO)
|
||||
AC_SUBST(PACKAGE_VERSION_RELEASE)
|
||||
])
|
||||
|
|
@ -1,123 +0,0 @@
|
|||
# vim:set noet ts=4:
|
||||
#
|
||||
# ibus-keyman - The Keyman engine for IBus
|
||||
#
|
||||
# Copyright (c) 2018 SIL International
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
SUBDIRS = \
|
||||
test \
|
||||
$(NULL)
|
||||
|
||||
AM_CFLAGS = \
|
||||
@IBUS_CFLAGS@ \
|
||||
@GTK_CFLAGS@ \
|
||||
@JSON_GLIB_CFLAGS@ \
|
||||
@X11_CFLAGS@ \
|
||||
@KEYMAN_PROC_CFLAGS@ \
|
||||
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
||||
$(NULL)
|
||||
|
||||
AM_LDFLAGS = \
|
||||
@IBUS_LIBS@ \
|
||||
@GTK_LIBS@ \
|
||||
@X11_LIBS@ \
|
||||
@JSON_GLIB_LIBS@ \
|
||||
@KEYMAN_PROC_LIBS@ \
|
||||
$(NULL)
|
||||
|
||||
check_PROGRAMS = \
|
||||
print_kmpdetails \
|
||||
print_kmp \
|
||||
$(NULL)
|
||||
|
||||
TESTS = \
|
||||
test/print_kmpdetails.test \
|
||||
test/print_kmp.test \
|
||||
$(NULL)
|
||||
|
||||
print_kmp_SOURCES = \
|
||||
test/print_kmp.c
|
||||
|
||||
print_kmpdetails_SOURCES = \
|
||||
kmpdetails.c \
|
||||
test/print_kmpdetails.c \
|
||||
$(NULL)
|
||||
print_kmpdetails_CFLAGS = \
|
||||
$(AM_CFLAGS) \
|
||||
@JSON_GLIB_CFLAGS@ \
|
||||
-DDEBUG \
|
||||
$(NULL)
|
||||
|
||||
libexec_PROGRAMS = ibus-engine-keyman
|
||||
|
||||
ibus_engine_keyman_SOURCES = \
|
||||
keymanutil.c \
|
||||
keymanutil.h \
|
||||
kmpdetails.c \
|
||||
kmpdetails.h \
|
||||
main.c \
|
||||
engine.c \
|
||||
engine.h \
|
||||
keycodes.h \
|
||||
keyman-service.c \
|
||||
keyman-service.h \
|
||||
keyman-version.h \
|
||||
$(NULL)
|
||||
|
||||
ibus_engine_keyman_CFLAGS = \
|
||||
@IBUS_CFLAGS@ \
|
||||
@GTK_CFLAGS@ \
|
||||
@X11_CFLAGS@ \
|
||||
@JSON_GLIB_CFLAGS@ \
|
||||
@KEYMAN_PROC_CFLAGS@ \
|
||||
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
||||
$(NULL)
|
||||
|
||||
ibus_engine_keyman_LDFLAGS = \
|
||||
@GTK_LIBS@ \
|
||||
@IBUS_LIBS@ \
|
||||
@X11_LIBS@ \
|
||||
@JSON_GLIB_LIBS@ \
|
||||
@KEYMAN_PROC_LIBS@ \
|
||||
$(NULL)
|
||||
|
||||
component_DATA = \
|
||||
keyman.xml \
|
||||
$(NULL)
|
||||
componentdir = @datadir@/ibus/component
|
||||
|
||||
EXTRA_DIST = \
|
||||
keyman.xml.in \
|
||||
test/print_kmpdetails.test \
|
||||
test/print_kmp.test \
|
||||
test/kmp.json \
|
||||
$(NULL)
|
||||
|
||||
CLEANFILES = \
|
||||
keyman.xml \
|
||||
$(NULL)
|
||||
|
||||
keyman.xml: keyman.xml.in
|
||||
( \
|
||||
libexecdir=${libexecdir}; \
|
||||
pkgdatadir=${pkgdatadir}; \
|
||||
s=`cat $<`; \
|
||||
eval "echo \"$${s}\""; \
|
||||
) > $@
|
||||
|
||||
test: ibus-engine-keyman
|
||||
$(builddir)/ibus-engine-keyman
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version=\"1.0\" encoding=\"utf-8\"?>
|
||||
<!-- filename: keyman.xml -->
|
||||
<component>
|
||||
<name>org.freedesktop.IBus.Keyman</name>
|
||||
<description>Keyman Component</description>
|
||||
<exec>${libexecdir}/ibus-engine-keyman --ibus</exec>
|
||||
<version>@VERSION@</version>
|
||||
<author>Keyman Team <support@keyman.com></author>
|
||||
<license>GPL</license>
|
||||
<homepage>https://keyman.com</homepage>
|
||||
<textdomain>ibus-keyman</textdomain>
|
||||
<observed-paths>
|
||||
<path>/usr/share/keyman/</path>
|
||||
<path>/usr/local/share/keyman/</path>
|
||||
<path>~/.local/share/keyman/</path>
|
||||
</observed-paths>
|
||||
<engines exec=\"${libexecdir}/ibus-engine-keyman --xml\" />
|
||||
</component>
|
||||
|
|
@ -1,84 +0,0 @@
|
|||
# vim:set noet ts=4:
|
||||
#
|
||||
# ibus-keyman - The Keyman engine for IBus
|
||||
#
|
||||
# Copyright (c) 2021 SIL International
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include $(top_srcdir)/glib-tap.mk
|
||||
|
||||
AUTOMAKE_OPTIONS = subdir-objects
|
||||
|
||||
AM_CFLAGS = \
|
||||
@IBUS_CFLAGS@ \
|
||||
@GTK_CFLAGS@ \
|
||||
@JSON_GLIB_CFLAGS@ \
|
||||
@X11_CFLAGS@ \
|
||||
@KEYMAN_PROC_CFLAGS@ \
|
||||
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
||||
$(NULL)
|
||||
|
||||
AM_LDFLAGS = \
|
||||
@IBUS_LIBS@ \
|
||||
@GTK_LIBS@ \
|
||||
@X11_LIBS@ \
|
||||
@JSON_GLIB_LIBS@ \
|
||||
@KEYMAN_PROC_LIBS@ \
|
||||
$(NULL)
|
||||
|
||||
uninstalled_test_scripts = run-tests.sh
|
||||
|
||||
libexec_PROGRAMS = \
|
||||
keymanutil-tests \
|
||||
$(NULL)
|
||||
|
||||
keymanutil_tests_SOURCES = \
|
||||
keymanutil_tests.c \
|
||||
../keymanutil.c \
|
||||
../keymanutil.h \
|
||||
../kmpdetails.c \
|
||||
../kmpdetails.h \
|
||||
$(NULL)
|
||||
|
||||
keymanutil_tests_CFLAGS = \
|
||||
@IBUS_CFLAGS@ \
|
||||
@GTK_CFLAGS@ \
|
||||
@X11_CFLAGS@ \
|
||||
@JSON_GLIB_CFLAGS@ \
|
||||
@KEYMAN_PROC_CFLAGS@ \
|
||||
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_builddir)/src \
|
||||
$(NULL)
|
||||
|
||||
keymanutil_tests_CPPFLAGS = \
|
||||
@IBUS_CFLAGS@ \
|
||||
@GTK_CFLAGS@ \
|
||||
@X11_CFLAGS@ \
|
||||
@JSON_GLIB_CFLAGS@ \
|
||||
@KEYMAN_PROC_CFLAGS@ \
|
||||
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_builddir)/src \
|
||||
$(NULL)
|
||||
|
||||
keymanutil_tests_LDFLAGS = \
|
||||
@GTK_LIBS@ \
|
||||
@IBUS_LIBS@ \
|
||||
@X11_LIBS@ \
|
||||
@JSON_GLIB_LIBS@ \
|
||||
@KEYMAN_PROC_LIBS@ \
|
||||
$(NULL)
|
||||
|
|
@ -1,644 +0,0 @@
|
|||
#! /bin/sh
|
||||
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# This file is maintained in Automake, please report
|
||||
# bugs to <bug-automake@gnu.org> or send patches to
|
||||
# <automake-patches@gnu.org>.
|
||||
|
||||
# from https://gitlab.gnome.org/GNOME/glib/-/blob/glib-2-58/tap-driver.sh
|
||||
|
||||
scriptversion=2011-12-27.17; # UTC
|
||||
|
||||
# Make unconditional expansion of undefined variables an error. This
|
||||
# helps a lot in preventing typo-related bugs.
|
||||
set -u
|
||||
|
||||
me=tap-driver.sh
|
||||
|
||||
fatal ()
|
||||
{
|
||||
echo "$me: fatal: $*" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
usage_error ()
|
||||
{
|
||||
echo "$me: $*" >&2
|
||||
print_usage >&2
|
||||
exit 2
|
||||
}
|
||||
|
||||
print_usage ()
|
||||
{
|
||||
cat <<END
|
||||
Usage:
|
||||
tap-driver.sh --test-name=NAME --log-file=PATH --trs-file=PATH
|
||||
[--expect-failure={yes|no}] [--color-tests={yes|no}]
|
||||
[--enable-hard-errors={yes|no}] [--ignore-exit]
|
||||
[--diagnostic-string=STRING] [--merge|--no-merge]
|
||||
[--comments|--no-comments] [--] TEST-COMMAND
|
||||
The \`--test-name', \`--log-file' and \`--trs-file' options are mandatory.
|
||||
END
|
||||
}
|
||||
|
||||
# TODO: better error handling in option parsing (in particular, ensure
|
||||
# TODO: $log_file, $trs_file and $test_name are defined).
|
||||
test_name= # Used for reporting.
|
||||
log_file= # Where to save the result and output of the test script.
|
||||
trs_file= # Where to save the metadata of the test run.
|
||||
expect_failure=0
|
||||
color_tests=0
|
||||
merge=0
|
||||
ignore_exit=0
|
||||
comments=0
|
||||
diag_string='#'
|
||||
while test $# -gt 0; do
|
||||
case $1 in
|
||||
--help) print_usage; exit $?;;
|
||||
--version) echo "$me $scriptversion"; exit $?;;
|
||||
--test-name) test_name=$2; shift;;
|
||||
--log-file) log_file=$2; shift;;
|
||||
--trs-file) trs_file=$2; shift;;
|
||||
--color-tests) color_tests=$2; shift;;
|
||||
--expect-failure) expect_failure=$2; shift;;
|
||||
--enable-hard-errors) shift;; # No-op.
|
||||
--merge) merge=1;;
|
||||
--no-merge) merge=0;;
|
||||
--ignore-exit) ignore_exit=1;;
|
||||
--comments) comments=1;;
|
||||
--no-comments) comments=0;;
|
||||
--diagnostic-string) diag_string=$2; shift;;
|
||||
--) shift; break;;
|
||||
-*) usage_error "invalid option: '$1'";;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
test $# -gt 0 || usage_error "missing test command"
|
||||
|
||||
case $expect_failure in
|
||||
yes) expect_failure=1;;
|
||||
*) expect_failure=0;;
|
||||
esac
|
||||
|
||||
if test $color_tests = yes; then
|
||||
init_colors='
|
||||
color_map["red"]="[0;31m" # Red.
|
||||
color_map["grn"]="[0;32m" # Green.
|
||||
color_map["lgn"]="[1;32m" # Light green.
|
||||
color_map["blu"]="[1;34m" # Blue.
|
||||
color_map["mgn"]="[0;35m" # Magenta.
|
||||
color_map["std"]="[m" # No color.
|
||||
color_for_result["ERROR"] = "mgn"
|
||||
color_for_result["PASS"] = "grn"
|
||||
color_for_result["XPASS"] = "red"
|
||||
color_for_result["FAIL"] = "red"
|
||||
color_for_result["XFAIL"] = "lgn"
|
||||
color_for_result["SKIP"] = "blu"'
|
||||
else
|
||||
init_colors=''
|
||||
fi
|
||||
|
||||
# :; is there to work around a bug in bash 3.2 (and earlier) which
|
||||
# does not always set '$?' properly on redirection failure.
|
||||
# See the Autoconf manual for more details.
|
||||
:;{
|
||||
(
|
||||
# Ignore common signals (in this subshell only!), to avoid potential
|
||||
# problems with Korn shells. Some Korn shells are known to propagate
|
||||
# to themselves signals that have killed a child process they were
|
||||
# waiting for; this is done at least for SIGINT (and usually only for
|
||||
# it, in truth). Without the `trap' below, such a behaviour could
|
||||
# cause a premature exit in the current subshell, e.g., in case the
|
||||
# test command it runs gets terminated by a SIGINT. Thus, the awk
|
||||
# script we are piping into would never seen the exit status it
|
||||
# expects on its last input line (which is displayed below by the
|
||||
# last `echo $?' statement), and would thus die reporting an internal
|
||||
# error.
|
||||
# For more information, see the Autoconf manual and the threads:
|
||||
# <http://lists.gnu.org/archive/html/bug-autoconf/2011-09/msg00004.html>
|
||||
# <http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2009-February/004121.html>
|
||||
trap : 1 3 2 13 15
|
||||
if test $merge -gt 0; then
|
||||
exec 2>&1
|
||||
else
|
||||
exec 2>&3
|
||||
fi
|
||||
"$@"
|
||||
echo $?
|
||||
) | LC_ALL=C ${AM_TAP_AWK-awk} \
|
||||
-v me="$me" \
|
||||
-v test_script_name="$test_name" \
|
||||
-v log_file="$log_file" \
|
||||
-v trs_file="$trs_file" \
|
||||
-v expect_failure="$expect_failure" \
|
||||
-v merge="$merge" \
|
||||
-v ignore_exit="$ignore_exit" \
|
||||
-v comments="$comments" \
|
||||
-v diag_string="$diag_string" \
|
||||
'
|
||||
# FIXME: the usages of "cat >&3" below could be optimized when using
|
||||
# FIXME: GNU awk, and/or on systems that supports /dev/fd/.
|
||||
|
||||
# Implementation note: in what follows, `result_obj` will be an
|
||||
# associative array that (partly) simulates a TAP result object
|
||||
# from the `TAP::Parser` perl module.
|
||||
|
||||
## ----------- ##
|
||||
## FUNCTIONS ##
|
||||
## ----------- ##
|
||||
|
||||
function fatal(msg)
|
||||
{
|
||||
print me ": " msg | "cat >&2"
|
||||
exit 1
|
||||
}
|
||||
|
||||
function abort(where)
|
||||
{
|
||||
fatal("internal error " where)
|
||||
}
|
||||
|
||||
# Convert a boolean to a "yes"/"no" string.
|
||||
function yn(bool)
|
||||
{
|
||||
return bool ? "yes" : "no";
|
||||
}
|
||||
|
||||
function add_test_result(result)
|
||||
{
|
||||
if (!test_results_index)
|
||||
test_results_index = 0
|
||||
test_results_list[test_results_index] = result
|
||||
test_results_index += 1
|
||||
test_results_seen[result] = 1;
|
||||
}
|
||||
|
||||
# Whether the test script should be re-run by "make recheck".
|
||||
function must_recheck()
|
||||
{
|
||||
for (k in test_results_seen)
|
||||
if (k != "XFAIL" && k != "PASS" && k != "SKIP")
|
||||
return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
# Whether the content of the log file associated to this test should
|
||||
# be copied into the "global" test-suite.log.
|
||||
function copy_in_global_log()
|
||||
{
|
||||
for (k in test_results_seen)
|
||||
if (k != "PASS")
|
||||
return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
# FIXME: this can certainly be improved ...
|
||||
function get_global_test_result()
|
||||
{
|
||||
if ("ERROR" in test_results_seen)
|
||||
return "ERROR"
|
||||
if ("FAIL" in test_results_seen || "XPASS" in test_results_seen)
|
||||
return "FAIL"
|
||||
all_skipped = 1
|
||||
for (k in test_results_seen)
|
||||
if (k != "SKIP")
|
||||
all_skipped = 0
|
||||
if (all_skipped)
|
||||
return "SKIP"
|
||||
return "PASS";
|
||||
}
|
||||
|
||||
function stringify_result_obj(result_obj)
|
||||
{
|
||||
if (result_obj["is_unplanned"] || result_obj["number"] != testno)
|
||||
return "ERROR"
|
||||
|
||||
if (plan_seen == LATE_PLAN)
|
||||
return "ERROR"
|
||||
|
||||
if (result_obj["directive"] == "TODO")
|
||||
return result_obj["is_ok"] ? "XPASS" : "XFAIL"
|
||||
|
||||
if (result_obj["directive"] == "SKIP")
|
||||
return result_obj["is_ok"] ? "SKIP" : COOKED_FAIL;
|
||||
|
||||
if (length(result_obj["directive"]))
|
||||
abort("in function stringify_result_obj()")
|
||||
|
||||
return result_obj["is_ok"] ? COOKED_PASS : COOKED_FAIL
|
||||
}
|
||||
|
||||
function decorate_result(result)
|
||||
{
|
||||
color_name = color_for_result[result]
|
||||
if (color_name)
|
||||
return color_map[color_name] "" result "" color_map["std"]
|
||||
# If we are not using colorized output, or if we do not know how
|
||||
# to colorize the given result, we should return it unchanged.
|
||||
return result
|
||||
}
|
||||
|
||||
function report(result, details)
|
||||
{
|
||||
if (result ~ /^(X?(PASS|FAIL)|SKIP|ERROR)/)
|
||||
{
|
||||
msg = ": " test_script_name
|
||||
add_test_result(result)
|
||||
}
|
||||
else if (result == "#")
|
||||
{
|
||||
msg = " " test_script_name ":"
|
||||
}
|
||||
else
|
||||
{
|
||||
abort("in function report()")
|
||||
}
|
||||
if (length(details))
|
||||
msg = msg " " details
|
||||
# Output on console might be colorized.
|
||||
print decorate_result(result) msg
|
||||
# Log the result in the log file too, to help debugging (this is
|
||||
# especially true when said result is a TAP error or "Bail out!").
|
||||
print result msg | "cat >&3";
|
||||
}
|
||||
|
||||
function testsuite_error(error_message)
|
||||
{
|
||||
report("ERROR", "- " error_message)
|
||||
}
|
||||
|
||||
function handle_tap_result()
|
||||
{
|
||||
details = result_obj["number"];
|
||||
if (length(result_obj["description"]))
|
||||
details = details " " result_obj["description"]
|
||||
|
||||
if (plan_seen == LATE_PLAN)
|
||||
{
|
||||
details = details " # AFTER LATE PLAN";
|
||||
}
|
||||
else if (result_obj["is_unplanned"])
|
||||
{
|
||||
details = details " # UNPLANNED";
|
||||
}
|
||||
else if (result_obj["number"] != testno)
|
||||
{
|
||||
details = sprintf("%s # OUT-OF-ORDER (expecting %d)",
|
||||
details, testno);
|
||||
}
|
||||
else if (result_obj["directive"])
|
||||
{
|
||||
details = details " # " result_obj["directive"];
|
||||
if (length(result_obj["explanation"]))
|
||||
details = details " " result_obj["explanation"]
|
||||
}
|
||||
|
||||
report(stringify_result_obj(result_obj), details)
|
||||
}
|
||||
|
||||
# `skip_reason` should be empty whenever planned > 0.
|
||||
function handle_tap_plan(planned, skip_reason)
|
||||
{
|
||||
planned += 0 # Avoid getting confused if, say, `planned` is "00"
|
||||
if (length(skip_reason) && planned > 0)
|
||||
abort("in function handle_tap_plan()")
|
||||
if (plan_seen)
|
||||
{
|
||||
# Error, only one plan per stream is acceptable.
|
||||
testsuite_error("multiple test plans")
|
||||
return;
|
||||
}
|
||||
planned_tests = planned
|
||||
# The TAP plan can come before or after *all* the TAP results; we speak
|
||||
# respectively of an "early" or a "late" plan. If we see the plan line
|
||||
# after at least one TAP result has been seen, assume we have a late
|
||||
# plan; in this case, any further test result seen after the plan will
|
||||
# be flagged as an error.
|
||||
plan_seen = (testno >= 1 ? LATE_PLAN : EARLY_PLAN)
|
||||
# If testno > 0, we have an error ("too many tests run") that will be
|
||||
# automatically dealt with later, so do not worry about it here. If
|
||||
# $plan_seen is true, we have an error due to a repeated plan, and that
|
||||
# has already been dealt with above. Otherwise, we have a valid "plan
|
||||
# with SKIP" specification, and should report it as a particular kind
|
||||
# of SKIP result.
|
||||
if (planned == 0 && testno == 0)
|
||||
{
|
||||
if (length(skip_reason))
|
||||
skip_reason = "- " skip_reason;
|
||||
report("SKIP", skip_reason);
|
||||
}
|
||||
}
|
||||
|
||||
function extract_tap_comment(line)
|
||||
{
|
||||
if (index(line, diag_string) == 1)
|
||||
{
|
||||
# Strip leading `diag_string` from `line`.
|
||||
line = substr(line, length(diag_string) + 1)
|
||||
# And strip any leading and trailing whitespace left.
|
||||
sub("^[ \t]*", "", line)
|
||||
sub("[ \t]*$", "", line)
|
||||
# Return what is left (if any).
|
||||
return line;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
# When this function is called, we know that line is a TAP result line,
|
||||
# so that it matches the (perl) RE "^(not )?ok\b".
|
||||
function setup_result_obj(line)
|
||||
{
|
||||
# Get the result, and remove it from the line.
|
||||
result_obj["is_ok"] = (substr(line, 1, 2) == "ok" ? 1 : 0)
|
||||
sub("^(not )?ok[ \t]*", "", line)
|
||||
|
||||
# If the result has an explicit number, get it and strip it; otherwise,
|
||||
# automatically assing the next progresive number to it.
|
||||
if (line ~ /^[0-9]+$/ || line ~ /^[0-9]+[^a-zA-Z0-9_]/)
|
||||
{
|
||||
match(line, "^[0-9]+")
|
||||
# The final `+ 0` is to normalize numbers with leading zeros.
|
||||
result_obj["number"] = substr(line, 1, RLENGTH) + 0
|
||||
line = substr(line, RLENGTH + 1)
|
||||
}
|
||||
else
|
||||
{
|
||||
result_obj["number"] = testno
|
||||
}
|
||||
|
||||
if (plan_seen == LATE_PLAN)
|
||||
# No further test results are acceptable after a "late" TAP plan
|
||||
# has been seen.
|
||||
result_obj["is_unplanned"] = 1
|
||||
else if (plan_seen && testno > planned_tests)
|
||||
result_obj["is_unplanned"] = 1
|
||||
else
|
||||
result_obj["is_unplanned"] = 0
|
||||
|
||||
# Strip trailing and leading whitespace.
|
||||
sub("^[ \t]*", "", line)
|
||||
sub("[ \t]*$", "", line)
|
||||
|
||||
# This will have to be corrected if we have a "TODO"/"SKIP" directive.
|
||||
result_obj["description"] = line
|
||||
result_obj["directive"] = ""
|
||||
result_obj["explanation"] = ""
|
||||
|
||||
if (index(line, "#") == 0)
|
||||
return # No possible directive, nothing more to do.
|
||||
|
||||
# Directives are case-insensitive.
|
||||
rx = "[ \t]*#[ \t]*([tT][oO][dD][oO]|[sS][kK][iI][pP])[ \t]*"
|
||||
|
||||
# See whether we have the directive, and if yes, where.
|
||||
pos = match(line, rx "$")
|
||||
if (!pos)
|
||||
pos = match(line, rx "[^a-zA-Z0-9_]")
|
||||
|
||||
# If there was no TAP directive, we have nothing more to do.
|
||||
if (!pos)
|
||||
return
|
||||
|
||||
# Let`s now see if the TAP directive has been escaped. For example:
|
||||
# escaped: ok \# SKIP
|
||||
# not escaped: ok \\# SKIP
|
||||
# escaped: ok \\\\\# SKIP
|
||||
# not escaped: ok \ # SKIP
|
||||
if (substr(line, pos, 1) == "#")
|
||||
{
|
||||
bslash_count = 0
|
||||
for (i = pos; i > 1 && substr(line, i - 1, 1) == "\\"; i--)
|
||||
bslash_count += 1
|
||||
if (bslash_count % 2)
|
||||
return # Directive was escaped.
|
||||
}
|
||||
|
||||
# Strip the directive and its explanation (if any) from the test
|
||||
# description.
|
||||
result_obj["description"] = substr(line, 1, pos - 1)
|
||||
# Now remove the test description from the line, that has been dealt
|
||||
# with already.
|
||||
line = substr(line, pos)
|
||||
# Strip the directive, and save its value (normalized to upper case).
|
||||
sub("^[ \t]*#[ \t]*", "", line)
|
||||
result_obj["directive"] = toupper(substr(line, 1, 4))
|
||||
line = substr(line, 5)
|
||||
# Now get the explanation for the directive (if any), with leading
|
||||
# and trailing whitespace removed.
|
||||
sub("^[ \t]*", "", line)
|
||||
sub("[ \t]*$", "", line)
|
||||
result_obj["explanation"] = line
|
||||
}
|
||||
|
||||
function get_test_exit_message(status)
|
||||
{
|
||||
if (status == 0)
|
||||
return ""
|
||||
if (status !~ /^[1-9][0-9]*$/)
|
||||
abort("getting exit status")
|
||||
if (status < 127)
|
||||
exit_details = ""
|
||||
else if (status == 127)
|
||||
exit_details = " (command not found?)"
|
||||
else if (status >= 128 && status <= 255)
|
||||
exit_details = sprintf(" (terminated by signal %d?)", status - 128)
|
||||
else if (status > 256 && status <= 384)
|
||||
# We used to report an "abnormal termination" here, but some Korn
|
||||
# shells, when a child process die due to signal number n, can leave
|
||||
# in $? an exit status of 256+n instead of the more standard 128+n.
|
||||
# Apparently, both behaviours are allowed by POSIX (2008), so be
|
||||
# prepared to handle them both. See also Austing Group report ID
|
||||
# 0000051 <http://www.austingroupbugs.net/view.php?id=51>
|
||||
exit_details = sprintf(" (terminated by signal %d?)", status - 256)
|
||||
else
|
||||
# Never seen in practice.
|
||||
exit_details = " (abnormal termination)"
|
||||
return sprintf("exited with status %d%s", status, exit_details)
|
||||
}
|
||||
|
||||
function write_test_results()
|
||||
{
|
||||
print ":global-test-result: " get_global_test_result() > trs_file
|
||||
print ":recheck: " yn(must_recheck()) > trs_file
|
||||
print ":copy-in-global-log: " yn(copy_in_global_log()) > trs_file
|
||||
for (i = 0; i < test_results_index; i += 1)
|
||||
print ":test-result: " test_results_list[i] > trs_file
|
||||
close(trs_file);
|
||||
}
|
||||
|
||||
BEGIN {
|
||||
|
||||
## ------- ##
|
||||
## SETUP ##
|
||||
## ------- ##
|
||||
|
||||
'"$init_colors"'
|
||||
|
||||
# Properly initialized once the TAP plan is seen.
|
||||
planned_tests = 0
|
||||
|
||||
COOKED_PASS = expect_failure ? "XPASS": "PASS";
|
||||
COOKED_FAIL = expect_failure ? "XFAIL": "FAIL";
|
||||
|
||||
# Enumeration-like constants to remember which kind of plan (if any)
|
||||
# has been seen. It is important that NO_PLAN evaluates "false" as
|
||||
# a boolean.
|
||||
NO_PLAN = 0
|
||||
EARLY_PLAN = 1
|
||||
LATE_PLAN = 2
|
||||
|
||||
testno = 0 # Number of test results seen so far.
|
||||
bailed_out = 0 # Whether a "Bail out!" directive has been seen.
|
||||
|
||||
# Whether the TAP plan has been seen or not, and if yes, which kind
|
||||
# it is ("early" is seen before any test result, "late" otherwise).
|
||||
plan_seen = NO_PLAN
|
||||
|
||||
## --------- ##
|
||||
## PARSING ##
|
||||
## --------- ##
|
||||
|
||||
is_first_read = 1
|
||||
|
||||
while (1)
|
||||
{
|
||||
# Involutions required so that we are able to read the exit status
|
||||
# from the last input line.
|
||||
st = getline
|
||||
if (st < 0) # I/O error.
|
||||
fatal("I/O error while reading from input stream")
|
||||
else if (st == 0) # End-of-input
|
||||
{
|
||||
if (is_first_read)
|
||||
abort("in input loop: only one input line")
|
||||
break
|
||||
}
|
||||
if (is_first_read)
|
||||
{
|
||||
is_first_read = 0
|
||||
nextline = $0
|
||||
continue
|
||||
}
|
||||
else
|
||||
{
|
||||
curline = nextline
|
||||
nextline = $0
|
||||
$0 = curline
|
||||
}
|
||||
# Copy any input line verbatim into the log file.
|
||||
print | "cat >&3"
|
||||
# Parsing of TAP input should stop after a "Bail out!" directive.
|
||||
if (bailed_out)
|
||||
continue
|
||||
|
||||
# TAP test result.
|
||||
if ($0 ~ /^(not )?ok$/ || $0 ~ /^(not )?ok[^a-zA-Z0-9_]/)
|
||||
{
|
||||
testno += 1
|
||||
setup_result_obj($0)
|
||||
handle_tap_result()
|
||||
}
|
||||
# TAP plan (normal or "SKIP" without explanation).
|
||||
else if ($0 ~ /^1\.\.[0-9]+[ \t]*$/)
|
||||
{
|
||||
# The next two lines will put the number of planned tests in $0.
|
||||
sub("^1\\.\\.", "")
|
||||
sub("[^0-9]*$", "")
|
||||
handle_tap_plan($0, "")
|
||||
continue
|
||||
}
|
||||
# TAP "SKIP" plan, with an explanation.
|
||||
else if ($0 ~ /^1\.\.0+[ \t]*#/)
|
||||
{
|
||||
# The next lines will put the skip explanation in $0, stripping
|
||||
# any leading and trailing whitespace. This is a little more
|
||||
# tricky in truth, since we want to also strip a potential leading
|
||||
# "SKIP" string from the message.
|
||||
sub("^[^#]*#[ \t]*(SKIP[: \t][ \t]*)?", "")
|
||||
sub("[ \t]*$", "");
|
||||
handle_tap_plan(0, $0)
|
||||
}
|
||||
# "Bail out!" magic.
|
||||
# Older versions of prove and TAP::Harness (e.g., 3.17) did not
|
||||
# recognize a "Bail out!" directive when preceded by leading
|
||||
# whitespace, but more modern versions (e.g., 3.23) do. So we
|
||||
# emulate the latter, "more modern" behaviour.
|
||||
else if ($0 ~ /^[ \t]*Bail out!/)
|
||||
{
|
||||
bailed_out = 1
|
||||
# Get the bailout message (if any), with leading and trailing
|
||||
# whitespace stripped. The message remains stored in `$0`.
|
||||
sub("^[ \t]*Bail out![ \t]*", "");
|
||||
sub("[ \t]*$", "");
|
||||
# Format the error message for the
|
||||
bailout_message = "Bail out!"
|
||||
if (length($0))
|
||||
bailout_message = bailout_message " " $0
|
||||
testsuite_error(bailout_message)
|
||||
}
|
||||
# Maybe we have too look for dianogtic comments too.
|
||||
else if (comments != 0)
|
||||
{
|
||||
comment = extract_tap_comment($0);
|
||||
if (length(comment))
|
||||
report("#", comment);
|
||||
}
|
||||
}
|
||||
|
||||
## -------- ##
|
||||
## FINISH ##
|
||||
## -------- ##
|
||||
|
||||
# A "Bail out!" directive should cause us to ignore any following TAP
|
||||
# error, as well as a non-zero exit status from the TAP producer.
|
||||
if (!bailed_out)
|
||||
{
|
||||
if (!plan_seen)
|
||||
{
|
||||
testsuite_error("missing test plan")
|
||||
}
|
||||
else if (planned_tests != testno)
|
||||
{
|
||||
bad_amount = testno > planned_tests ? "many" : "few"
|
||||
testsuite_error(sprintf("too %s tests run (expected %d, got %d)",
|
||||
bad_amount, planned_tests, testno))
|
||||
}
|
||||
if (!ignore_exit)
|
||||
{
|
||||
# Fetch exit status from the last line.
|
||||
exit_message = get_test_exit_message(nextline)
|
||||
if (exit_message)
|
||||
testsuite_error(exit_message)
|
||||
}
|
||||
}
|
||||
|
||||
write_test_results()
|
||||
|
||||
exit 0
|
||||
|
||||
} # End of "BEGIN" block.
|
||||
'
|
||||
|
||||
# TODO: document that we consume the file descriptor 3 :-(
|
||||
} 3>"$log_file"
|
||||
|
||||
test $? -eq 0 || fatal "I/O or internal error"
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
# from https://gitlab.gnome.org/GNOME/glib/-/blob/glib-2-58/tap-test
|
||||
|
||||
# run a GTest in tap mode. The test binary is passed as $1
|
||||
|
||||
$1 -k --tap
|
||||
2
linux/ibus-keyman/tests/.gitignore
vendored
2
linux/ibus-keyman/tests/.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
|||
.libs/
|
||||
ibus-keyman-tests
|
||||
|
|
@ -1,129 +0,0 @@
|
|||
# vim:set noet ts=4:
|
||||
#
|
||||
# ibus-keyman unit tests
|
||||
#
|
||||
# Copyright (c) 2021 SIL International
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include $(top_srcdir)/glib-tap.mk
|
||||
|
||||
AUTOMAKE_OPTIONS = subdir-objects
|
||||
|
||||
AM_CFLAGS = \
|
||||
@IBUS_CFLAGS@ \
|
||||
@GTK_CFLAGS@ \
|
||||
@JSON_GLIB_CFLAGS@ \
|
||||
@X11_CFLAGS@ \
|
||||
@KEYMAN_PROC_CFLAGS@ \
|
||||
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
||||
$(NULL)
|
||||
|
||||
AM_LDFLAGS = \
|
||||
@IBUS_LIBS@ \
|
||||
@GTK_LIBS@ \
|
||||
@X11_LIBS@ \
|
||||
@JSON_GLIB_LIBS@ \
|
||||
@KEYMAN_PROC_LIBS@ \
|
||||
$(NULL)
|
||||
|
||||
libexec_PROGRAMS = ibus-keyman-tests
|
||||
|
||||
uninstalled_test_scripts = run-tests.sh
|
||||
|
||||
# Note: don't use $(top_srcdir) here for the first `..` - automake <= 1.15 (Ubuntu 18.04)
|
||||
# has a bug where it doesn't resolve the variable and so stores some files in the wrong
|
||||
# location and can't find them later. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=13928
|
||||
# Once we drop support for Ubuntu 18.04 Bionic we change this.
|
||||
|
||||
ibus_keyman_tests_SOURCES = \
|
||||
ibusimcontext.c \
|
||||
ibusimcontext.h \
|
||||
testfixture.cpp \
|
||||
testmodule.c \
|
||||
testmodule.h \
|
||||
../../../core/src/jsonpp.cpp \
|
||||
../../../core/src/keyboard.cpp \
|
||||
../../../core/src/kmx/kmx_actions.cpp \
|
||||
../../../core/src/kmx/kmx_actions.h \
|
||||
../../../core/src/kmx/kmx_base.h \
|
||||
../../../core/src/kmx/kmx_capslock.cpp \
|
||||
../../../core/src/kmx/kmx_consts.cpp \
|
||||
../../../core/src/kmx/kmx_context.cpp \
|
||||
../../../core/src/kmx/kmx_context.h \
|
||||
../../../core/src/kmx/kmx_conversion.cpp \
|
||||
../../../core/src/kmx/kmx_debug.cpp \
|
||||
../../../core/src/kmx/kmx_debugger.cpp \
|
||||
../../../core/src/kmx/kmx_debugger.h \
|
||||
../../../core/src/kmx/kmx_environment.cpp \
|
||||
../../../core/src/kmx/kmx_environment.h \
|
||||
../../../core/src/kmx/kmx_file.cpp \
|
||||
../../../common/include/kmx_file.h \
|
||||
../../../core/src/kmx/kmx_modifiers.cpp \
|
||||
../../../core/src/kmx/kmx_options.cpp \
|
||||
../../../core/src/kmx/kmx_options.h \
|
||||
../../../core/src/kmx/kmx_processevent.cpp \
|
||||
../../../core/src/kmx/kmx_processevent.h \
|
||||
../../../core/src/kmx/kmx_processor.cpp \
|
||||
../../../core/src/kmx/kmx_processor.hpp \
|
||||
../../../core/src/kmx/kmx_xstring.cpp \
|
||||
../../../core/src/kmx/kmx_xstring.h \
|
||||
../../../core/src/option.cpp \
|
||||
../../../core/src/state.cpp \
|
||||
../../../core/src/utfcodec.cpp \
|
||||
../../../core/tests/unit/kmx/kmx_test_source.cpp \
|
||||
../../../core/tests/unit/kmx/kmx_test_source.hpp \
|
||||
../src/keycodes.h \
|
||||
../src/keymanutil.c \
|
||||
../src/keymanutil.h \
|
||||
../src/kmpdetails.c \
|
||||
../src/kmpdetails.h \
|
||||
$(NULL)
|
||||
|
||||
ibus_keyman_tests_CFLAGS = \
|
||||
@IBUS_CFLAGS@ \
|
||||
@GTK_CFLAGS@ \
|
||||
@X11_CFLAGS@ \
|
||||
@JSON_GLIB_CFLAGS@ \
|
||||
@KEYMAN_PROC_CFLAGS@ \
|
||||
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
||||
-I$(top_srcdir)/../../core/src \
|
||||
-I$(top_srcdir)/../../core/src/kmx \
|
||||
-I$(top_srcdir)/../../core/tests/unit/kmx \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_builddir)/src \
|
||||
$(NULL)
|
||||
|
||||
ibus_keyman_tests_CPPFLAGS = \
|
||||
@IBUS_CFLAGS@ \
|
||||
@GTK_CFLAGS@ \
|
||||
@X11_CFLAGS@ \
|
||||
@JSON_GLIB_CFLAGS@ \
|
||||
@KEYMAN_PROC_CFLAGS@ \
|
||||
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
||||
-I$(top_srcdir)/../../core/src \
|
||||
-I$(top_srcdir)/../../core/src/kmx \
|
||||
-I$(top_srcdir)/../../core/tests/unit/kmx \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_builddir)/src \
|
||||
$(NULL)
|
||||
|
||||
ibus_keyman_tests_LDFLAGS = \
|
||||
@GTK_LIBS@ \
|
||||
@IBUS_LIBS@ \
|
||||
@X11_LIBS@ \
|
||||
@JSON_GLIB_LIBS@ \
|
||||
@KEYMAN_PROC_LIBS@ \
|
||||
$(NULL)
|
||||
Loading…
Add table
Reference in a new issue