recipes-devtools: python: add support for Kivy

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
This commit is contained in:
William Huang
2021-09-02 07:25:07 -04:00
committed by Khem Raj
parent 2ff8168c64
commit b180041976
2 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
diff --git a/setup.py b/setup.py
index 9a507c6c4..3f5b70866 100644
--- a/setup.py
+++ b/setup.py
@@ -680,7 +680,18 @@ def determine_gl_flags():
c_options['use_x11'] = True
c_options['use_egl'] = True
else:
- flags['libraries'] = ['GL']
+ if cross_sysroot:
+ flags['include_dirs'] = [cross_sysroot + '/usr/include']
+ flags['library_dirs'] = [cross_sysroot + '/usr/lib']
+
+ if c_options['use_opengl_es2']:
+ print("using GLESv2 libraries")
+ flags['libraries'] = ['GLESv2']
+ else:
+ flags['libraries'] = ['GL']
+
+
+ print("cross_sysroot: " + str(cross_sysroot))
return flags, base_flags