Add pkg-config file for mmal
authorAnthony Ryan <anthonyryan1@gmail.com>
Sun, 5 Feb 2017 02:42:25 +0000 (21:42 -0500)
committerpopcornmix <popcornmix@gmail.com>
Wed, 8 Feb 2017 19:26:09 +0000 (19:26 +0000)
Also adds a pkg-config file for vcsm, which mmal depends upon for
zero copy buffers.

CMakeLists.txt
pkgconfig/mmal.pc.in [new file with mode: 0644]
pkgconfig/vcsm.pc.in [new file with mode: 0644]

index 98252c3818aa0aeb1eff63416576575d751c28be..cfc8ae54f2c16abfb36f5b7bacb8174c98861a76 100644 (file)
@@ -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")
diff --git a/pkgconfig/mmal.pc.in b/pkgconfig/mmal.pc.in
new file mode 100644 (file)
index 0000000..37d344c
--- /dev/null
@@ -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}
diff --git a/pkgconfig/vcsm.pc.in b/pkgconfig/vcsm.pc.in
new file mode 100644 (file)
index 0000000..6780eff
--- /dev/null
@@ -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}