Andrew Geissler | 26e4bea | 2020-11-30 19:54:03 -0600 | [diff] [blame] | 1 | From 372b3b75945300604c9b7b012ecb25c0548a1495 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 062316f | 2020-05-15 14:19:14 -0500 | [diff] [blame] | 2 | From: Martin Jansa <martin.jansa@lge.com> |
| 3 | Date: Wed, 13 Jun 2018 18:22:22 +0000 |
Andrew Geissler | 26e4bea | 2020-11-30 19:54:03 -0600 | [diff] [blame] | 4 | Subject: [PATCH] openmaxil: add pkg-config file |
Andrew Geissler | 062316f | 2020-05-15 14:19:14 -0500 | [diff] [blame] | 5 | |
| 6 | --- |
| 7 | CMakeLists.txt | 2 +- |
| 8 | pkgconfig/openmaxil.pc.in | 10 ++++++++++ |
| 9 | 2 files changed, 11 insertions(+), 1 deletion(-) |
| 10 | create mode 100644 pkgconfig/openmaxil.pc.in |
| 11 | |
| 12 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
Andrew Geissler | 5d59ec7 | 2020-07-24 16:09:26 -0500 | [diff] [blame] | 13 | index 80337b2..3e3c90e 100644 |
Andrew Geissler | 062316f | 2020-05-15 14:19:14 -0500 | [diff] [blame] | 14 | --- a/CMakeLists.txt |
| 15 | +++ b/CMakeLists.txt |
Andrew Geissler | 5d59ec7 | 2020-07-24 16:09:26 -0500 | [diff] [blame] | 16 | @@ -133,7 +133,7 @@ include_directories("${PROJECT_BINARY_DIR}") |
Andrew Geissler | 062316f | 2020-05-15 14:19:14 -0500 | [diff] [blame] | 17 | include(FindPkgConfig QUIET) |
| 18 | if(PKG_CONFIG_FOUND) |
| 19 | # Produce a pkg-config file |
| 20 | - foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc) |
| 21 | + foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc openmaxil.pc) |
| 22 | configure_file("pkgconfig/${PCFILE}.in" "${PCFILE}" @ONLY) |
| 23 | install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PCFILE}" |
| 24 | DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig") |
| 25 | diff --git a/pkgconfig/openmaxil.pc.in b/pkgconfig/openmaxil.pc.in |
| 26 | new file mode 100644 |
| 27 | index 0000000..8793a61 |
| 28 | --- /dev/null |
| 29 | +++ b/pkgconfig/openmaxil.pc.in |
| 30 | @@ -0,0 +1,10 @@ |
| 31 | +prefix=@CMAKE_INSTALL_PREFIX@ |
| 32 | +exec_prefix=${prefix} |
| 33 | +libdir=${exec_prefix}/lib |
| 34 | +includedir=${prefix}/include |
| 35 | + |
| 36 | +Name: openmaxil |
| 37 | +Description: Broadcom openmaxil library |
| 38 | +Version: 1 |
| 39 | +Libs: -L${libdir} -lopenmaxil -lvcos -lvchiq_arm -pthread |
| 40 | +Cflags: -I${includedir} -I${includedir}/IL -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM |