diff options
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/emgd-gl.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/emgd-gl.bbclass b/classes/emgd-gl.bbclass new file mode 100644 index 00000000..ef1df699 --- /dev/null +++ b/classes/emgd-gl.bbclass | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | # give a different PACKAGE_ARCH to the recipes involved with opengl | ||
| 2 | python __anonymous () { | ||
| 3 | provides = set((d.getVar("PROVIDES", True) or "").split()) | ||
| 4 | depends = set((d.getVar("DEPENDS", True) or "").split()) | ||
| 5 | |||
| 6 | glp = set([ "virtual/libgles1", "virtual/libgles2", "virtual/egl", "virtual/mesa" , "virtual/libgl"]) | ||
| 7 | if list(glp & (provides | depends)): # set union & intersection operations | ||
| 8 | # matched | ||
| 9 | d.appendVar("PACKAGE_ARCH", "${GLSUFFIX}") | ||
| 10 | return | ||
| 11 | } | ||
