是否有任何SCons的库/框架?

时间:2021-03-20 13:28:45

Each project using SCons seems to be reinventing the wheel. I would be glad to take someones directory layout, and/or solution for variant builds(debug/release), and/or testing framework, and/or best practices.

使用SCons的每个项目似乎都在重新发明*。我很乐意采用某些目录布局和/或变体构建(调试/发布)和/或测试框架和/或最佳实践的解决方案。

Even several not-too-simple examples would help.

即使是几个不太简单的例子也会有所帮助。

4 个解决方案

#1


The SCons Recipes in the wiki is a good place to start. In addition take a look at other projects which use SCons, e.g. the Ardour build system. If that doesn't cut it, there are a few third party SCons extensions you may want to take a look at:

维基中的SCons Recipes是一个很好的起点。另外,看看使用SCons的其他项目,例如: Ardor构建系统。如果这没有削减它,你可能需要看一些第三方SCons扩展:

To the best of my knowledge, there are no SCons best practices which were agreed upon. The SCons community seems to favor adaptability over "canonicalization". It is not hard to design a decent SCons-based build system from scratch, though. (Once you have understood how VariantDir works, at least.)

据我所知,没有商定的SCons最佳实践。 SCons社区似乎更倾向于适应“规范化”。不过,从头开始设计一个像样的基于SCons的构建系统并不难。 (一旦你了解了VariantDir的工作原理,至少。)

#2


You may be interested in Google's Software Construction Toolkit that was made open source in February 2009. It adds new features on top of SCons, such as improved Visual Studio project file generation, unit test functions, and distributed builds with distcc or incredibuild.

您可能对2009年2月开源的Google软件构建工具包感兴趣。它在SCons之上添加了新功能,例如改进的Visual Studio项目文件生成,单元测试功能以及使用distcc或incredibuild的分布式构建。

#3


If you are using Eclipse for C++ development you may want to check out this SCons builder plugin (http://nic-nac-project.org/~lothar/eclipse/update/SConsBuilderPlugin.html)

如果您正在使用Eclipse进行C ++开发,您可能需要查看此SCons构建器插件(http://nic-nac-project.org/~lothar/eclipse/update/SConsBuilderPlugin.html)

#4


Another good example of SCons use is build system for MIT-licensed Godot game engine:

SCons使用的另一个很好的例子是MIT许可的Godot游戏引擎的构建系统:

#1


The SCons Recipes in the wiki is a good place to start. In addition take a look at other projects which use SCons, e.g. the Ardour build system. If that doesn't cut it, there are a few third party SCons extensions you may want to take a look at:

维基中的SCons Recipes是一个很好的起点。另外,看看使用SCons的其他项目,例如: Ardor构建系统。如果这没有削减它,你可能需要看一些第三方SCons扩展:

To the best of my knowledge, there are no SCons best practices which were agreed upon. The SCons community seems to favor adaptability over "canonicalization". It is not hard to design a decent SCons-based build system from scratch, though. (Once you have understood how VariantDir works, at least.)

据我所知,没有商定的SCons最佳实践。 SCons社区似乎更倾向于适应“规范化”。不过,从头开始设计一个像样的基于SCons的构建系统并不难。 (一旦你了解了VariantDir的工作原理,至少。)

#2


You may be interested in Google's Software Construction Toolkit that was made open source in February 2009. It adds new features on top of SCons, such as improved Visual Studio project file generation, unit test functions, and distributed builds with distcc or incredibuild.

您可能对2009年2月开源的Google软件构建工具包感兴趣。它在SCons之上添加了新功能,例如改进的Visual Studio项目文件生成,单元测试功能以及使用distcc或incredibuild的分布式构建。

#3


If you are using Eclipse for C++ development you may want to check out this SCons builder plugin (http://nic-nac-project.org/~lothar/eclipse/update/SConsBuilderPlugin.html)

如果您正在使用Eclipse进行C ++开发,您可能需要查看此SCons构建器插件(http://nic-nac-project.org/~lothar/eclipse/update/SConsBuilderPlugin.html)

#4


Another good example of SCons use is build system for MIT-licensed Godot game engine:

SCons使用的另一个很好的例子是MIT许可的Godot游戏引擎的构建系统: