+def check_glvnd_entrypoints(egl_entrypoints, glvnd_entrypoints):
+ print('Checking the GLVND entrypoints against the plain EGL ones...')
+ success = True
+
+ for egl_entrypoint in egl_entrypoints:
+ if egl_entrypoint in GLVND_EXCLUDED_ENTRYPOINTS:
+ continue
+ if egl_entrypoint not in glvnd_entrypoints:
+ print('ERROR: ' + egl_entrypoint + ' is missing from the GLVND entrypoints (src/egl/generate/eglFunctionList.py)')
+ success = False
+
+ for glvnd_entrypoint in glvnd_entrypoints:
+ if glvnd_entrypoint not in egl_entrypoints:
+ print('ERROR: ' + glvnd_entrypoint + ' is missing from the plain EGL entrypoints (src/egl/main/eglentrypoint.h)')
+ success = False
+
+ for glvnd_entrypoint in GLVND_EXCLUDED_ENTRYPOINTS:
+ if glvnd_entrypoint in glvnd_entrypoints:
+ print('ERROR: ' + glvnd_entrypoint + ' is should *not* be in the GLVND entrypoints (src/egl/generate/eglFunctionList.py)')
+ success = False
+
+ if success:
+ print('All good :)')
+ else:
+ exit(1)
+
+