diff --git a/tools/building.py b/tools/building.py index 3a0c663193..56675060b6 100644 --- a/tools/building.py +++ b/tools/building.py @@ -504,6 +504,21 @@ def PrepareBuilding(env, root_directory, has_libcpu=False): return objs +def PrepareModuleBuilding(env, root_directory): + import SCons.cpp + import rtconfig + + global BuildOptions + global Projects + global Env + global Rtt_Root + + Env = env + Rtt_Root = root_directory + + # add program path + env.PrependENVPath('PATH', rtconfig.EXEC_PATH) + def GetDepend(depend): building = True if type(depend) == type('str'):