config.py 557 B

1234567891011121314151617181920212223
  1. def can_build(env, platform):
  2. if not env["tools"] or not env["module_raycast_enabled"]:
  3. return False
  4. # Depends on raycast module (embree), but we can't have access to the result of
  5. # `can_build()` for that module, so we need to duplicate that code as a short-term
  6. # solution.
  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