scons

scons

  安装scons。在根目录下运行。

  

  SCons will work with any 2.x version of Python from 2.7 on; 3.0 and later are not yet supported. If you need to install Python and have a choice, we recommend using the most recent 2.x Python version available.

   scons会被安装在下面这个路径:

   (/usr/local/bin)

   scons库会安装在下面这个目录:

  (/usr/local/lib/scons).

编译

1、Program

  新建一个SConstruct文件,内容如下:

  

  然后运行scons即可编译。

2、Object。

  

清理

  清理生成的文件。

  scons -c。

  

 文档:http://www.scons.org/doc/production/HTML/scons-user.html#chap-preface

原文地址:https://www.cnblogs.com/tekka/p/4544922.html