Commit fd4d9c75 authored by Keith Packard's avatar Keith Packard
Browse files

hw/xwin: Look for gl spec files in $(srcdir) or .

Tarballs include the downloaded gl spec files, which will end up in
$(srcdir). But, git-based builds will not have them at all and will
need to download them from They'll land in in the build
directory instead of $(srcdir), and so we need to allow them to be in
either place.

This change checks for the files in $(srcdir), linking them to . if
present. Otherwise, it downloads them from

A suggested better solution is to have Mesa install these files somewhere.

Signed-off-by: Keith Packard's avatarKeith Packard <>
Tested-by: default avatarKristian Høgsberg <>
parent 6b951dec
......@@ -45,10 +45,10 @@
generated_gl_wrappers.c: gl.spec
$(srcdir)/ --spec=$(srcdir)/gl.spec --typemap=$(srcdir)/ --dispatch-header=$(top_srcdir)/glx/dispatch.h --staticwrappers >generated_gl_wrappers.c
$(srcdir)/ --spec=`test -e gl.spec || echo $(srcdir)/`gl.spec --typemap=`test -e || echo $(srcdir)/` --dispatch-header=$(top_srcdir)/glx/dispatch.h --staticwrappers >generated_gl_wrappers.c
generated_wgl_wrappers.c: wglext.spec
$(srcdir)/ --spec=$(srcdir)/wglext.spec --typemap=$(srcdir)/ --prefix=wgl --preresolve >generated_wgl_wrappers.c
$(srcdir)/ --spec=`test -e wglext.spec || echo $(srcdir)/`wglext.spec --typemap=`test -e || echo $(srcdir)/` --prefix=wgl --preresolve >generated_wgl_wrappers.c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment