diff options
| author | [email protected] <[email protected]> | 2011-10-04 01:05:11 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-10-04 01:05:11 +0000 |
| commit | 02c43b16b0e586351fc1f4bd04f7e3e41e029be5 (patch) | |
| tree | 405b221b519c834c3cbc4a1d9f82e0928b98fdd1 /tools/building.py | |
| parent | 1e712ebcdcc428752afa3b39f56483b1493c2d03 (diff) | |
add PrepareModuleBuilding function
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1736 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'tools/building.py')
| -rw-r--r-- | tools/building.py | 15 |
1 files changed, 15 insertions, 0 deletions
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'):
|
