47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
From a8144189b257d515f1eb72a4b50098e9f4abd4ea Mon Sep 17 00:00:00 2001
|
|
From: Jason Zaman <jason@perfinion.com>
|
|
Date: Fri, 2 Aug 2019 22:21:25 +0800
|
|
Subject: [PATCH 4/5] pkgconfig: generate tensorflow_cc pkg-config entry
|
|
|
|
Signed-off-by: Jason Zaman <jason@perfinion.com>
|
|
---
|
|
tensorflow/c/generate-pc.sh | 18 ++++++++++++++++--
|
|
1 file changed, 16 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/tensorflow/c/generate-pc.sh b/tensorflow/c/generate-pc.sh
|
|
index 7184ad68fb..a4d51a1b3b 100755
|
|
--- a/tensorflow/c/generate-pc.sh
|
|
+++ b/tensorflow/c/generate-pc.sh
|
|
@@ -63,12 +63,26 @@ cat << EOF > tensorflow.pc
|
|
prefix=${TF_PREFIX}
|
|
exec_prefix=\${prefix}
|
|
libdir=\${exec_prefix}/${LIBDIR}
|
|
-includedir=\${prefix}/include
|
|
+includedir=\${prefix}/include/tensorflow
|
|
|
|
Name: TensorFlow
|
|
Version: ${TF_VERSION}
|
|
Description: Library for computation using data flow graphs for scalable machine learning
|
|
Requires:
|
|
-Libs: -L\${libdir} -ltensorflow
|
|
+Libs: -L\${libdir} -ltensorflow -ltensorflow_framework
|
|
+Cflags: -I\${includedir}
|
|
+EOF
|
|
+
|
|
+cat << EOF > tensorflow_cc.pc
|
|
+prefix=${TF_PREFIX}
|
|
+exec_prefix=\${prefix}
|
|
+libdir=\${exec_prefix}/${LIBDIR}
|
|
+includedir=\${prefix}/include/tensorflow
|
|
+
|
|
+Name: TensorFlow
|
|
+Version: ${TF_VERSION}
|
|
+Description: Library for computation using data flow graphs for scalable machine learning
|
|
+Requires:
|
|
+Libs: -L\${libdir} -ltensorflow_cc -ltensorflow_framework
|
|
Cflags: -I\${includedir}
|
|
EOF
|
|
--
|
|
2.21.0
|
|
|