scons
scons 编译 ucos 的 PC 版本未成功
scons简介 | scons 简用 |
---|---|
java scons | Scons OpenCV |
scons avr | |
典型写法
Program(target = 'test',
source = ['main.c', 'file1.c', 'file2.c'], LIBS = ['lib1', 'lib2'], LIBPATH = ['lib1/lib', 'lib2/lib'], CPPPATH = ['include', '/lib1/include', 'lib2/include'], CCFLAGS='-D_DEBUG' )
What is SCons
scons is a good make tool , i think it is better than make , at least easier than make .
it is writen by python .
usage : create a file named sconstruct , and type the command . samples :
Program( 'main.c' ) Object( 'main.c' ) Program( 'fun1.c','fun2.c','fun3.c' ) Program( 'out.exe',[ 'fun1.c','fun2.c','fun3.c'] )
the next thing to do is execute "scons" (or "scons -c" to del the outputfile) in the command line .
install :
pip install SCons . i succeed to download the source code , but i failed to install , os i cd in the folder and install by hand which is quite faimilar with the pythoner : python setup.py install . OK!