proposed fix for raspbian stretch EGL/GLESv2 to brcmEGL/brcmGLESv2 naming

This commit is contained in:
Rasmus Pedersen 2017-09-01 13:48:22 +02:00
parent 500de18ac4
commit 9d1b531a4c
1 changed files with 6 additions and 1 deletions

View File

@ -598,7 +598,12 @@ def determine_gl_flags():
'/opt/vc/include/interface/vcos/pthreads',
'/opt/vc/include/interface/vmcs_host/linux']
flags['library_dirs'] = ['/opt/vc/lib']
flags['libraries'] = ['bcm_host', 'EGL', 'GLESv2']
from platform import linux_distribution
dist = linux_distribution()
if if dist[0] == 'debian' and float(dist[1]) >= 9.1:
flags['libraries'] = ['bcm_host', 'brcmEGL', 'brcmGLESv2']
else:
flags['libraries'] = ['bcm_host', 'EGL', 'GLESv2']
elif platform == 'mali':
flags['include_dirs'] = ['/usr/include/']
flags['library_dirs'] = ['/usr/lib/arm-linux-gnueabihf']