build: Add a pkg-config file for libvkd3d-utils.

This commit is contained in:
Henri Verbeet 2017-06-30 13:10:17 +02:00
parent 2f76b66a43
commit 0b656c8354
2 changed files with 21 additions and 3 deletions

View File

@ -97,9 +97,9 @@ EXTRA_DIST = LICENSE
pkgconfigdir = $(libdir)/pkgconfig pkgconfigdir = $(libdir)/pkgconfig
pkginclude_HEADERS = $(vkd3d_public_headers) pkginclude_HEADERS = $(vkd3d_public_headers)
nodist_pkgconfig_DATA = libvkd3d.pc nodist_pkgconfig_DATA = libvkd3d.pc libvkd3d-utils.pc
CLEANFILES += libvkd3d.pc CLEANFILES += libvkd3d.pc libvkd3d-utils.pc
EXTRA_DIST += libs/vkd3d/libvkd3d.pc.in EXTRA_DIST += libs/vkd3d/libvkd3d.pc.in libs/vkd3d-utils/libvkd3d-utils.pc.in
bin_PROGRAMS = vkd3d-compiler bin_PROGRAMS = vkd3d-compiler
vkd3d_compiler_SOURCES = programs/vkd3d-compiler/main.c vkd3d_compiler_SOURCES = programs/vkd3d-compiler/main.c
@ -144,6 +144,14 @@ $(spv_shaders): %.spv: %
EXTRA_DIST += $(hlsl_shaders) EXTRA_DIST += $(hlsl_shaders)
libvkd3d-utils.pc: $(srcdir)/libs/vkd3d-utils/libvkd3d-utils.pc.in
sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
-e 's![@]includedir[@]!$(includedir)!g' \
-e 's![@]libdir[@]!$(libdir)!g' \
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
$< > $@
libvkd3d.pc: $(srcdir)/libs/vkd3d/libvkd3d.pc.in libvkd3d.pc: $(srcdir)/libs/vkd3d/libvkd3d.pc.in
sed -e 's![@]prefix[@]!$(prefix)!g' \ sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \ -e 's![@]exec_prefix[@]!$(exec_prefix)!g' \

View File

@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: vkd3d
Description: The vkd3d 3D Graphics Utility Library
Version: @PACKAGE_VERSION@
Cflags: -I${includedir}/vkd3d
Libs: -L${libdir} -lvkd3d-utils