SCsub 546 B

12345678910111213141516171819
  1. #!/usr/bin/env python
  2. Import("env")
  3. Import("env_openxr")
  4. module_obj = []
  5. env_openxr.add_source_files(module_obj, "*.cpp")
  6. # These are platform dependent
  7. if env["platform"] == "android":
  8. env_openxr.add_source_files(module_obj, "platform/openxr_android_extension.cpp")
  9. if env["vulkan"]:
  10. env_openxr.add_source_files(module_obj, "platform/openxr_vulkan_extension.cpp")
  11. if env["opengl3"] and env["platform"] != "macos":
  12. env_openxr.add_source_files(module_obj, "platform/openxr_opengl_extension.cpp")
  13. env.modules_sources += module_obj