In android it is not that easily possible to set environment variables, so we hardcro... dev master
authorDaniel G <giri@nwrk.biz>
Tue, 26 Feb 2019 15:02:54 +0000 (16:02 +0100)
committerDaniel G <giri@nwrk.biz>
Tue, 26 Feb 2019 15:02:54 +0000 (16:02 +0100)
_template/packages/gl4es1.1.0/Makefile

index d0392ad..77b7c9b 100644 (file)
@@ -20,10 +20,13 @@ unpack:
 android_arm:
        export NDK_PROJECT_PATH=$(WORKDIR); \
        cp -r $(WORKDIR)/gl4es-1.1.0 $(WORKDIR)/jni; \
+#      sed -i -e '/LOCAL_CFLAGS += -DNOX11/ a  LOCAL_CFLAGS += -DNOEGL ' $(WORKDIR)/jni/Android.mk; \
+       sed -i -e '/LOCAL_CFLAGS += -DNOX11/ a  LOCAL_CFLAGS += -DUSE_FBIO ' $(WORKDIR)/jni/Android.mk; \
        sed -i -e 's~-DNOX11~-I$(WORKDIR)/../../lib_include/android_arm~g' $(WORKDIR)/jni/Android.mk; \
 #      sed -i -e 's/BUILD_STATIC_LIBRARY/BUILD_SHARED_LIBRARY/g' $(WORKDIR)/jni/Android.mk; \
        sed -i -e 's/#LOCAL_CFLAGS += -DDEFAULT_ES=2/LOCAL_CFLAGS += -DDEFAULT_ES=2/g' $(WORKDIR)/jni/Android.mk; \
 #      sed -i -e 's/#LOCAL_CFLAGS += -DNO_INIT_CONSTRUCTOR/LOCAL_CFLAGS += -DNO_INIT_CONSTRUCTOR/g' $(WORKDIR)/jni/Android.mk; \
+       sed -i -e 's/getenv("LIBGL_FB")/ "3"/g' $(WORKDIR)/jni/src/gl/init.c; \
        sed -i -e '/src\/glx\/streaming.c.*/ a  src\/glx\/rpi.c src\/glx\/utils.c' $(WORKDIR)/jni/Android.mk; \
        echo "APP_ABI := armeabi-v7a"> $(WORKDIR)/jni/Application.mk; \
        /usr/lib/android-ndk/ndk-build