config.py 532 B

1234567891011121314151617181920212223
  1. def can_build(env, platform):
  2. if not env["tools"]:
  3. return False
  4. # Depends on Embree library, which only supports x86_64 and aarch64.
  5. if env["arch"] in ["arm", "arm32"] or env["arch"].startswith("rv") or env["arch"].startswith("ppc"):
  6. return False
  7. if platform == "android":
  8. return env["android_arch"] in ["arm64v8", "x86_64"]
  9. if platform in ["javascript", "server"]:
  10. return False
  11. if env["bits"] == "32":
  12. return False
  13. return True
  14. def configure(env):
  15. pass