About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/egl/generate/gen_egl_dispatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/generate/gen_egl_dispatch.py')
-rw-r--r--src/egl/generate/gen_egl_dispatch.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/egl/generate/gen_egl_dispatch.py b/src/egl/generate/gen_egl_dispatch.py
index 950ef01d8a0..af14ddfe94c 100644
--- a/src/egl/generate/gen_egl_dispatch.py
+++ b/src/egl/generate/gen_egl_dispatch.py
@@ -45,6 +45,8 @@ import genCommon
def main():
parser = argparse.ArgumentParser()
+ parser.add_argument("--bind-wl-display", action="store_true",
+ help="Include EGL_WL_bind_wayland_display")
parser.add_argument("target", choices=("header", "source"),
help="Whether to build the source or header file.")
parser.add_argument("xml_files", nargs="+",
@@ -56,9 +58,11 @@ def main():
xmlByName = dict((f.name, f) for f in xmlFunctions)
functions = []
for (name, eglFunc) in eglFunctionList.EGL_FUNCTIONS:
+ if not args.bind_wl_display and "Wayland" in name:
+ continue
func = xmlByName[name]
eglFunc = fixupEglFunc(func, eglFunc)
- functions.append((func, eglFunc))
+ functions.append((func, eglFunc))
# Sort the function list by name.
functions = sorted(functions, key=lambda f: f[0].name)