config.py 726 B

12345678910111213141516171819
  1. def can_build(env, platform):
  2. # Thirdparty dependency OpenImage Denoise includes oneDNN library
  3. # and the version we use only supports x86_64.
  4. # It's also only relevant for tools build and desktop platforms,
  5. # as doing lightmap generation and denoising on Android or HTML5
  6. # would be a bit far-fetched.
  7. desktop_platforms = ["linuxbsd", "osx", "windows"]
  8. supported_arch = env["bits"] == "64"
  9. if env["arch"] == "arm64":
  10. supported_arch = False
  11. if env["arch"].startswith("ppc"):
  12. supported_arch = False
  13. if env["arch"].startswith("rv"):
  14. supported_arch = False
  15. return env["tools"] and platform in desktop_platforms and supported_arch
  16. def configure(env):
  17. pass