mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
4ee05f8e21
The keysyms defines in clutter-keysyms.h are generated from the X11 key symbols headers by doing the equivalent of a pass of sed from XK_* to CLUTTER_*. This might lead to namespace collisions, down the road. Instead, we should use the CLUTTER_KEY_* namespace. This commit includes the script, taken from GDK, that parses the X11 key symbols and generates two headers: - clutter-keysyms.h: the default included header, with CLUTTER_KEY_* - clutter-keysyms-compat.h: the compatibility header, with CLUTTER_* The compat.h header file is included if CLUTTER_DISABLE_DEPRECATED is not defined - essentially deprecating all the old key symbols. This does not change any ABI and, assuming that an application or library is not compiling with CLUTTER_DISABLE_DEPRECATED, the source compatibility is still guaranteed.
128 lines
3.1 KiB
Makefile
128 lines
3.1 KiB
Makefile
include $(top_srcdir)/build/autotools/Makefile.am.silent
|
|
|
|
UNIT_TESTS = \
|
|
test-textures.c \
|
|
test-texture-async.c \
|
|
test-texture-material.c \
|
|
test-events.c \
|
|
test-offscreen.c \
|
|
test-scale.c \
|
|
test-actors.c \
|
|
test-actor-clone.c \
|
|
test-behave.c \
|
|
test-project.c \
|
|
test-rotate.c \
|
|
test-depth.c \
|
|
test-threads.c \
|
|
test-script.c \
|
|
test-model.c \
|
|
test-grab.c \
|
|
test-fullscreen.c \
|
|
test-shader.c \
|
|
test-cogl-shader-arbfp.c \
|
|
test-cogl-shader-glsl.c \
|
|
test-animator.c \
|
|
test-state.c \
|
|
test-state-animator.c \
|
|
test-unproject.c \
|
|
test-viewport.c \
|
|
test-fbo.c \
|
|
test-multistage.c \
|
|
test-cogl-primitives.c \
|
|
test-cogl-tex-tile.c \
|
|
test-cogl-tex-convert.c \
|
|
test-cogl-tex-foreign.c \
|
|
test-cogl-tex-getset.c \
|
|
test-cogl-offscreen.c \
|
|
test-cogl-tex-polygon.c \
|
|
test-cogl-multitexture.c \
|
|
test-stage-read-pixels.c \
|
|
test-clip.c \
|
|
test-paint-wrapper.c \
|
|
test-texture-quality.c \
|
|
test-layout.c \
|
|
test-animation.c \
|
|
test-easing.c \
|
|
test-binding-pool.c \
|
|
test-text.c \
|
|
test-text-field.c \
|
|
test-clutter-cairo-flowers.c \
|
|
test-cogl-vertex-buffer.c \
|
|
test-bin-layout.c \
|
|
test-flow-layout.c \
|
|
test-box-layout.c \
|
|
test-stage-sizing.c \
|
|
test-drag.c \
|
|
test-constraints.c \
|
|
test-scrolling.c \
|
|
test-bind.c \
|
|
test-cogl-point-sprites.c \
|
|
test-table-layout.c
|
|
|
|
if X11_TESTS
|
|
UNIT_TESTS += test-pixmap.c
|
|
UNIT_TESTS += test-devices.c
|
|
endif
|
|
|
|
# For convenience, this provides a way to easily run individual unit tests:
|
|
wrappers: stamp-test-interactive
|
|
@true
|
|
stamp-test-interactive: Makefile test-interactive$(EXEEXT)
|
|
@wrapper=$(abs_builddir)/wrapper.sh ; \
|
|
chmod +x $$wrapper && \
|
|
( echo "/stamp-test-interactive" ; \
|
|
echo "/test-interactive" ; \
|
|
echo "/wrapper.sh" ; \
|
|
echo "*.o" ; \
|
|
echo ".gitignore" ) > .gitignore ; \
|
|
for i in $(UNIT_TESTS); \
|
|
do \
|
|
test_bin=$${i%*.c} ; \
|
|
echo " GEN $$test_bin" ; \
|
|
( echo "#!/bin/sh" ; \
|
|
echo "$$wrapper $$test_bin \$$@" \
|
|
) > $$test_bin$(EXEEXT) ; \
|
|
chmod +x $$test_bin$(EXEEXT) ; \
|
|
echo "/$$test_bin$(EXEEXT)" >> .gitignore ; \
|
|
done \
|
|
&& echo timestamp > $(@F)
|
|
|
|
clean-wrappers:
|
|
@for i in $(UNIT_TESTS); \
|
|
do \
|
|
test_bin=$${i%*.c} ; \
|
|
echo " RM $$test_bin"; \
|
|
rm -f $$test_bin$(EXEEXT); \
|
|
done \
|
|
&& rm -f stamp-test-interactive
|
|
|
|
.PHONY: wrappers clean-wrappers
|
|
|
|
INCLUDES = \
|
|
-I$(top_srcdir) \
|
|
-I$(top_srcdir)/clutter \
|
|
-I$(top_srcdir)/clutter/cogl \
|
|
-I$(top_builddir)/clutter \
|
|
-I$(top_builddir)/clutter/cogl
|
|
|
|
common_ldadd = $(top_builddir)/clutter/libclutter-@CLUTTER_SONAME_INFIX@-@CLUTTER_API_VERSION@.la
|
|
|
|
noinst_PROGRAMS = test-interactive
|
|
|
|
test_interactive_SOURCES = test-main.c $(UNIT_TESTS)
|
|
test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
|
|
test_interactive_CPPFLAGS = \
|
|
-DTESTS_DATADIR=\""$(abs_top_srcdir)/tests/data"\" \
|
|
-DG_DISABLE_SINGLE_INCLUDES \
|
|
-DCOGL_DISABLE_DEPRECATED \
|
|
-DCLUTTER_DISABLE_DEPRECATED
|
|
test_interactive_LDFLAGS = -export-dynamic
|
|
test_interactive_LDADD = $(CLUTTER_LIBS) $(common_ldadd)
|
|
|
|
EXTRA_DIST = wrapper.sh.in
|
|
DISTCLEANFILES = wrapper.sh .gitignore
|
|
|
|
BUILT_SOURCES = wrappers
|
|
|
|
clean-local: clean-wrappers
|