aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonas Witschel <diabonas@gmx.de>2019-04-09 17:05:29 +0200
committerTadeusz Struk <tadeusz.struk@intel.com>2019-04-11 08:27:06 -0700
commit82aef96eb2051a9de79d5bbb8f7fe2810a4b55cb (patch)
treec24dfd5b557a508a451e742a0b8303add6e1ac72 /lib
parent8ed533fba7dad438f4e8fcd99f108a75eddfff0f (diff)
downloadtpm2-tss-82aef96eb2051a9de79d5bbb8f7fe2810a4b55cb.tar.gz
build: define variables for {lib,include}dir in pkg-config files
This is standard practice, see e.g. the pkg-config man page, as it allows the user to determine where the files have been installed. Signed-off-by: Jonas Witschel <diabonas@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/tss2-esys.pc.in9
-rw-r--r--lib/tss2-mu.pc.in9
-rw-r--r--lib/tss2-sys.pc.in9
-rw-r--r--lib/tss2-tcti-device.pc.in9
-rw-r--r--lib/tss2-tcti-mssim.pc.in9
5 files changed, 35 insertions, 10 deletions
diff --git a/lib/tss2-esys.pc.in b/lib/tss2-esys.pc.in
index ecb01bc1..cf2851af 100644
--- a/lib/tss2-esys.pc.in
+++ b/lib/tss2-esys.pc.in
@@ -1,7 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
Name: tss2-esys
Description: TPM2 Enhanced System API library.
URL: https://github.com/tpm2-software/tpm2-tss
Version: @VERSION@
Requires: tss2-mu tss2-sys
-Cflags: -I@includedir@
-Libs: -ltss2-esys -L@libdir@
+Cflags: -I${includedir}
+Libs: -ltss2-esys -L${libdir}
diff --git a/lib/tss2-mu.pc.in b/lib/tss2-mu.pc.in
index c441a2fd..a5689f30 100644
--- a/lib/tss2-mu.pc.in
+++ b/lib/tss2-mu.pc.in
@@ -1,6 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
Name: tss2-mu
Description: TPM2 type marshaling and unmarshaling library.
URL: https://github.com/tpm2-software/tpm2-tss
Version: @VERSION@
-Cflags: -I@includedir@
-Libs: -ltss2-mu -L@libdir@
+Cflags: -I${includedir}
+Libs: -ltss2-mu -L${libdir}
diff --git a/lib/tss2-sys.pc.in b/lib/tss2-sys.pc.in
index 82c6499d..c9e646ea 100644
--- a/lib/tss2-sys.pc.in
+++ b/lib/tss2-sys.pc.in
@@ -1,7 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
Name: tss2-sys
Description: TPM2 System API library.
URL: https://github.com/tpm2-software/tpm2-tss
Version: @VERSION@
Requires: tss2-mu
-Cflags: -I@includedir@
-Libs: -ltss2-sys -L@libdir@
+Cflags: -I${includedir}
+Libs: -ltss2-sys -L${libdir}
diff --git a/lib/tss2-tcti-device.pc.in b/lib/tss2-tcti-device.pc.in
index 81b39595..b889e6f3 100644
--- a/lib/tss2-tcti-device.pc.in
+++ b/lib/tss2-tcti-device.pc.in
@@ -1,7 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
Name: tss2-tcti-device
Description: TCTI library for communicating with a TPM device node.
URL: https://github.com/tpm2-software/tpm2-tss
Version: @VERSION@
Requires: tss2-mu
-Cflags: -I@includedir@
-Libs: -ltss2-tcti-device -L@libdir@
+Cflags: -I${includedir}
+Libs: -ltss2-tcti-device -L${libdir}
diff --git a/lib/tss2-tcti-mssim.pc.in b/lib/tss2-tcti-mssim.pc.in
index 121c7a4e..70a0c3b7 100644
--- a/lib/tss2-tcti-mssim.pc.in
+++ b/lib/tss2-tcti-mssim.pc.in
@@ -1,7 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
Name: tss2-tcti-mssim
Description: TCTI library for communicating with the Microsoft TPM2 simulator.
URL: https://github.com/tpm2-software/tpm2-tss
Version: @VERSION@
Requires: tss2-mu
-Cflags: -I@includedir@
-Libs: -ltss2-tcti-mssim -L@libdir@
+Cflags: -I${includedir}
+Libs: -ltss2-tcti-mssim -L${libdir}