Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

check for GLESv2 #185

Merged
merged 2 commits into from

2 participants

@FernetMenta
Collaborator

I have implemented GLES rendering in VNSI. This change is required to detect availability.

@opdenkamp opdenkamp merged commit a063cd2 into opdenkamp:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 21, 2013
  1. @FernetMenta

    configure check for gles2

    FernetMenta authored
  2. @FernetMenta
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 1 deletion.
  1. +9 −0 configure.ac
  2. +1 −1  tools/rbp/depends.mk
View
9 configure.ac
@@ -144,6 +144,15 @@ if test "$have_gl" = "yes"; then
fi
echo "GL: $have_gl"
+AC_CHECK_LIB([GLESv2],[main],have_gles2=yes, have_gles2=no)
+if test "$have_gles2" = "yes"; then
+ AC_DEFINE([HAVE_GLES2],[1],["Define to 1 if we have gles2"])
+ AM_CONDITIONAL(HAVE_GLES2, true)
+else
+ AM_CONDITIONAL(HAVE_GLES2, false)
+fi
+echo "GLES2: $have_gles2"
+
### End external Libraries
### Build addons with dependencies
View
2  tools/rbp/depends.mk
@@ -7,7 +7,7 @@ ifeq ($(USE_BUILDROOT),1)
export CFLAGS+=-isystem$(SYSROOT)/usr/include -isystem$(SYSROOT)/opt/vc/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -isystem$(PREFIX)/include -isystem$(PREFIX)/usr/include/mysql --sysroot=$(SYSROOT)
export CXXFLAGS=$(CFLAGS) --sysroot=$(SYSROOT)
export CPPFLAGS=$(CFLAGS) --sysroot=$(SYSROOT)
- export LDFLAGS=-L$(SYSROOT)/opt/vc/lib -L$(XBMCPREFIX)/lib
+ export LDFLAGS=-Wl,-rpath-link,${SYSROOT}/opt/vc/lib -L$(SYSROOT)/opt/vc/lib -L$(XBMCPREFIX)/lib
export LD=$(TOOLCHAIN)/bin/$(HOST)-ld
export CC=$(TOOLCHAIN)/bin/$(HOST)-gcc
export CXX=$(TOOLCHAIN)/bin/$(HOST)-g++
Something went wrong with that request. Please try again.