2012-10-25 17:51:46 -06:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
2012-03-23 20:48:31 -06:00
|
|
|
|
2009-04-01 07:22:06 -06:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = xkbcommon.pc
|
|
|
|
|
2013-08-29 10:07:25 -06:00
|
|
|
EXTRA_DIST = \
|
2017-07-29 05:37:23 -06:00
|
|
|
scripts/makeheader \
|
|
|
|
scripts/makekeys \
|
|
|
|
scripts/update-keysyms \
|
|
|
|
scripts/update-keywords \
|
2017-08-01 13:19:48 -06:00
|
|
|
scripts/doxygen-wrapper \
|
2014-02-11 08:44:11 -07:00
|
|
|
src/xkbcomp/keywords.gperf \
|
2014-03-27 12:37:21 -06:00
|
|
|
test/data \
|
|
|
|
README.md \
|
|
|
|
doc/quick-guide.md \
|
2014-10-18 04:50:54 -06:00
|
|
|
doc/compat.md \
|
2016-01-20 14:30:21 -07:00
|
|
|
doc/keymap-format-text-v1.md \
|
2014-10-18 05:50:49 -06:00
|
|
|
doc/rules-format.txt \
|
2014-10-18 06:07:37 -06:00
|
|
|
doc/doxygen-extra.css \
|
|
|
|
xkbcommon.map \
|
2014-10-18 06:51:41 -06:00
|
|
|
xkbcommon-x11.map \
|
2016-03-13 12:56:58 -06:00
|
|
|
PACKAGING \
|
2016-03-31 09:42:41 -06:00
|
|
|
LICENSE \
|
2017-08-01 14:36:33 -06:00
|
|
|
meson.build \
|
|
|
|
meson_options.txt \
|
2016-03-13 12:56:58 -06:00
|
|
|
test/symbols-leak-test.bash
|
2013-08-29 10:07:25 -06:00
|
|
|
|
2017-07-29 13:41:26 -06:00
|
|
|
# The constants are added here instead of using AC_DEFINE_UNQUOTED
|
|
|
|
# because it does not expand variables recursively.
|
2012-03-27 08:51:28 -06:00
|
|
|
AM_CPPFLAGS = \
|
2012-04-08 06:38:04 -06:00
|
|
|
-DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"' \
|
2014-09-12 09:44:30 -06:00
|
|
|
-DXLOCALEDIR='"$(XLOCALEDIR)"' \
|
2012-03-27 08:51:28 -06:00
|
|
|
-I$(top_srcdir)/src \
|
2017-07-31 09:16:37 -06:00
|
|
|
-I$(top_builddir)/src/xkbcomp \
|
2012-05-15 06:23:40 -06:00
|
|
|
-include $(top_builddir)/src/config.h
|
2012-04-08 06:38:04 -06:00
|
|
|
|
2012-09-21 10:48:33 -06:00
|
|
|
AM_CFLAGS = $(BASE_CFLAGS)
|
2012-04-08 06:38:04 -06:00
|
|
|
|
2013-08-02 01:21:52 -06:00
|
|
|
AM_LDFLAGS = -no-undefined
|
2014-01-13 09:19:36 -07:00
|
|
|
if HAVE_NO_UNDEFINED
|
|
|
|
AM_LDFLAGS += -Wl,--no-undefined
|
|
|
|
endif
|
2013-08-02 01:21:52 -06:00
|
|
|
|
2013-09-28 15:24:50 -06:00
|
|
|
AM_YFLAGS = -d -p _xkbcommon_
|
2012-03-23 20:48:31 -06:00
|
|
|
|
|
|
|
xkbcommonincludedir = $(includedir)/xkbcommon
|
2012-05-08 10:59:35 -06:00
|
|
|
xkbcommoninclude_HEADERS = \
|
2012-07-22 15:41:27 -06:00
|
|
|
xkbcommon/xkbcommon.h \
|
2012-09-12 12:52:30 -06:00
|
|
|
xkbcommon/xkbcommon-compat.h \
|
2014-09-12 09:44:30 -06:00
|
|
|
xkbcommon/xkbcommon-compose.h \
|
2012-09-12 12:52:30 -06:00
|
|
|
xkbcommon/xkbcommon-keysyms.h \
|
|
|
|
xkbcommon/xkbcommon-names.h
|
2012-03-23 20:48:31 -06:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libxkbcommon.la
|
|
|
|
libxkbcommon_la_SOURCES = \
|
2014-09-12 09:44:30 -06:00
|
|
|
src/compose/parser.c \
|
|
|
|
src/compose/parser.h \
|
|
|
|
src/compose/paths.c \
|
|
|
|
src/compose/paths.h \
|
|
|
|
src/compose/state.c \
|
|
|
|
src/compose/table.c \
|
|
|
|
src/compose/table.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/action.c \
|
|
|
|
src/xkbcomp/action.h \
|
2012-08-13 02:00:43 -06:00
|
|
|
src/xkbcomp/ast.h \
|
|
|
|
src/xkbcomp/ast-build.c \
|
|
|
|
src/xkbcomp/ast-build.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/compat.c \
|
|
|
|
src/xkbcomp/expr.c \
|
|
|
|
src/xkbcomp/expr.h \
|
2012-08-13 02:00:43 -06:00
|
|
|
src/xkbcomp/include.c \
|
|
|
|
src/xkbcomp/include.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/keycodes.c \
|
2012-08-29 06:02:40 -06:00
|
|
|
src/xkbcomp/keymap.c \
|
2013-03-01 12:48:02 -07:00
|
|
|
src/xkbcomp/keymap-dump.c \
|
Replace flex scanner with a hand-written one
The scanner is very similar in structure to the one in xkbcomp/rules.c.
It avoids copying and has nicer error reporting.
It uses gperf to generate a hashtable for the keywords, which gives a
nice speed boost (compared to the naive strcasecmp method at least). But
since there's hardly a reason to regenerate it every time and require
people to install gperf, the output (keywords.c) is added here as well.
Here are some stats from test/rulescomp:
Before:
compiled 1000 keymaps in 4.052939625s
==22063== total heap usage: 101,101 allocs, 101,101 frees, 11,840,834 bytes allocated
After:
compiled 1000 keymaps in 3.519665434s
==26505== total heap usage: 99,945 allocs, 99,945 frees, 7,033,608 bytes allocated
Signed-off-by: Ran Benita <ran234@gmail.com>
2012-08-12 02:40:02 -06:00
|
|
|
src/xkbcomp/keywords.c \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/parser.y \
|
2012-08-13 02:00:43 -06:00
|
|
|
src/xkbcomp/parser-priv.h \
|
2012-05-13 00:49:08 -06:00
|
|
|
src/xkbcomp/rules.c \
|
|
|
|
src/xkbcomp/rules.h \
|
Replace flex scanner with a hand-written one
The scanner is very similar in structure to the one in xkbcomp/rules.c.
It avoids copying and has nicer error reporting.
It uses gperf to generate a hashtable for the keywords, which gives a
nice speed boost (compared to the naive strcasecmp method at least). But
since there's hardly a reason to regenerate it every time and require
people to install gperf, the output (keywords.c) is added here as well.
Here are some stats from test/rulescomp:
Before:
compiled 1000 keymaps in 4.052939625s
==22063== total heap usage: 101,101 allocs, 101,101 frees, 11,840,834 bytes allocated
After:
compiled 1000 keymaps in 3.519665434s
==26505== total heap usage: 99,945 allocs, 99,945 frees, 7,033,608 bytes allocated
Signed-off-by: Ran Benita <ran234@gmail.com>
2012-08-12 02:40:02 -06:00
|
|
|
src/xkbcomp/scanner.c \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/symbols.c \
|
2012-08-13 02:00:43 -06:00
|
|
|
src/xkbcomp/types.c \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/vmod.c \
|
|
|
|
src/xkbcomp/vmod.h \
|
|
|
|
src/xkbcomp/xkbcomp.c \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/xkbcomp-priv.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/atom.c \
|
2012-05-08 05:52:23 -06:00
|
|
|
src/atom.h \
|
2012-03-27 09:59:01 -06:00
|
|
|
src/context.c \
|
2012-09-16 05:45:32 -06:00
|
|
|
src/context.h \
|
2014-01-13 08:20:54 -07:00
|
|
|
src/context-priv.c \
|
2012-05-21 14:33:56 -06:00
|
|
|
src/darray.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/keysym.c \
|
2012-09-16 05:45:32 -06:00
|
|
|
src/keysym.h \
|
2012-06-08 06:10:28 -06:00
|
|
|
src/keysym-utf.c \
|
2012-10-17 11:52:47 -06:00
|
|
|
src/ks_tables.h \
|
2012-09-21 05:58:31 -06:00
|
|
|
src/keymap.c \
|
|
|
|
src/keymap.h \
|
2014-01-13 08:07:41 -07:00
|
|
|
src/keymap-priv.c \
|
2013-10-27 12:10:15 -06:00
|
|
|
src/scanner-utils.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/state.c \
|
|
|
|
src/text.c \
|
2012-05-08 05:52:23 -06:00
|
|
|
src/text.h \
|
2014-02-09 04:50:21 -07:00
|
|
|
src/utf8.c \
|
|
|
|
src/utf8.h \
|
2013-03-14 06:33:40 -06:00
|
|
|
src/utils.c \
|
2012-09-16 05:45:32 -06:00
|
|
|
src/utils.h
|
2015-07-17 14:26:20 -06:00
|
|
|
if HAVE_VERSION_SCRIPT
|
2017-07-31 02:24:28 -06:00
|
|
|
libxkbcommon_la_LDFLAGS = -Wl,--version-script=${top_srcdir}/xkbcommon.map
|
2015-07-17 14:26:20 -06:00
|
|
|
endif HAVE_VERSION_SCRIPT
|
2012-03-23 20:48:31 -06:00
|
|
|
|
2013-07-20 14:21:44 -06:00
|
|
|
if ENABLE_X11
|
|
|
|
pkgconfig_DATA += xkbcommon-x11.pc
|
|
|
|
|
|
|
|
xkbcommon_x11includedir = $(xkbcommonincludedir)
|
|
|
|
xkbcommon_x11include_HEADERS = \
|
|
|
|
xkbcommon/xkbcommon-x11.h
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += libxkbcommon-x11.la
|
|
|
|
|
|
|
|
libxkbcommon_x11_la_CFLAGS = $(AM_CFLAGS) $(XCB_XKB_CFLAGS)
|
2017-07-29 13:43:08 -06:00
|
|
|
libxkbcommon_x11_la_CPPFLAGS = $(AM_CPPFLAGS)
|
2013-07-20 14:21:44 -06:00
|
|
|
libxkbcommon_x11_la_LIBADD = libxkbcommon.la $(XCB_XKB_LIBS)
|
2015-07-17 14:26:20 -06:00
|
|
|
if HAVE_VERSION_SCRIPT
|
2017-07-31 02:24:28 -06:00
|
|
|
libxkbcommon_x11_la_LDFLAGS = -Wl,--version-script=${top_srcdir}/xkbcommon-x11.map
|
2015-07-17 14:26:20 -06:00
|
|
|
endif HAVE_VERSION_SCRIPT
|
2013-07-20 14:21:44 -06:00
|
|
|
|
|
|
|
libxkbcommon_x11_la_SOURCES = \
|
|
|
|
src/x11/keymap.c \
|
|
|
|
src/x11/state.c \
|
|
|
|
src/x11/util.c \
|
|
|
|
src/x11/x11-priv.h \
|
|
|
|
src/context.h \
|
|
|
|
src/context-priv.c \
|
|
|
|
src/keymap.h \
|
|
|
|
src/keymap-priv.c \
|
|
|
|
src/atom.h \
|
|
|
|
src/atom.c
|
|
|
|
endif ENABLE_X11
|
|
|
|
|
2012-03-27 08:51:28 -06:00
|
|
|
BUILT_SOURCES = \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/parser.c \
|
Replace flex scanner with a hand-written one
The scanner is very similar in structure to the one in xkbcomp/rules.c.
It avoids copying and has nicer error reporting.
It uses gperf to generate a hashtable for the keywords, which gives a
nice speed boost (compared to the naive strcasecmp method at least). But
since there's hardly a reason to regenerate it every time and require
people to install gperf, the output (keywords.c) is added here as well.
Here are some stats from test/rulescomp:
Before:
compiled 1000 keymaps in 4.052939625s
==22063== total heap usage: 101,101 allocs, 101,101 frees, 11,840,834 bytes allocated
After:
compiled 1000 keymaps in 3.519665434s
==26505== total heap usage: 99,945 allocs, 99,945 frees, 7,033,608 bytes allocated
Signed-off-by: Ran Benita <ran234@gmail.com>
2012-08-12 02:40:02 -06:00
|
|
|
src/xkbcomp/parser.h
|
2012-03-27 08:51:28 -06:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
2012-03-23 20:48:31 -06:00
|
|
|
|
2012-06-04 09:14:42 -06:00
|
|
|
src/xkbcomp/parser.c: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
|
|
|
|
src/xkbcomp/parser.h: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
|
2012-06-04 07:06:01 -06:00
|
|
|
|
2014-02-11 08:44:11 -07:00
|
|
|
##
|
2012-09-22 06:02:54 -06:00
|
|
|
# Documentation
|
2014-02-11 08:44:11 -07:00
|
|
|
##
|
2012-09-22 06:02:54 -06:00
|
|
|
|
|
|
|
if ENABLE_DOCS
|
|
|
|
if HAVE_DOXYGEN
|
2017-07-28 09:19:40 -06:00
|
|
|
doxygen_input = \
|
2017-08-02 09:26:19 -06:00
|
|
|
README.md \
|
|
|
|
doc/quick-guide.md \
|
|
|
|
doc/compat.md \
|
|
|
|
xkbcommon/xkbcommon.h \
|
|
|
|
xkbcommon/xkbcommon-names.h \
|
|
|
|
xkbcommon/xkbcommon-x11.h \
|
|
|
|
xkbcommon/xkbcommon-compose.h
|
2017-07-28 09:19:40 -06:00
|
|
|
|
|
|
|
doc/html: doc/Doxyfile $(doxygen_input)
|
|
|
|
$(AM_V_GEN)(\
|
|
|
|
cat $<; \
|
|
|
|
echo "INPUT = $(doxygen_input)"; \
|
|
|
|
echo "OUTPUT_DIRECTORY = $(abs_top_builddir)/doc"; \
|
2017-08-01 13:19:48 -06:00
|
|
|
) | $(top_srcdir)/scripts/doxygen-wrapper "$(DOXYGEN)" - "$(abs_top_srcdir)"
|
2017-07-28 09:19:40 -06:00
|
|
|
clean-doxygen:
|
|
|
|
rm -rf doc/html
|
|
|
|
|
|
|
|
doc: doc/html
|
2012-09-22 06:02:54 -06:00
|
|
|
clean-doc: clean-doxygen
|
|
|
|
all-local:: doc
|
|
|
|
clean-local:: clean-doc
|
|
|
|
|
|
|
|
install-data-local:: doc
|
2017-08-04 06:31:06 -06:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(htmldir)/html
|
|
|
|
$(INSTALL_DATA) doc/html/* $(DESTDIR)$(htmldir)/html
|
2012-09-22 06:02:54 -06:00
|
|
|
|
|
|
|
uninstall-local::
|
|
|
|
rm -rf $(DESTDIR)$(htmldir)
|
|
|
|
endif HAVE_DOXYGEN
|
|
|
|
endif ENABLE_DOCS
|
|
|
|
|
2014-02-11 08:44:11 -07:00
|
|
|
##
|
2012-03-30 17:44:39 -06:00
|
|
|
# Tests
|
2014-02-11 08:44:11 -07:00
|
|
|
##
|
2012-03-30 17:44:39 -06:00
|
|
|
|
2012-05-18 17:35:15 -06:00
|
|
|
# Some tests need to use unexported symbols, so we link them against
|
|
|
|
# a private copy of libxkbcommon with all symbols exposed.
|
2013-08-15 00:32:42 -06:00
|
|
|
check_LTLIBRARIES = libtest.la
|
2012-07-12 07:15:08 -06:00
|
|
|
libtest_la_SOURCES = \
|
|
|
|
$(libxkbcommon_la_SOURCES) \
|
2012-10-26 07:05:04 -06:00
|
|
|
test/common.c \
|
2014-09-06 02:29:15 -06:00
|
|
|
test/test.h \
|
|
|
|
test/evdev-scancodes.h
|
2012-05-18 17:35:15 -06:00
|
|
|
|
2012-08-30 11:23:35 -06:00
|
|
|
AM_TESTS_ENVIRONMENT = \
|
2012-10-12 02:15:43 -06:00
|
|
|
XKB_LOG_LEVEL=debug; export XKB_LOG_LEVEL; \
|
|
|
|
XKB_LOG_VERBOSITY=10; export XKB_LOG_VERBOSITY; \
|
2016-03-13 12:56:58 -06:00
|
|
|
$(XORG_MALLOC_DEBUG_ENV) \
|
|
|
|
top_srcdir=$(top_srcdir)
|
2012-03-30 17:44:39 -06:00
|
|
|
|
2016-03-13 13:32:28 -06:00
|
|
|
build_run_tests = \
|
2012-08-02 19:32:30 -06:00
|
|
|
test/keysym \
|
2016-01-20 09:40:43 -07:00
|
|
|
test/keymap \
|
2012-03-30 17:44:39 -06:00
|
|
|
test/filecomp \
|
2012-05-18 17:35:15 -06:00
|
|
|
test/context \
|
2012-05-25 10:05:39 -06:00
|
|
|
test/rules-file \
|
2012-04-10 12:20:27 -06:00
|
|
|
test/stringcomp \
|
2013-03-11 05:53:39 -06:00
|
|
|
test/buffercomp \
|
2013-12-02 05:16:45 -07:00
|
|
|
test/log \
|
2014-02-09 04:50:21 -07:00
|
|
|
test/atom \
|
2014-09-06 02:29:15 -06:00
|
|
|
test/utf8 \
|
|
|
|
test/state \
|
|
|
|
test/keyseq \
|
2013-10-27 12:37:27 -06:00
|
|
|
test/rulescomp \
|
|
|
|
test/compose
|
2016-03-13 13:32:28 -06:00
|
|
|
build_only_tests = \
|
2014-02-11 08:44:11 -07:00
|
|
|
test/rmlvo-to-kccgst \
|
2014-10-02 13:03:28 -06:00
|
|
|
test/print-compiled-keymap
|
2016-03-13 12:56:58 -06:00
|
|
|
run_only_tests = \
|
|
|
|
test/symbols-leak-test.bash
|
2014-02-11 08:44:11 -07:00
|
|
|
|
2012-07-12 07:15:08 -06:00
|
|
|
TESTS_LDADD = libtest.la
|
2012-03-30 17:44:39 -06:00
|
|
|
|
2012-08-02 19:32:30 -06:00
|
|
|
test_keysym_LDADD = $(TESTS_LDADD)
|
2016-01-20 09:40:43 -07:00
|
|
|
test_keymap_LDADD = $(TESTS_LDADD)
|
2012-03-30 17:44:39 -06:00
|
|
|
test_filecomp_LDADD = $(TESTS_LDADD)
|
|
|
|
test_context_LDADD = $(TESTS_LDADD)
|
2012-05-18 17:35:15 -06:00
|
|
|
test_rules_file_CFLAGS = $(AM_CFLAGS) -Wno-declaration-after-statement
|
2014-10-02 13:03:28 -06:00
|
|
|
test_rules_file_LDADD = $(TESTS_LDADD)
|
2012-05-29 08:08:35 -06:00
|
|
|
test_stringcomp_LDADD = $(TESTS_LDADD)
|
2013-03-11 05:53:39 -06:00
|
|
|
test_buffercomp_LDADD = $(TESTS_LDADD)
|
2012-07-22 10:38:14 -06:00
|
|
|
test_log_LDADD = $(TESTS_LDADD)
|
2013-12-02 05:16:45 -07:00
|
|
|
test_atom_LDADD = $(TESTS_LDADD)
|
2014-02-09 04:50:21 -07:00
|
|
|
test_utf8_LDADD = $(TESTS_LDADD)
|
2014-09-06 02:29:15 -06:00
|
|
|
test_state_LDADD = $(TESTS_LDADD)
|
|
|
|
test_keyseq_LDADD = $(TESTS_LDADD)
|
2014-10-02 13:03:28 -06:00
|
|
|
test_rulescomp_LDADD = $(TESTS_LDADD)
|
2012-08-29 02:54:05 -06:00
|
|
|
test_rmlvo_to_kccgst_LDADD = $(TESTS_LDADD)
|
2012-09-19 07:44:15 -06:00
|
|
|
test_print_compiled_keymap_LDADD = $(TESTS_LDADD)
|
2014-10-15 13:08:17 -06:00
|
|
|
test_compose_LDADD = $(TESTS_LDADD) $(RT_LIBS)
|
2012-03-30 17:44:39 -06:00
|
|
|
|
2013-03-02 10:01:18 -07:00
|
|
|
if BUILD_LINUX_TESTS
|
2016-03-13 13:32:28 -06:00
|
|
|
build_only_tests += \
|
2013-07-30 04:38:51 -06:00
|
|
|
test/interactive-evdev
|
2013-03-02 10:01:18 -07:00
|
|
|
|
2014-02-11 08:44:11 -07:00
|
|
|
test_interactive_evdev_LDADD = $(TESTS_LDADD)
|
2013-03-02 10:01:18 -07:00
|
|
|
endif BUILD_LINUX_TESTS
|
|
|
|
|
2013-07-30 06:06:40 -06:00
|
|
|
if ENABLE_X11
|
2016-03-13 13:32:28 -06:00
|
|
|
build_run_tests += \
|
2016-03-13 15:09:21 -06:00
|
|
|
test/x11
|
|
|
|
# test/x11comp is meant to be run, but it is (temporarily?) disabled.
|
|
|
|
# See: https://github.com/xkbcommon/libxkbcommon/issues/30
|
2016-03-13 13:32:28 -06:00
|
|
|
build_only_tests += \
|
2016-03-13 15:09:21 -06:00
|
|
|
test/x11comp \
|
2014-02-11 08:44:11 -07:00
|
|
|
test/interactive-x11
|
|
|
|
|
|
|
|
TESTS_X11_LDADD = $(XCB_XKB_LIBS) $(TESTS_LDADD) libxkbcommon-x11.la
|
2013-07-30 06:06:40 -06:00
|
|
|
TESTS_X11_CFLAGS = $(XCB_XKB_CFLAGS)
|
|
|
|
|
|
|
|
test_x11_LDADD = $(TESTS_X11_LDADD)
|
|
|
|
test_x11_CFLAGS = $(TESTS_X11_CFLAGS)
|
2014-08-09 13:14:34 -06:00
|
|
|
test_x11comp_LDADD = $(TESTS_X11_LDADD)
|
|
|
|
test_x11comp_CFLAGS = $(TESTS_X11_CFLAGS)
|
2013-07-30 06:06:40 -06:00
|
|
|
test_interactive_x11_LDADD = $(TESTS_X11_LDADD)
|
|
|
|
test_interactive_x11_CFLAGS = $(TESTS_X11_CFLAGS)
|
|
|
|
endif ENABLE_X11
|
|
|
|
|
2016-04-12 05:03:32 -06:00
|
|
|
if ENABLE_WAYLAND
|
|
|
|
build_only_tests += \
|
|
|
|
test/interactive-wayland
|
|
|
|
|
|
|
|
TESTS_WAYLAND_LDADD = $(WAYLAND_LIBS) $(TESTS_LDADD)
|
|
|
|
TESTS_WAYLAND_CFLAGS = $(WAYLAND_CFLAGS)
|
|
|
|
|
|
|
|
.SECONDEXPANSION:
|
|
|
|
|
|
|
|
define protostability
|
|
|
|
$(if $(findstring unstable,$1),unstable,stable)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define protoname
|
|
|
|
$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
|
|
|
|
endef
|
|
|
|
|
|
|
|
%-protocol.c: $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
|
|
|
|
%-client-protocol.h: $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
|
|
|
|
|
|
|
|
INTERACTIVE_WL_XDG_SHELL_SRCS = \
|
2017-04-11 08:09:50 -06:00
|
|
|
xdg-shell-unstable-v6-protocol.c \
|
|
|
|
xdg-shell-unstable-v6-client-protocol.h
|
2016-04-12 05:03:32 -06:00
|
|
|
|
|
|
|
test_interactive_wayland_SOURCES = \
|
|
|
|
test/interactive-wayland.c \
|
|
|
|
$(INTERACTIVE_WL_XDG_SHELL_SRCS)
|
|
|
|
test_interactive_wayland_LDADD = $(TESTS_WAYLAND_LDADD)
|
|
|
|
test_interactive_wayland_CFLAGS = $(TESTS_WAYLAND_CFLAGS)
|
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
|
|
|
$(INTERACTIVE_WL_XDG_SHELL_SRCS)
|
|
|
|
endif
|
|
|
|
|
2016-03-13 13:32:28 -06:00
|
|
|
check_PROGRAMS = $(build_run_tests) $(build_only_tests)
|
2016-03-13 12:56:58 -06:00
|
|
|
TESTS = $(build_run_tests) $(run_only_tests)
|
2014-02-11 08:44:11 -07:00
|
|
|
|
2014-10-02 13:03:28 -06:00
|
|
|
##
|
|
|
|
# Benchmarks
|
|
|
|
##
|
2015-08-23 22:33:32 -06:00
|
|
|
check_LTLIBRARIES += libbench.la
|
|
|
|
libbench_la_SOURCES = \
|
|
|
|
bench/bench.c \
|
|
|
|
bench/bench.h
|
|
|
|
BENCH_LDADD = libbench.la
|
|
|
|
BENCH_LDADD += $(TESTS_LDADD) $(RT_LIBS)
|
2014-10-02 13:03:28 -06:00
|
|
|
|
|
|
|
check_PROGRAMS += \
|
|
|
|
bench/key-proc \
|
|
|
|
bench/rules \
|
2014-10-02 15:30:43 -06:00
|
|
|
bench/rulescomp \
|
|
|
|
bench/compose
|
2014-10-02 13:03:28 -06:00
|
|
|
bench_key_proc_LDADD = $(BENCH_LDADD)
|
|
|
|
bench_rules_LDADD = $(BENCH_LDADD)
|
|
|
|
bench_rulescomp_LDADD = $(BENCH_LDADD)
|
2014-10-02 15:30:43 -06:00
|
|
|
bench_compose_LDADD = $(BENCH_LDADD)
|