什么是目前最好的构建系统 [英] What is currently the best build system

查看:55
本文介绍了什么是目前最好的构建系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几年前,我研究了使用不是Make的一些构建系统,而CMake和SCons之类的工具似乎很原始.我想看看情况是否有所改善.因此,在以下条件下,什么是目前最好的构建工具:

A few years ago I looked into using some build system that isnt Make, and tools like CMake and SCons seemed pretty primitive. I'd like to find out if the situation has improved. So, under the following criteria, what is currently the best build tool:

  • 与平台无关:应在Windows,Linux,Mac上运行
  • 不可知的语言:应该内置对常见事物的内置支持,例如构建C/C ++和其他静态lang.我猜它不需要支持完整的自动工具套件.
  • 可扩展:我需要能够编写规则来生成文件,例如来自restructuredText,latex,自定义格式等.我并不真正在乎我必须使用哪种语言编写规则,但是我更喜欢使用一种真实的语言,而不是而不是DSL.
  • 我宁愿避免手工编写任何XML,例如我认为ant要求.
  • 免费提供(最好是开源的)
  • platform agnostic: should work on windows, linux, mac
  • language agnostic: should have built-in support for common things like building C/C++ and other static langs. I guess it doesn't need to support the full autotools suite.
  • extensible: I need to be able to write rules to generate files, like from restructuredText, latex, custom formats, etc. I dont really care what language I have to write the rules in, but I would prefer a real language rather than a DSL.
  • I would prefer to avoid writing any XML by hand, which I think for example ant requires.
  • Freely available (preferably open source)

最佳"一词有些主观,但我认为答案可以由上述标准客观地定级.

推荐答案

我明确表示赞成 premake .尽管它不像以前的兄弟那么强大,但是它的主要优点是荒谬的简单性和易用性.使编写多编译器,多平台代码变得轻而易举,并且无需任何额外的工作即可本地生成Visual Studio解决方案,XCode项目,Makefile和其他文件.

I'd definitively put my vote up for premake. Although it is not as powerful as it's older brothers, it's main advantage is absurd simplicity and ease of use. Makes writing multi-compiler, multi-platform code a breeze, and natively generates Visual Studio solutions, XCode projects, Makefiles, and others, without any additional work needed.

这篇关于什么是目前最好的构建系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆