gpu-viv-bin-mx6q: add pkgconfig files for EGL, OpenGLESv2 and OpenVG
PATCH v3 1/1 gpu-viv-bin-mx6q: add pkgconfig files for EGL, OpenGLESv2 and OpenVG
---
Changes v2 -> v3:
- Define EGL_API_FB if GPU_VIV_BIN_MX6Q_LIB_TARGET == fb (suggested by J?r?me Pouiller)
Changes v1 -> v2:
- Add .pc files to package dir instead of patching (suggested by Arnout Vandecappelle)
- EGL library needs requires -lGAL, too (suggested by Arnout Vandecappelle)
- Added .pc file for OpenVG (suggested by Arnout Vandecappelle)
--- package/freescale-imx/gpu-viv-bin-mx6q/egl.pc | 10 ++++++++++ package/freescale-imx/gpu-viv-bin-mx6q/glesv2.pc | 10 ++++++++++ package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk | 9 +++++++++ package/freescale-imx/gpu-viv-bin-mx6q/vg.pc | 10 ++++++++++ 4 files changed, 39 insertions(+) create mode 100644 package/freescale-imx/gpu-viv-bin-mx6q/egl.pc create mode 100644 package/freescale-imx/gpu-viv-bin-mx6q/glesv2.pc create mode 100644 package/freescale-imx/gpu-viv-bin-mx6q/vg.pc
package/freescale-imx/gpu-viv-bin-mx6q/egl.pc new file +10 -0
@@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: egl +Description: Freescale gpu-viv-bin-mx6q implementation of EGL +Version: 1.0 +Libs: -L${libdir} -lGAL -lEGL +Cflags: -I${includedir}/ -DEGL_API_FB=1
package/freescale-imx/gpu-viv-bin-mx6q/glesv2.pc new file +10 -0
@@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: glesv2 +Description: Freescale gpu-viv-bin-mx6q implementation of OpenGL ESv2 +Version: 2.0 +Libs: -L${libdir} -lGAL -lEGL -lGLESv2 +Cflags: -I${includedir}/ -DEGL_API_FB=1
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk +9 -0
@@ -51,6 +51,15 @@ endef define GPU_VIV_BIN_MX6Q_INSTALL_STAGING_CMDS cp -r $(@D)/usr/* $(STAGING_DIR)/usr + for lib in egl glesv2 vg; do \ + $(INSTALL) -m 0644 -D \ + package/freescale-imx/gpu-viv-bin-mx6q/$${lib}.pc \ + $(STAGING_DIR)/usr/lib/pkgconfig/$${lib}.pc; \ + if [ "$(GPU_VIV_BIN_MX6Q_LIB_TARGET)" != "fb" ]; then \ + $(SED) "s/-DEGL_API_FB=1//" \ + $(STAGING_DIR)/usr/lib/pkgconfig/$${lib}.pc; \ + fi; \ + done endef ifeq ($(BR2_PACKAGE_GPU_VIV_BIN_MX6Q_EXAMPLES),y)
package/freescale-imx/gpu-viv-bin-mx6q/vg.pc new file +10 -0
@@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: vg +Description: Freescale gpu-viv-bin-mx6q implementation of OpenVG +Version: 1.1 +Libs: -L${libdir} -lGAL -lEGL -lOpenVG +Cflags: -I${includedir}/ -DEGL_API_FB=1
Signature · 1 line
1.7.10.4
PATCH v3 1/1 gpu-viv-bin-mx6q: add pkgconfig files for EGL, OpenGLESv2 and OpenVG
Dear Fatih A??c?,
Quoted 1 line · Fatih A??c?
Signed-off-by Fatih A??c? <[email protected]>
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v3 1/1 gpu-viv-bin-mx6q: add pkgconfig files for EGL, OpenGLESv2 and OpenVG
In reply to Fatih AşıcıQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fatih" == Fatih A??c? <[email protected]> writes:
Fatih> Signed-off-by: Fatih A??c? <[email protected]> Fatih> ---
Fatih> Changes v2 -> v3:
Fatih> - Define EGL_API_FB if GPU_VIV_BIN_MX6Q_LIB_TARGET == fb (suggested by
Fatih> J?r?me Pouiller)
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard