summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-11-01 14:37:18 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-11-01 14:37:18 +0000
commit0fd41d236fc3e9411180aa4978c021037ba5bbd9 (patch)
treede09026fcd6ae94b14d9968f538651ebe4e87799 /scons
parentab9ca6caa8e8b0c886317fce694460ea23bcf8b9 (diff)
scons: Restore x11 tool behavior for backwards compatability.
Diffstat (limited to 'scons')
-rw-r--r--scons/x11.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/scons/x11.py b/scons/x11.py
index 7368618f3b..99bf079626 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: