瀏覽代碼

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>
Yann E. MORIN 9 年之前
父節點
當前提交
4dd576b563
共有 2 個文件被更改,包括 13 次插入0 次删除
  1. 2 0
      package/gmock/gmock.mk
  2. 11 0
      package/gmock/gmock.pc

+ 2 - 0
package/gmock/gmock.mk

@@ -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 - 0
package/gmock/gmock.pc

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