diff --git a/tensorflow/c/generate-pc.sh b/tensorflow/c/generate-pc.sh index 7184ad68fb7..a4d51a1b3b2 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