2024-06-11 20:19:07 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from misc.utility.scons_hints import *
|
|
|
|
|
2024-01-04 15:33:20 +00:00
|
|
|
Import("env")
|
|
|
|
Import("env_modules")
|
|
|
|
|
|
|
|
env_betsy = env_modules.Clone()
|
|
|
|
env_betsy.GLSL_HEADER("bc6h.glsl")
|
2024-08-20 13:14:48 +00:00
|
|
|
env_betsy.GLSL_HEADER("bc1.glsl")
|
2024-01-04 15:33:20 +00:00
|
|
|
env_betsy.Depends(Glob("*.glsl.gen.h"), ["#glsl_builders.py"])
|
|
|
|
|
|
|
|
# Thirdparty source files
|
|
|
|
thirdparty_obj = []
|
|
|
|
thirdparty_dir = "#thirdparty/betsy/"
|
|
|
|
env_betsy.Prepend(CPPPATH=[thirdparty_dir])
|
|
|
|
|
|
|
|
env_thirdparty = env_betsy.Clone()
|
|
|
|
env_thirdparty.disable_warnings()
|
|
|
|
env.modules_sources += thirdparty_obj
|
|
|
|
|
|
|
|
# Godot source files
|
|
|
|
module_obj = []
|
|
|
|
env_betsy.add_source_files(module_obj, "*.cpp")
|
|
|
|
env.modules_sources += module_obj
|
|
|
|
|
|
|
|
# Needed to force rebuilding the module files when the thirdparty library is updated.
|
|
|
|
env.Depends(module_obj, thirdparty_obj)
|