package/gmock: install .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>
This commit is contained in:
Yann E. MORIN 2016-06-23 09:09:34 +02:00 committed by Thomas Petazzoni
parent bac3f17470
commit 4dd576b563
2 changed files with 13 additions and 0 deletions

View file

@ -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

11
package/gmock/gmock.pc Normal file
View file

@ -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}