package/gmock: install .pc file
PATCH 1/2 package/gmock: install .pc file
Signed-off-by "Yann E. MORIN" <[email protected]>
Signed-off-by Cedric Chedaleux <[email protected]>
--- package/gmock/gmock.mk | 2 ++ package/gmock/gmock.pc | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 package/gmock/gmock.pc
package/gmock/gmock.mk +2 -0
@@ -39,6 +39,8 @@ define GMOCK_INSTALL_STAGING_CMDS $(INSTALL) -D -m 0755 $(@D)/lib/.libs/libgmock_main.a $(STAGING_DIR)/usr/lib/libgmock_main.a $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/gmock/ cp -rp $(@D)/include/gmock/* $(STAGING_DIR)/usr/include/gmock/ + $(INSTALL) -D -m 0755 package/gmock/gmock.pc \ + $(STAGING_DIR)/usr/lib/pkgconfig/gmock.pc endef # Unzipping inside $(@D) and moving everything from the created subdirectory is
package/gmock/gmock.pc new file +11 -0
@@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib/ +includedir=${prefix}/include + +Name: gmock +Description: Google C++ Mocking Framework +Version: 1.7.0 +Libs: -L${libdir} -lgmock +Libs.private: -lpthread +Cflags: -I${includedir}
Signature · 1 line
1.9.1
PATCH 2/2 package/gtest: add and install a .pc file
Signed-off-by "Yann E. MORIN" <[email protected]>
Signed-off-by Cedric Chedaleux <[email protected]>
--- package/gtest/gtest.mk | 2 ++ package/gtest/gtest.pc | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 package/gtest/gtest.pc
package/gtest/gtest.mk +2 -0
@@ -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%;\
package/gtest/gtest.pc new file +11 -0
@@ -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}
Signature · 1 line
1.9.1
PATCH 1/2 package/gmock: install .pc file
In reply to Yann E. MORINHello,
Quoted 7 lines · Yann E. MORIN
Signed-off-by "Yann E. MORIN" <[email protected]>Signed-off-by Cedric Chedaleux <[email protected]>--- package/gmock/gmock.mk | 2 ++ package/gmock/gmock.pc | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 package/gmock/gmock.pc
Both patches applied to master, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com