add PrepareModuleBuilding function

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1736 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
qiuyiuestc@gmail.com 2011-10-04 01:05:11 +00:00
parent 1e712ebcdc
commit 02c43b16b0
1 changed files with 15 additions and 0 deletions

View File

@ -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'):