optionally build the GE extension
xcb contains an xml-definition for the GenericEvent extension but this extension was neither generated nor built. This patch enables optional building of the GenericEvent extension with configure option --enable-ge By default, the GenericEvent extension is not built. Normally this is not needed by application programs because there is implicit support for the GE-extension for the specific events built with this extension. But it may be useful for X-protocol analyzers and stuff like that. Signed-off-by: Christian Linhart <chris@demorecorder.com>
This commit is contained in:
parent
9bce1f72e3
commit
0c2c5d50f8
|
@ -84,6 +84,9 @@ endif
|
||||||
if BUILD_XVMC
|
if BUILD_XVMC
|
||||||
pkgconfig_DATA += xcb-xvmc.pc
|
pkgconfig_DATA += xcb-xvmc.pc
|
||||||
endif
|
endif
|
||||||
|
if BUILD_GE
|
||||||
|
pkgconfig_DATA += xcb-ge.pc
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
AM_TESTS_ENVIRONMENT = \
|
AM_TESTS_ENVIRONMENT = \
|
||||||
|
|
|
@ -220,6 +220,7 @@ XCB_EXTENSION(Damage, yes)
|
||||||
XCB_EXTENSION(DPMS, yes)
|
XCB_EXTENSION(DPMS, yes)
|
||||||
XCB_EXTENSION(DRI2, yes)
|
XCB_EXTENSION(DRI2, yes)
|
||||||
XCB_EXTENSION(DRI3, $have_sendmsg)
|
XCB_EXTENSION(DRI3, $have_sendmsg)
|
||||||
|
XCB_EXTENSION(GE, no)
|
||||||
XCB_EXTENSION(GLX, yes)
|
XCB_EXTENSION(GLX, yes)
|
||||||
XCB_EXTENSION(Present, yes)
|
XCB_EXTENSION(Present, yes)
|
||||||
XCB_EXTENSION(RandR, yes)
|
XCB_EXTENSION(RandR, yes)
|
||||||
|
@ -271,6 +272,7 @@ xcb-damage.pc
|
||||||
xcb-dpms.pc
|
xcb-dpms.pc
|
||||||
xcb-dri2.pc
|
xcb-dri2.pc
|
||||||
xcb-dri3.pc
|
xcb-dri3.pc
|
||||||
|
xcb-ge.pc
|
||||||
xcb-glx.pc
|
xcb-glx.pc
|
||||||
xcb-present.pc
|
xcb-present.pc
|
||||||
xcb-randr.pc
|
xcb-randr.pc
|
||||||
|
@ -318,6 +320,7 @@ echo " Damage..............: ${BUILD_DAMAGE}"
|
||||||
echo " Dpms................: ${BUILD_DPMS}"
|
echo " Dpms................: ${BUILD_DPMS}"
|
||||||
echo " Dri2................: ${BUILD_DRI2}"
|
echo " Dri2................: ${BUILD_DRI2}"
|
||||||
echo " Dri3................: ${BUILD_DRI3}"
|
echo " Dri3................: ${BUILD_DRI3}"
|
||||||
|
echo " GenericEvent........: ${BUILD_GE}"
|
||||||
echo " Glx.................: ${BUILD_GLX}"
|
echo " Glx.................: ${BUILD_GLX}"
|
||||||
echo " Randr...............: ${BUILD_RANDR}"
|
echo " Randr...............: ${BUILD_RANDR}"
|
||||||
echo " Record..............: ${BUILD_RECORD}"
|
echo " Record..............: ${BUILD_RECORD}"
|
||||||
|
|
|
@ -232,6 +232,13 @@ libxcb_xvmc_la_LIBADD = $(XCB_LIBS)
|
||||||
nodist_libxcb_xvmc_la_SOURCES = xvmc.c xvmc.h
|
nodist_libxcb_xvmc_la_SOURCES = xvmc.c xvmc.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
EXTSOURCES += ge.c
|
||||||
|
if BUILD_GE
|
||||||
|
lib_LTLIBRARIES += libxcb-ge.la
|
||||||
|
libxcb_ge_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@
|
||||||
|
libxcb_ge_la_LIBADD = $(XCB_LIBS)
|
||||||
|
nodist_libxcb_ge_la_SOURCES = ge.c ge.h
|
||||||
|
endif
|
||||||
|
|
||||||
EXTHEADERS=$(EXTSOURCES:.c=.h)
|
EXTHEADERS=$(EXTSOURCES:.c=.h)
|
||||||
xcbinclude_HEADERS = xcb.h xcbext.h
|
xcbinclude_HEADERS = xcb.h xcbext.h
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: XCB GenericEvent
|
||||||
|
Description: XCB GenericEvent Extension
|
||||||
|
Version: @PACKAGE_VERSION@
|
||||||
|
Requires.private: xcb
|
||||||
|
Libs: -L${libdir} -lxcb-ge
|
||||||
|
Cflags: -I${includedir}
|
Loading…
Reference in New Issue