mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
19 lines
546 B
Python
19 lines
546 B
Python
#!/usr/bin/env python
|
|
|
|
Import("env")
|
|
Import("env_openxr")
|
|
|
|
module_obj = []
|
|
|
|
env_openxr.add_source_files(module_obj, "*.cpp")
|
|
|
|
# These are platform dependent
|
|
if env["platform"] == "android":
|
|
env_openxr.add_source_files(module_obj, "platform/openxr_android_extension.cpp")
|
|
if env["vulkan"]:
|
|
env_openxr.add_source_files(module_obj, "platform/openxr_vulkan_extension.cpp")
|
|
if env["opengl3"] and env["platform"] != "macos":
|
|
env_openxr.add_source_files(module_obj, "platform/openxr_opengl_extension.cpp")
|
|
|
|
env.modules_sources += module_obj
|