aboutsummaryrefslogtreecommitdiffstats
path: root/classes/emgd-gl.bbclass
blob: ef1df699c22f44c16517e55cb6f7d6c0c2cf2d1c (plain)
1
2
3
4
5
6
7
8
9
10
11
# give a different PACKAGE_ARCH to the recipes involved with opengl
python __anonymous () {
    provides = set((d.getVar("PROVIDES", True) or "").split())
    depends = set((d.getVar("DEPENDS", True) or "").split())

    glp = set([ "virtual/libgles1", "virtual/libgles2", "virtual/egl", "virtual/mesa" , "virtual/libgl"])
    if list(glp & (provides | depends)): # set union & intersection operations
        # matched
        d.appendVar("PACKAGE_ARCH", "${GLSUFFIX}")
    return
}