summaryrefslogtreecommitdiffstats
path: root/modules/openxr/extensions/SCsub
blob: 95b75ccd6528afb940bf09c366f2d21bc35a0a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
from misc.utility.scons_hints import *

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