SCsub 585 B

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