Grissiom
3ee4a18506
tools: add an option to generate cscope database
...
When --cscope option is given to Scons, it will generate a cscope
cross-reference database in current directory, which is useful in
Vim(and other cscope-aware text editors). For example, `scons -s
--cscope` will do nothing except generating the database. You can use
this option with other options together.
It is inspired by the `make cscope` of Linux.
2013-06-19 18:02:03 +08:00
aozima
fd289ff34f
add a default codeblocks template.
2013-06-16 23:18:16 +08:00
aozima
7eb4120a85
fixed bug: scons: don't throw excptions when CPPDEFINES is not defined.
2013-06-16 23:05:10 +08:00
Bernard Xiong
84da2a4dcc
Keep flash setting when generate Keil MDK project.
2013-06-03 06:37:54 +08:00
Bernard Xiong
7cc284d5a0
add library file for Keil MDK project generation
2013-05-17 21:13:55 +08:00
Bernard Xiong
e58d656477
remove project.uvopt file when generate keil mdk project file
2013-04-25 14:22:56 +08:00
Rogerz Zhang
158e9cdf91
add more command string for scons
2013-03-31 23:05:04 +08:00
prife
cc3684847f
tools script: fix up mdk460 link error
2013-03-01 02:27:32 +08:00
Grissiom
c24c4f8e16
building.py: append messed up objs list, use extend to avoid that
...
The return type of SConscript is a subclass of UserList. We should use
extend to keep the depth of the list is always 1 when concatenate
SConscript return values. Thanks prife for making me realize that this
is really a problem.
Reported-and-Tested-by: prife
2013-02-24 23:29:27 +08:00
aozima
7bec8a242b
update scons: support C::B
2013-02-21 17:37:30 +08:00
Rogerz Zhang
e0048ee456
Add detail build result
2013-02-02 17:36:34 +08:00
Rogerz Zhang
2f6bf3b5ec
Rename `--default-comstr` to `--verbose`
2013-01-29 16:54:03 +08:00
Rogerz Zhang
8dcb8a6af6
Use customized command string in scons
2013-01-19 21:55:08 +08:00
Bernard Xiong
72782e9203
convert end of line
2013-01-08 05:05:02 -08:00
Rogerz Zhang
2595a64fb7
Add support for auto ci
2013-01-04 19:55:35 +08:00
bernard.xiong@gmail.com
ba4aa585a4
Update UI.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2499 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-19 13:48:10 +00:00
bernard.xiong@gmail.com
1fa210e6e3
Add RT-Thread Root folder detection.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2495 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-18 10:31:13 +00:00
bernard.xiong@gmail.com
be73747fc4
Add SConsUI tool.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2494 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-18 08:59:21 +00:00
xiongyihui3@gmail.com
5811daec0c
add compability with MDK 4.6 which changes directory of armcc.exe
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2479 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-13 05:24:41 +00:00
goprife@gmail.com
877d1b38b0
support header files addition for vs script
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2461 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-01 07:01:55 +00:00
goprife@gmail.com
9a89567e8f
fix bug in vs.py(use the env not the group to get information)
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2419 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-16 07:13:27 +00:00
bernard.xiong
0d77b327a9
Add Visual Studio project generation script.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2398 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-07 23:02:25 +00:00
bernard.xiong@gmail.com
42e003ac4d
Fix LIBS and LIBPATH merge in building script.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2393 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-05 06:58:25 +00:00
chaos.proton@gmail.com
66c5a05e62
building.py: add RegisterPreBuildingAction
...
One could register a callable object(normally a function) via RegisterPreBuildingAction in SConscript. It will be called when PreBuilding get invoked. PreBuilding should be called before the building procedure. It is currently used by RTGUI to generate the minimal perfect hash code when all the source files are scanned(i.e. just before building).
Maybe we should invoke PreBuilding in DoBuilding.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2353 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-15 13:16:35 +00:00
bernard.xiong@gmail.com
4cb779d743
Update GlobSubDir() function.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2321 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-06 03:01:02 +00:00
bernard.xiong
7cc241301a
Add GlobSubDir() function in building.py; Fix the import issue in wizard.py.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2320 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-06 00:12:38 +00:00
bernard.xiong@gmail.com
3816661798
Add buildlib option; Add wizard script.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2316 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-05 13:18:00 +00:00
wuyangyong
52fdfa1bf8
add GetConfigValue() by Grissiom.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2284 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-09 04:10:14 +00:00
bernard.xiong@gmail.com
8e95bc94b6
add --copy-header option to copy header of RT-Thread to local.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2257 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-22 06:19:04 +00:00
bernard.xiong@gmail.com
7472bfded3
Add MakeCopy function on the building script.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2252 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-11 08:43:47 +00:00
bernard.xiong@gmail.com
f6df9adbb2
fix the win32 path issue.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2244 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-01 07:33:58 +00:00
bernard.xiong@gmail.com
dddbd5078b
Fix the GNU GCC path issue.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2241 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-31 23:15:51 +00:00
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
chaos.proton@gmail.com
0b1f748701
fix a warning in keil.py
...
Fix the warning:
E:\projects\rt-thread\rtthread-svn\trunk\tools\keil.py:72: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
if not groups:
See http://docs.python.org/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.remove for detail.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2226 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-22 10:49:52 +00:00
dzzxzz@gmail.com
6c19a26481
add the search path to right place for IAR(M16C)
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2188 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-26 06:50:23 +00:00
bernard.xiong@gmail.com
9e884249b4
fixed RTT_ROOT directory issue if there is a components directory under BSP.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1972 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-02-19 09:25:34 +00:00
bernard.xiong@gmail.com
3fd6fd1f05
cleanup the building script in tools.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1970 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-02-19 09:11:35 +00:00
bernard.xiong@gmail.com
4cc052e155
fix GNU GCC path issue in building script.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1953 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-02-17 09:20:33 +00:00
bernard.xiong@gmail.com
cc2ce9fa40
fix print out warning information when use GCC as compiler.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1952 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-02-17 00:41:19 +00:00
goprife@gmail.com
e1b5d48c9b
fix bugs in building.py that is when DefineGroup method's 3rd arges "CPPDEFINES" is not null, then "scons --target=mdk -s" will get errors.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1930 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-01-31 01:41:14 +00:00
bernard.xiong@gmail.com
107ed32e80
add buildbot script.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1909 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-01-08 03:14:19 +00:00
bernard.xiong@gmail.com
a5a7c47d04
add merge group function.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1832 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-10 15:31:55 +00:00
bernard.xiong@gmail.com
6bd0252e26
update SrcRemove function in building script.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1830 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-10 13:14:26 +00:00
goprife@gmail.com
819fd97ff8
add source remove method
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1816 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-29 03:49:14 +00:00
chaos.proton@gmail.com
f8bbcf9aef
if --target is set, adjust CROSS_TOOL and PLATFORM automatically
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1792 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-11-09 02:42:48 +00:00
bernard.xiong@gmail.com
6aa93f460a
fixed file name with Chinese encoding issue, which is merged from chaos.proton@gmail.com.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1779 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-10-30 00:44:18 +00:00
qiuyiuestc@gmail.com
02c43b16b0
add PrepareModuleBuilding function
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1736 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-10-04 01:05:11 +00:00
bernard.xiong
c3854e20bb
fix the output message.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1606 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-07-04 06:39:32 +00:00
bernard.xiong
8dd602108a
rollback the command too long patch.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1598 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-07-04 04:06:38 +00:00
bernard.xiong
64b1c01fe0
MDK4 project generation can support same named file in project.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1567 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-07-01 08:22:47 +00:00