Split the Xlib compatibility functions into a separate library libxcb-xlib
We don't want to have to change the libxcb soname if we later manage to remove the Xlib compatibility functions, and nothing except Xlib should ever use them, so split them into a separate library.
This commit is contained in:
parent
810dfb8862
commit
9100981d35
|
@ -119,6 +119,6 @@ AC_SUBST(CWARNFLAGS)
|
|||
GCC_CHECK_VISIBILITY()
|
||||
|
||||
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
|
||||
AC_CONFIG_FILES([xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-glx.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xprint.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc])
|
||||
AC_CONFIG_FILES([xcb.pc xcb-xlib.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-glx.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xprint.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
lib_LTLIBRARIES = libxcb.la \
|
||||
libxcb-xlib.la \
|
||||
libxcb-composite.la \
|
||||
libxcb-damage.la \
|
||||
libxcb-dpms.la \
|
||||
|
@ -105,7 +106,7 @@ AM_CFLAGS = $(COPTFLAGS) $(CWARNFLAGS) $(CDEBUGFLAGS) $(XCBPROTO_CFLAGS) $(XAU_C
|
|||
libxcb_la_LIBADD = $(XCBPROTO_LIBS) $(XAU_LIBS) $(XDMCP_LIBS)
|
||||
libxcb_la_SOURCES = \
|
||||
xcb_conn.c xcb_out.c xcb_in.c xcb_ext.c xcb_xid.c \
|
||||
xcb_list.c xcb_util.c xcb_xlib.c xcb_auth.c \
|
||||
xcb_list.c xcb_util.c xcb_auth.c \
|
||||
$(COREPROTO) $(ESSENTIAL_EXTENSIONS) c-client.xsl
|
||||
|
||||
# Explanation for -version-info:
|
||||
|
@ -122,6 +123,10 @@ CLEANFILES = $(COREPROTO) $(EXTENSIONS)
|
|||
|
||||
XCB_LIBS = libxcb.la
|
||||
|
||||
libxcb_xlib_la_LDFLAGS = -version-info 0:0:0
|
||||
libxcb_xlib_la_LIBADD = $(XCB_LIBS)
|
||||
libxcb_xlib_la_SOURCES = xcb_xlib.c
|
||||
|
||||
# FIXME: find a way to autogenerate this from the XML files.
|
||||
|
||||
libxcb_composite_la_LDFLAGS = -version-info 0:0:0
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: XCB Xlib
|
||||
Description: XCB Xlib support functions
|
||||
Version: @PACKAGE_VERSION@
|
||||
Requires: xcb
|
||||
Libs: -L${libdir} -lxcb-xlib
|
||||
Cflags: -I${includedir}
|
Loading…
Reference in New Issue