* [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
* [Buildroot] [git commit] package/gtest: add and install a .pc file
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>
1 sibling, 0 replies; 3+ messages in thread
From: Romain Naour @ 2016-06-24 17:57 UTC (permalink / raw)
To: buildroot
Hi Yann,
Le 24/06/2016 ? 18:00, Thomas Petazzoni a ?crit :
> 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 \
^^
s/packages/package/
Best regards,
Romain
> + $(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}
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [git commit] package/gtest: add and install a .pc file
[not found] ` <3df7f810-2080-6baa-e4f0-82d70fb00154@smile.fr>
@ 2016-06-24 20:58 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-06-24 20:58 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 24 Jun 2016 19:56:32 +0200, Romain Naour wrote:
> > + $(INSTALL) -D -m 0644 packages/gtest/gtest.pc \
> ^^
> s/packages/package/
Thanks for spotting, I fixed it.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [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