Merge pull request #101327 from Repiteo/scons/specify-module-optional-dependencies

SCons: Specify optional dependencies for modules
This commit is contained in:
Rémi Verschelde 2025-01-09 13:51:14 +01:00
commit cb483e53ca
4 changed files with 4 additions and 0 deletions

View file

@ -1,4 +1,5 @@
def can_build(env, platform):
env.module_add_dependencies("gltf", ["csg", "gridmap"], True)
return not env["disable_3d"]

View file

@ -1,4 +1,5 @@
def can_build(env, platform):
env.module_add_dependencies("navigation", ["csg", "gridmap"], True)
return not env["disable_3d"]

View file

@ -1,4 +1,5 @@
def can_build(env, platform):
env.module_add_dependencies("text_server_adv", ["freetype", "msdfgen", "svg"], True)
return True

View file

@ -1,4 +1,5 @@
def can_build(env, platform):
env.module_add_dependencies("text_server_fb", ["freetype", "msdfgen", "svg"], True)
return True