Merge branch 'add-xorgproto-pc' into 'master'

build: Add a meta xorgproto.pc

See merge request xorg/proto/xorgproto!76
This commit is contained in:
Olivier Fourdan 2026-04-24 17:56:43 +02:00
commit 4405016e26
4 changed files with 13 additions and 0 deletions

View file

@ -357,6 +357,9 @@ xwaylandprotopkgconfig_DATA = xwaylandproto.pc
dist_doc_DATA += xwaylandproto.txt
xorgprotopkgconfigdir = $(datadir)/pkgconfig
xorgprotopkgconfig_DATA = xorgproto.pc
if LEGACY
XCalibrateincludedir = $(includedir)/X11/extensions
XCalibrateinclude_HEADERS = \

View file

@ -156,6 +156,7 @@ AC_CONFIG_FILES([applewmproto.pc
xf86rushproto.pc
xf86vidmodeproto.pc
xineramaproto.pc
xorgproto.pc
xproto.pc
xproxymngproto.pc
xwaylandproto.pc])

View file

@ -51,12 +51,14 @@ pcs = [
'xf86driproto',
'xf86vidmodeproto',
'xineramaproto',
'xorgproto',
'xproto',
'xwaylandproto',
]
pc_data = configuration_data()
pc_data.set('prefix', get_option('prefix'))
pc_data.set('PACKAGE_VERSION', meson.project_version())
# meson does not allow installing the includedir outside of the prefix
pc_data.set('includedir', '${prefix}/' + get_option('includedir'))

7
xorgproto.pc.in Normal file
View file

@ -0,0 +1,7 @@
prefix=@prefix@
includedir=@includedir@
Name: XorgProto
Description: X Window System unified protocol headers
Version: @PACKAGE_VERSION@
Cflags: -I${includedir}