Add Present extension

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-By: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Keith Packard 2013-07-11 16:01:02 -07:00
parent 7a9373078e
commit cca6074090
5 changed files with 25 additions and 0 deletions

View File

@ -24,6 +24,9 @@ endif
if BUILD_GLX if BUILD_GLX
pkgconfig_DATA += xcb-glx.pc pkgconfig_DATA += xcb-glx.pc
endif endif
if BUILD_PRESENT
pkgconfig_DATA += xcb-present.pc
endif
if BUILD_RANDR if BUILD_RANDR
pkgconfig_DATA += xcb-randr.pc pkgconfig_DATA += xcb-randr.pc
endif endif

View File

@ -186,6 +186,7 @@ XCB_EXTENSION(DPMS, "yes")
XCB_EXTENSION(DRI2, "yes") XCB_EXTENSION(DRI2, "yes")
XCB_EXTENSION(DRI3, "$have_sendmsg") XCB_EXTENSION(DRI3, "$have_sendmsg")
XCB_EXTENSION(GLX, "yes") XCB_EXTENSION(GLX, "yes")
XCB_EXTENSION(Present, "yes")
XCB_EXTENSION(RandR, "yes") XCB_EXTENSION(RandR, "yes")
XCB_EXTENSION(Record, "yes") XCB_EXTENSION(Record, "yes")
XCB_EXTENSION(Render, "yes") XCB_EXTENSION(Render, "yes")
@ -231,6 +232,7 @@ xcb-dpms.pc
xcb-dri2.pc xcb-dri2.pc
xcb-dri3.pc xcb-dri3.pc
xcb-glx.pc xcb-glx.pc
xcb-present.pc
xcb-randr.pc xcb-randr.pc
xcb-record.pc xcb-record.pc
xcb-render.pc xcb-render.pc

1
src/.gitignore vendored
View File

@ -5,6 +5,7 @@ dpms.*
dri2.* dri2.*
dri3.* dri3.*
glx.* glx.*
present.*
randr.* randr.*
record.* record.*
render.* render.*

View File

@ -64,6 +64,14 @@ libxcb_dri3_la_LIBADD = $(XCB_LIBS)
nodist_libxcb_dri3_la_SOURCES = dri3.c dri3.h nodist_libxcb_dri3_la_SOURCES = dri3.c dri3.h
endif endif
EXTSOURCES += present.c
if BUILD_PRESENT
lib_LTLIBRARIES += libxcb-present.la
libxcb_present_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@
libxcb_present_la_LIBADD = $(XCB_LIBS)
nodist_libxcb_present_la_SOURCES = present.c present.h
endif
EXTSOURCES += glx.c EXTSOURCES += glx.c
if BUILD_GLX if BUILD_GLX
lib_LTLIBRARIES += libxcb-glx.la lib_LTLIBRARIES += libxcb-glx.la

11
xcb-present.pc.in Normal file
View File

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: XCB Present
Description: XCB Present Extension
Version: @PACKAGE_VERSION@
Requires: xcb
Libs: -L${libdir} -lxcb-present
Cflags: -I${includedir}