1*26e4beaaSAndrew GeisslerFrom 372b3b75945300604c9b7b012ecb25c0548a1495 Mon Sep 17 00:00:00 2001
2062316f1SAndrew GeisslerFrom: Martin Jansa <martin.jansa@lge.com>
3062316f1SAndrew GeisslerDate: Wed, 13 Jun 2018 18:22:22 +0000
4*26e4beaaSAndrew GeisslerSubject: [PATCH] openmaxil: add pkg-config file
5062316f1SAndrew Geissler
6062316f1SAndrew Geissler---
7062316f1SAndrew Geissler CMakeLists.txt            |  2 +-
8062316f1SAndrew Geissler pkgconfig/openmaxil.pc.in | 10 ++++++++++
9062316f1SAndrew Geissler 2 files changed, 11 insertions(+), 1 deletion(-)
10062316f1SAndrew Geissler create mode 100644 pkgconfig/openmaxil.pc.in
11062316f1SAndrew Geissler
12062316f1SAndrew Geisslerdiff --git a/CMakeLists.txt b/CMakeLists.txt
135d59ec7eSAndrew Geisslerindex 80337b2..3e3c90e 100644
14062316f1SAndrew Geissler--- a/CMakeLists.txt
15062316f1SAndrew Geissler+++ b/CMakeLists.txt
165d59ec7eSAndrew Geissler@@ -133,7 +133,7 @@ include_directories("${PROJECT_BINARY_DIR}")
17062316f1SAndrew Geissler include(FindPkgConfig QUIET)
18062316f1SAndrew Geissler if(PKG_CONFIG_FOUND)
19062316f1SAndrew Geissler 	# Produce a pkg-config file
20062316f1SAndrew Geissler-	foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc)
21062316f1SAndrew Geissler+	foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc openmaxil.pc)
22062316f1SAndrew Geissler 		configure_file("pkgconfig/${PCFILE}.in" "${PCFILE}" @ONLY)
23062316f1SAndrew Geissler 		install(FILES       "${CMAKE_CURRENT_BINARY_DIR}/${PCFILE}"
24062316f1SAndrew Geissler 			DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
25062316f1SAndrew Geisslerdiff --git a/pkgconfig/openmaxil.pc.in b/pkgconfig/openmaxil.pc.in
26062316f1SAndrew Geisslernew file mode 100644
27062316f1SAndrew Geisslerindex 0000000..8793a61
28062316f1SAndrew Geissler--- /dev/null
29062316f1SAndrew Geissler+++ b/pkgconfig/openmaxil.pc.in
30062316f1SAndrew Geissler@@ -0,0 +1,10 @@
31062316f1SAndrew Geissler+prefix=@CMAKE_INSTALL_PREFIX@
32062316f1SAndrew Geissler+exec_prefix=${prefix}
33062316f1SAndrew Geissler+libdir=${exec_prefix}/lib
34062316f1SAndrew Geissler+includedir=${prefix}/include
35062316f1SAndrew Geissler+
36062316f1SAndrew Geissler+Name: openmaxil
37062316f1SAndrew Geissler+Description: Broadcom openmaxil library
38062316f1SAndrew Geissler+Version: 1
39062316f1SAndrew Geissler+Libs: -L${libdir} -lopenmaxil -lvcos -lvchiq_arm -pthread
40062316f1SAndrew Geissler+Cflags: -I${includedir} -I${includedir}/IL -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM
41