add PrepareModuleBuilding function
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1736 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
1e712ebcdc
commit
02c43b16b0
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue