【发布时间】:2014-05-27 16:49:12
【问题描述】:
现在我有一个类似的项目结构:
project1/SConstruct (creates library1 and executable1)
files
project2/SConstruct (creates library2 and executable2)
files
project3/SConstruct (creates executable3 without libraries
creates executable4 with library1 and library2)
files
我可以毫无问题地使用 SCons 构建所有项目,但我想将项目 1 和 2 的依赖项添加到项目 3 中。在项目 3 中运行 scons 时,如果项目 1 或 2 不符合要求-日期,我希望它们被建造。
这类似于SCons: directory dependency in a parallel build,不同的是我有几个SConstruct文件,每个项目一个。
我还想将命令行选项传递给依赖项项目,即在项目 3 中运行 scons debug=1 时,项目 1 和 2 将使用 debug=1 重建。
有没有办法实现这一点,或者我应该更改我的目录/构建结构?
【问题讨论】: