SCons: Specify optional dependencies for modules

This commit is contained in:
Thaddeus Crews 2025-01-08 21:59:18 -06:00
parent 8c6dbff6d3
commit f1f33169d9
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
4 changed files with 4 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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