Remove redudant openxr
scons option
It is the same as `module_openxr_enabled` and effectively just an alias with provided description. Most user will like to disable XR entirely (by using `disable_xr`). Or if they need to disable concretely openxr module, they are more likely understand what they need to do Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
This commit is contained in:
parent
f98d398004
commit
92963fca36
2 changed files with 1 additions and 2 deletions
|
@ -224,7 +224,6 @@ opts.Add(BoolVariable("vulkan", "Enable the vulkan rendering driver", True))
|
|||
opts.Add(BoolVariable("opengl3", "Enable the OpenGL/GLES3 rendering driver", True))
|
||||
opts.Add(BoolVariable("d3d12", "Enable the Direct3D 12 rendering driver on supported platforms", False))
|
||||
opts.Add(BoolVariable("metal", "Enable the Metal rendering driver on supported platforms (Apple arm64 only)", False))
|
||||
opts.Add(BoolVariable("openxr", "Enable the OpenXR driver", True))
|
||||
opts.Add(BoolVariable("use_volk", "Use the volk library to load the Vulkan loader dynamically", True))
|
||||
opts.Add(BoolVariable("disable_exceptions", "Force disabling exception handling code", True))
|
||||
opts.Add("custom_modules", "A list of comma-separated directory paths containing custom modules to build.", "")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
def can_build(env, platform):
|
||||
if platform in ("linuxbsd", "windows", "android", "macos"):
|
||||
return env["openxr"] and not env["disable_xr"]
|
||||
return not env["disable_xr"]
|
||||
else:
|
||||
# not supported on these platforms
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue