126e4beaaSAndrew 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 426e4beaaSAndrew GeisslerSubject: [PATCH] openmaxil: add pkg-config file 5062316f1SAndrew Geissler 6062316f1SAndrew Geissler--- 7*520786ccSPatrick WilliamsUpstream-Status: Pending 8*520786ccSPatrick Williams 9062316f1SAndrew Geissler CMakeLists.txt | 2 +- 10062316f1SAndrew Geissler pkgconfig/openmaxil.pc.in | 10 ++++++++++ 11062316f1SAndrew Geissler 2 files changed, 11 insertions(+), 1 deletion(-) 12062316f1SAndrew Geissler create mode 100644 pkgconfig/openmaxil.pc.in 13062316f1SAndrew Geissler 14062316f1SAndrew Geisslerdiff --git a/CMakeLists.txt b/CMakeLists.txt 155d59ec7eSAndrew Geisslerindex 80337b2..3e3c90e 100644 16062316f1SAndrew Geissler--- a/CMakeLists.txt 17062316f1SAndrew Geissler+++ b/CMakeLists.txt 185d59ec7eSAndrew Geissler@@ -133,7 +133,7 @@ include_directories("${PROJECT_BINARY_DIR}") 19062316f1SAndrew Geissler include(FindPkgConfig QUIET) 20062316f1SAndrew Geissler if(PKG_CONFIG_FOUND) 21062316f1SAndrew Geissler # Produce a pkg-config file 22062316f1SAndrew Geissler- foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc) 23062316f1SAndrew Geissler+ foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc openmaxil.pc) 24062316f1SAndrew Geissler configure_file("pkgconfig/${PCFILE}.in" "${PCFILE}" @ONLY) 25062316f1SAndrew Geissler install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PCFILE}" 26062316f1SAndrew Geissler DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig") 27062316f1SAndrew Geisslerdiff --git a/pkgconfig/openmaxil.pc.in b/pkgconfig/openmaxil.pc.in 28062316f1SAndrew Geisslernew file mode 100644 29062316f1SAndrew Geisslerindex 0000000..8793a61 30062316f1SAndrew Geissler--- /dev/null 31062316f1SAndrew Geissler+++ b/pkgconfig/openmaxil.pc.in 32062316f1SAndrew Geissler@@ -0,0 +1,10 @@ 33062316f1SAndrew Geissler+prefix=@CMAKE_INSTALL_PREFIX@ 34062316f1SAndrew Geissler+exec_prefix=${prefix} 35062316f1SAndrew Geissler+libdir=${exec_prefix}/lib 36062316f1SAndrew Geissler+includedir=${prefix}/include 37062316f1SAndrew Geissler+ 38062316f1SAndrew Geissler+Name: openmaxil 39062316f1SAndrew Geissler+Description: Broadcom openmaxil library 40062316f1SAndrew Geissler+Version: 1 41062316f1SAndrew Geissler+Libs: -L${libdir} -lopenmaxil -lvcos -lvchiq_arm -pthread 42062316f1SAndrew Geissler+Cflags: -I${includedir} -I${includedir}/IL -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM 43