From 40c42f7237a38d1c392d229e7d3832eceeb253bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Wed, 21 Sep 2016 12:57:24 +0200 Subject: [PATCH] build: Add pkg-config file. --- Makefile.am | 19 +++++++++++++++++++ libs/vkd3d/libvkd3d.pc.in | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100644 libs/vkd3d/libvkd3d.pc.in diff --git a/Makefile.am b/Makefile.am index 704a131b..fc84da90 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,6 +5,13 @@ AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/include/dummy widl_headers = \ include/d3d12.h +vkd3d_public_headers = \ + include/d3d12.h \ + include/dummy/rpc.h \ + include/dummy/rpcndr.h \ + include/dxgibase.h \ + include/vkd3d_windows.h + BUILT_SOURCES = $(widl_headers) CLEANFILES = $(widl_headers) @@ -12,5 +19,17 @@ lib_LTLIBRARIES = libvkd3d.la libvkd3d_la_SOURCES = \ libs/vkd3d/vkd3d_main.c +pkgconfigdir = $(libdir)/pkgconfig +pkginclude_HEADERS = $(vkd3d_public_headers) +nodist_pkgconfig_DATA = libvkd3d.pc + $(widl_headers): %.h: %.idl $(WIDL) -o $@ $< + +libvkd3d.pc: $(srcdir)/libs/vkd3d/libvkd3d.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' \ + $< > $@ diff --git a/libs/vkd3d/libvkd3d.pc.in b/libs/vkd3d/libvkd3d.pc.in new file mode 100644 index 00000000..4aa9a32a --- /dev/null +++ b/libs/vkd3d/libvkd3d.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: vkD3D +Description: D3D12 to Vulkan translation library. +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir}/vkd3d +Libs: -L${libdir} -lvkd3d