Created
February 25, 2016 23:40
-
-
Save kived/2dab5813864ee9dc9973 to your computer and use it in GitHub Desktop.
Kivy: build with EGL/GLESv2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/setup.py b/setup.py | |
index d1f9801..86e4337 100644 | |
--- a/setup.py | |
+++ b/setup.py | |
@@ -581,7 +581,12 @@ def determine_gl_flags(): | |
flags['libraries'] = ['GLESv2'] | |
c_options['use_x11'] = True | |
c_options['use_egl'] = True | |
- else: | |
+ if c_options['use_egl'] and 'EGL' not in flags['libraries']: | |
+ flags['libraries'].append('EGL') | |
+ if c_options['use_opengl_es2']: | |
+ if 'GLESv2' not in flags['libraries']: | |
+ flags['libraries'].append('GLESv2') | |
+ elif 'GL' not in flags['libraries']: | |
flags['libraries'] = ['GL'] | |
if c_options['use_glew']: | |
if platform == 'win32': |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment