Write a deltachat.pc file at build time

This is writes pkg-config/deltachat.pc file in the target directory,
using the PREFIX environment variable at build time.  If this is
undefined at build time /usr/local is used.
This commit is contained in:
Floris Bruynooghe
2019-07-04 23:50:09 +02:00
committed by holger krekel
parent 065124b93b
commit ea8d6e8ff0
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
prefix={prefix}
libdir=${{prefix}}/lib
includedir=${{prefix}}/include
Name: {name}
Description: {description}
URL: {url}
Version: {version}
Cflags: -I${{includedir}}
Libs: -L${{libdir}} -ldeltachat
Libs.private: {libs_priv}