tslib: Add USE_TSLIB conditional for clutter-event-tslib.c

This adds an automake USE_TSLIB condition to decide when we should
compile clutter-event-tslib.c. This is in preparation for consolidating
the eglx and eglnative backends.
This commit is contained in:
Robert Bragg 2010-06-18 00:29:12 +01:00
parent 5b6800bf63
commit 46bed23302
2 changed files with 7 additions and 1 deletions

View File

@ -17,9 +17,13 @@ noinst_LTLIBRARIES = libclutter-eglnative.la
libclutter_eglnative_la_SOURCES = \
clutter-backend-egl.h \
clutter-backend-egl.c \
clutter-event-tslib.c \
clutter-stage-egl.h \
clutter-stage-egl.c \
clutter-egl-headers.h
if USE_TSLIB
libclutter_eglnative_la_SOURCES += clutter-event-tslib.c
endif
libclutter_eglnative_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
libclutter_eglnative_la_LIBADD = $(common_ldadd)

View File

@ -424,6 +424,8 @@ AS_IF([test "x$COGL_DRIVER" = "xgles"],
]
)
AM_CONDITIONAL(USE_TSLIB, [test "x$have_tslib" = "xyes"])
AM_CONDITIONAL(USE_GLES2_WRAPPER, [test "x$use_gles2_wrapper" = "xyes"])
# at this point we must have a GL header to check