Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/gtest: add and install a .pc file
@ 2016-06-24 16:00 Thomas Petazzoni
  2016-06-24 17:57 ` Romain Naour
       [not found] ` <3df7f810-2080-6baa-e4f0-82d70fb00154@smile.fr>
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-06-24 16:00 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=e9c4497c92cfe2f2792664cdc6e8a70a191a9b6d
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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>
---
 package/gtest/gtest.mk |  2 ++
 package/gtest/gtest.pc | 11 +++++++++++
 2 files changed, 13 insertions(+)

diff --git a/package/gtest/gtest.mk b/package/gtest/gtest.mk
index da08621..a4ef45b 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 0000000..b7a8aa4
--- /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}

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-24 20:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-24 16:00 [Buildroot] [git commit] package/gtest: add and install a .pc file Thomas Petazzoni
2016-06-24 17:57 ` Romain Naour
     [not found] ` <3df7f810-2080-6baa-e4f0-82d70fb00154@smile.fr>
2016-06-24 20:58   ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox