(Qb) Add ANGLE build option - currently requires you to put the required

libs in angle-x64 dir and then have the shared libs inside the main root
dir - after this, we want to try static linking
This commit is contained in:
twinaphex 2019-12-07 21:00:46 +01:00
parent dfda4f3519
commit 14c5825769
2 changed files with 10 additions and 0 deletions

View File

@ -1953,6 +1953,13 @@ ifneq ($(findstring Win32,$(OS)),)
LIBS += -lhid -lsetupapi
endif
ifeq ($(HAVE_ANGLE), 1)
OBJ += gfx/common/angle_common.o
DEFINES += -DHAVE_ANGLE
# TODO/FIXME - should perhaps set these libraries as separate CFLAG variables in qb system
LIBS += -lEGL -lGLESv2
endif
# Record
ifeq ($(HAVE_FFMPEG), 1)

View File

@ -108,6 +108,9 @@ fi
if [ "$HAVE_ANGLE" = 'yes' ]; then
eval "HAVE_EGL=\"yes\""
add_dirs INCLUDE ./gfx/include/ANGLE
add_dirs LIBRARY ./angle-x64
add_opt OPENGL no
add_opt OPENGLES yes
else
check_header EGL EGL/egl.h EGL/eglext.h
# some systems have EGL libs, but no pkgconfig