Clone of mesa.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. """x11
  2. Tool-specific initialization for X11
  3. """
  4. #
  5. # Copyright (c) 2010 VMware, Inc.
  6. #
  7. # Permission is hereby granted, free of charge, to any person obtaining
  8. # a copy of this software and associated documentation files (the
  9. # "Software"), to deal in the Software without restriction, including
  10. # without limitation the rights to use, copy, modify, merge, publish,
  11. # distribute, sublicense, and/or sell copies of the Software, and to
  12. # permit persons to whom the Software is furnished to do so, subject to
  13. # the following conditions:
  14. #
  15. # The above copyright notice and this permission notice shall be included
  16. # in all copies or substantial portions of the Software.
  17. #
  18. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
  19. # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  20. # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  21. # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  22. # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  23. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  24. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. #
  26. def generate(env):
  27. env.Append(CPPPATH = ['/usr/X11R6/include'])
  28. env.Append(LIBPATH = ['/usr/X11R6/lib'])
  29. env.Append(LIBS = [
  30. 'X11',
  31. 'Xext',
  32. 'Xxf86vm',
  33. 'Xdamage',
  34. 'Xfixes',
  35. ])
  36. def exists(env):
  37. # TODO: actually detect the presence of the headers
  38. if env['platform'] in ('linux', 'freebsd', 'darwin'):
  39. return True
  40. else:
  41. return False
  42. # vim:set ts=4 sw=4 et: