1*062316f1SAndrew GeisslerFrom d1a9839c6e4b4d187382baf341d25b3d023242cd Mon Sep 17 00:00:00 2001
2*062316f1SAndrew GeisslerFrom: Martin Jansa <martin.jansa@lge.com>
3*062316f1SAndrew GeisslerDate: Wed, 13 Jun 2018 18:22:22 +0000
4*062316f1SAndrew GeisslerSubject: [PATCH] openmaxil: add pkg-config file
5*062316f1SAndrew Geissler
6*062316f1SAndrew Geissler---
7*062316f1SAndrew Geissler CMakeLists.txt            |  2 +-
8*062316f1SAndrew Geissler pkgconfig/openmaxil.pc.in | 10 ++++++++++
9*062316f1SAndrew Geissler 2 files changed, 11 insertions(+), 1 deletion(-)
10*062316f1SAndrew Geissler create mode 100644 pkgconfig/openmaxil.pc.in
11*062316f1SAndrew Geissler
12*062316f1SAndrew Geisslerdiff --git a/CMakeLists.txt b/CMakeLists.txt
13*062316f1SAndrew Geisslerindex 8c5bf5f..9f4165a 100644
14*062316f1SAndrew Geissler--- a/CMakeLists.txt
15*062316f1SAndrew Geissler+++ b/CMakeLists.txt
16*062316f1SAndrew Geissler@@ -131,7 +131,7 @@ include_directories("${PROJECT_BINARY_DIR}")
17*062316f1SAndrew Geissler include(FindPkgConfig QUIET)
18*062316f1SAndrew Geissler if(PKG_CONFIG_FOUND)
19*062316f1SAndrew Geissler 	# Produce a pkg-config file
20*062316f1SAndrew Geissler-	foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc)
21*062316f1SAndrew Geissler+	foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc openmaxil.pc)
22*062316f1SAndrew Geissler 		configure_file("pkgconfig/${PCFILE}.in" "${PCFILE}" @ONLY)
23*062316f1SAndrew Geissler 		install(FILES       "${CMAKE_CURRENT_BINARY_DIR}/${PCFILE}"
24*062316f1SAndrew Geissler 			DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
25*062316f1SAndrew Geisslerdiff --git a/pkgconfig/openmaxil.pc.in b/pkgconfig/openmaxil.pc.in
26*062316f1SAndrew Geisslernew file mode 100644
27*062316f1SAndrew Geisslerindex 0000000..8793a61
28*062316f1SAndrew Geissler--- /dev/null
29*062316f1SAndrew Geissler+++ b/pkgconfig/openmaxil.pc.in
30*062316f1SAndrew Geissler@@ -0,0 +1,10 @@
31*062316f1SAndrew Geissler+prefix=@CMAKE_INSTALL_PREFIX@
32*062316f1SAndrew Geissler+exec_prefix=${prefix}
33*062316f1SAndrew Geissler+libdir=${exec_prefix}/lib
34*062316f1SAndrew Geissler+includedir=${prefix}/include
35*062316f1SAndrew Geissler+
36*062316f1SAndrew Geissler+Name: openmaxil
37*062316f1SAndrew Geissler+Description: Broadcom openmaxil library
38*062316f1SAndrew Geissler+Version: 1
39*062316f1SAndrew Geissler+Libs: -L${libdir} -lopenmaxil -lvcos -lvchiq_arm -pthread
40*062316f1SAndrew Geissler+Cflags: -I${includedir} -I${includedir}/IL -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM
41