Skip to content

Commit

Permalink
Add pkg-config file for mmal
Browse files Browse the repository at this point in the history
Also adds a pkg-config file for vcsm, which mmal depends upon for
zero copy buffers.
  • Loading branch information
anthonyryan1 authored and popcornmix committed Feb 8, 2017
1 parent d35be76 commit 4ae8261
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -122,7 +122,7 @@ include_directories("${PROJECT_BINARY_DIR}")
include(FindPkgConfig QUIET)
if(PKG_CONFIG_FOUND)
# Produce a pkg-config file
foreach(PCFILE bcm_host.pc egl.pc glesv2.pc vg.pc brcmegl.pc brcmglesv2.pc brcmvg.pc )
foreach(PCFILE bcm_host.pc egl.pc glesv2.pc vg.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc )
configure_file("pkgconfig/${PCFILE}.in" "${PCFILE}" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PCFILE}"
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
Expand Down
11 changes: 11 additions & 0 deletions pkgconfig/mmal.pc.in
@@ -0,0 +1,11 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: MMAL
Description: Multi-Media Abstraction Layer library for RPi
Version: 1
Requires: vcsm
Libs: -L${libdir} -lmmal -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host
Cflags: -I${includedir}
10 changes: 10 additions & 0 deletions pkgconfig/vcsm.pc.in
@@ -0,0 +1,10 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: VCSM
Description: VideoCore Shared Memory library for RPi
Version: 1
Libs: -L${libdir} -lvcsm
Cflags: -I${includedir}

0 comments on commit 4ae8261

Please sign in to comment.