X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=scons%2Fx11.py;h=99bf079626e68e516ef12965fe2c25d9bd5ec85b;hb=41750107496858a047afa8d81d20fe903f285a78;hp=7368618f3bb5b437316bdd5bbdc84e3153f41a7a;hpb=601498ae73e654c2de997ea75075613a694d604d;p=mesa.git diff --git a/scons/x11.py b/scons/x11.py index 7368618f3bb..99bf079626e 100644 --- a/scons/x11.py +++ b/scons/x11.py @@ -29,12 +29,24 @@ Tool-specific initialization for X11 def generate(env): - # XXX: backwards compatability only - pass + env.Append(CPPPATH = ['/usr/X11R6/include']) + env.Append(LIBPATH = ['/usr/X11R6/lib']) + + env.Append(LIBS = [ + 'X11', + 'Xext', + 'Xxf86vm', + 'Xdamage', + 'Xfixes', + ]) def exists(env): - return True + # TODO: actually detect the presence of the headers + if env['platform'] in ('linux', 'freebsd', 'darwin'): + return True + else: + return False # vim:set ts=4 sw=4 et: