summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin@orange.com>2016-06-23 09:09:35 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-24 18:00:01 +0200
commite9c4497c92cfe2f2792664cdc6e8a70a191a9b6d (patch)
treeb9b52ec07f4a069068c39ad14304bc71a1ac4c20 /package
parent4dd576b563eff108de16e7318443016c89798e09 (diff)
downloadbuildroot-e9c4497c92cfe2f2792664cdc6e8a70a191a9b6d.tar.gz
buildroot-e9c4497c92cfe2f2792664cdc6e8a70a191a9b6d.zip
package/gtest: add and install a .pc file
Signed-off-by: "Yann E. MORIN" <yann.morin@orange.com> Signed-off-by: Cedric Chedaleux <cedric.chedaleux@orange.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/gtest/gtest.mk2
-rw-r--r--package/gtest/gtest.pc11
2 files changed, 13 insertions, 0 deletions
diff --git a/package/gtest/gtest.mk b/package/gtest/gtest.mk
index da08621029..a4ef45beb1 100644
--- a/package/gtest/gtest.mk
+++ b/package/gtest/gtest.mk
@@ -31,6 +31,8 @@ define GTEST_INSTALL_STAGING_CMDS
$(INSTALL) -D -m 0755 $(@D)/libgtest_main.a $(STAGING_DIR)/usr/lib/libgtest_main.a
$(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/gtest/
cp -rp $(@D)/include/gtest/* $(STAGING_DIR)/usr/include/gtest/
+ $(INSTALL) -D -m 0644 packages/gtest/gtest.pc \
+ $(STAGING_DIR)/usr/lib/pkgconfig/gtest.pc
# Generate the gtest-config script manually, since the CMake
# build system is not doing it.
sed 's%@PACKAGE_TARNAME@%gtest%;\
diff --git a/package/gtest/gtest.pc b/package/gtest/gtest.pc
new file mode 100644
index 0000000000..b7a8aa4000
--- /dev/null
+++ b/package/gtest/gtest.pc
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${prefix}/lib/
+includedir=${prefix}/include
+
+Name: gtest
+Description: Google C++ Testing Framework
+Version: 1.7.0
+Libs: -L${libdir} -lgtest
+Libs.private: -lpthread
+Cflags: -I${includedir}
OpenPOWER on IntegriCloud