1848b8605Smrg"""x11 2848b8605Smrg 3848b8605SmrgTool-specific initialization for X11 4848b8605Smrg 5848b8605Smrg""" 6848b8605Smrg 7848b8605Smrg# 8848b8605Smrg# Copyright (c) 2010 VMware, Inc. 9848b8605Smrg# 10848b8605Smrg# Permission is hereby granted, free of charge, to any person obtaining 11848b8605Smrg# a copy of this software and associated documentation files (the 12848b8605Smrg# "Software"), to deal in the Software without restriction, including 13848b8605Smrg# without limitation the rights to use, copy, modify, merge, publish, 14848b8605Smrg# distribute, sublicense, and/or sell copies of the Software, and to 15848b8605Smrg# permit persons to whom the Software is furnished to do so, subject to 16848b8605Smrg# the following conditions: 17848b8605Smrg# 18848b8605Smrg# The above copyright notice and this permission notice shall be included 19848b8605Smrg# in all copies or substantial portions of the Software. 20848b8605Smrg# 21848b8605Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY 22848b8605Smrg# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 23848b8605Smrg# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 24848b8605Smrg# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 25848b8605Smrg# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 26848b8605Smrg# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 27848b8605Smrg# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28848b8605Smrg# 29848b8605Smrg 30848b8605Smrg 31848b8605Smrgdef generate(env): 32848b8605Smrg env.Append(CPPPATH = ['/usr/X11R6/include']) 33848b8605Smrg env.Append(LIBPATH = ['/usr/X11R6/lib']) 34848b8605Smrg 35848b8605Smrg env.Append(LIBS = [ 36848b8605Smrg 'X11', 37848b8605Smrg 'Xext', 38848b8605Smrg 'Xxf86vm', 39848b8605Smrg 'Xdamage', 40848b8605Smrg 'Xfixes', 41848b8605Smrg ]) 42848b8605Smrg 43848b8605Smrg 44848b8605Smrgdef exists(env): 45848b8605Smrg # TODO: actually detect the presence of the headers 46848b8605Smrg if env['platform'] in ('linux', 'freebsd', 'darwin'): 47848b8605Smrg return True 48848b8605Smrg else: 49848b8605Smrg return False 50848b8605Smrg 51848b8605Smrg 52848b8605Smrg# vim:set ts=4 sw=4 et: 53