detect.py 648 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import os
  2. import sys
  3. def is_active():
  4. return True
  5. def get_name():
  6. return "Haiku"
  7. def can_build():
  8. if (os.name != "posix"):
  9. return False
  10. if (sys.platform == "darwin"):
  11. return False
  12. return True
  13. def get_opts():
  14. return []
  15. def get_flags():
  16. return [
  17. ('builtin_zlib', 'no')
  18. ]
  19. def configure(env):
  20. is64=sys.maxsize > 2**32
  21. if (env["bits"]=="default"):
  22. if (is64):
  23. env["bits"]="64"
  24. else:
  25. env["bits"]="32"
  26. env.Append(CPPPATH = ['#platform/haiku'])
  27. env["CC"] = "gcc-x86"
  28. env["CXX"] = "g++-x86"
  29. env.Append(CPPFLAGS = ['-DDEBUG_METHODS_ENABLED'])
  30. env.Append(CPPFLAGS = ['-DUNIX_ENABLED'])
  31. #env.Append(LIBS = ['be'])