rt-thread-official/tools
chaos.proton@gmail.com 8cf479caaa 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
2012-07-22 11:17:04 +00:00
..
buildbot.py add buildbot script. 2012-01-08 03:14:19 +00:00
building.py add "remove_components" feature 2012-07-22 11:17:04 +00:00
iar.py add the search path to right place for IAR(M16C) 2012-06-26 06:50:23 +00:00
keil.py fix a warning in keil.py 2012-07-22 10:49:52 +00:00
utils.py cleanup the building script in tools. 2012-02-19 09:11:35 +00:00