Ver código fonte

Add env.Depends to modules_enabled.gen.h generator

Sometimes scons doesn't detects that a new module is being added. This commit fix it.
Andrea Catania 4 anos atrás
pai
commit
b667e72adf
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      modules/SCsub

+ 2 - 0
modules/SCsub

@@ -10,6 +10,7 @@ env_modules = env.Clone()
 Export("env_modules")
 
 # Header with MODULE_*_ENABLED defines.
+env.Depends("modules_enabled.gen.h", Value(env.module_list))
 env.CommandNoCache(
     "modules_enabled.gen.h",
     Value(env.module_list),
@@ -23,6 +24,7 @@ env.CommandNoCache(
 
 # Header to be included in `tests/test_main.cpp` to run module-specific tests.
 if env["tests"]:
+    env.Depends("modules_tests.gen.h", Value(env.module_list))
     env.CommandNoCache(
         "modules_tests.gen.h",
         Value(env.module_list),