diff options
| author | [email protected] <[email protected]> | 2012-07-22 11:17:04 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-07-22 11:17:04 +0000 |
| commit | 8cf479caaa7a5840b926245e13e96f789180d758 (patch) | |
| tree | 8294854c0aeb779b151f87ec7aa575259660fe7e /libcpu/SConscript | |
| parent | 0b1f74870105bf32277a7d40e9a9b4919a43826c (diff) | |
add "remove_components" feature
If one do not want to use some components in the RTT_ROOT, it can pass a remove_components=['the_component'] parameter to PrepareBuilding. Sample code is:
RTT_RTGUI = os.getenv('RTT_RTGUI')
# if GUI dir is set to other place, don't use the one in RTT_ROOT
if RTT_RTGUI:
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False, remove_components=['rtgui'])
objs += SConscript(os.path.join(RTT_RTGUI, 'SConscript'))
else:
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
You can safely omit the parameter if you do not want to remove any components.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2227 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu/SConscript')
0 files changed, 0 insertions, 0 deletions
