summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-07-11 16:01:02 -0700
committerKeith Packard <keithp@keithp.com>2013-11-07 13:32:46 -0800
commit6d630cb9bbd72d274a564acd4862dbaae4782f6f (patch)
tree01514bccc6a0376aec260d15bd64577d82be2973
parenta22ffa399a63a2c53aabe66efe9df01196fed74e (diff)
Add Present extension
Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-By: Uli Schlachter <psychon@znc.in>
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac2
-rw-r--r--src/.gitignore1
-rw-r--r--src/Makefile.am8
-rw-r--r--xcb-present.pc.in11
5 files changed, 25 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index b70f3de..b54d399 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,6 +22,9 @@ endif
if BUILD_GLX
pkgconfig_DATA += xcb-glx.pc
endif
+if BUILD_PRESENT
+pkgconfig_DATA += xcb-present.pc
+endif
if BUILD_RANDR
pkgconfig_DATA += xcb-randr.pc
endif
diff --git a/configure.ac b/configure.ac
index 7cc4bbb..aca5b1b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -193,6 +193,7 @@ XCB_EXTENSION(DPMS, "yes")
XCB_EXTENSION(DRI2, "yes")
XCB_EXTENSION(DRI3, "$have_sendmsg")
XCB_EXTENSION(GLX, "yes")
+XCB_EXTENSION(Present, "yes")
XCB_EXTENSION(RandR, "yes")
XCB_EXTENSION(Record, "yes")
XCB_EXTENSION(Render, "yes")
@@ -238,6 +239,7 @@ xcb-dpms.pc
xcb-dri2.pc
xcb-dri3.pc
xcb-glx.pc
+xcb-present.pc
xcb-randr.pc
xcb-record.pc
xcb-render.pc
diff --git a/src/.gitignore b/src/.gitignore
index 71a7341..a2a9010 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -5,6 +5,7 @@ dpms.*
dri2.*
dri3.*
glx.*
+present.*
randr.*
record.*
render.*
diff --git a/src/Makefile.am b/src/Makefile.am
index 9d6d246..346ee03 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -64,6 +64,14 @@ libxcb_dri3_la_LIBADD = $(XCB_LIBS)
nodist_libxcb_dri3_la_SOURCES = dri3.c dri3.h
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
if BUILD_GLX
lib_LTLIBRARIES += libxcb-glx.la
diff --git a/xcb-present.pc.in b/xcb-present.pc.in
new file mode 100644
index 0000000..848ac02
--- /dev/null
+++ b/xcb-present.pc.in
@@ -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}