基于 Windows 的 make 工具的推荐

发布于 2024-07-11 16:17:13 字数 77 浏览 2 评论 0原文

有人有什么好的、快速的制作工具推荐吗? SCons? KJam? 还有别的事吗?

跨平台工具也是可以接受的。

Does anyone have any recommendations for a good, fast, make tool? SCons? KJam? Something else?

Cross platform tools would also be acceptable.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

你不是我要的菜∠ 2024-07-18 16:17:13
  • GNU make 速度很快,但本机 Windows 移植不是很完善; 关于使用哪个 shell 来执行命令等问题存在很多陷阱。 (在 GNU make 手册中搜索“MS-DOS”。 )
  • SCons 在 Windows 上运行得很好。 SCons(我上次查看时)在大型项目(数千个文件及以上)上存在一些严重的性能问题,但那是几年前的事了。
  • 如果您想在 Visual Studio 中工作但仍保持跨平台并允许在其他平台上使用其他开发工具,CMake 是一个出色的工具。 还可以为 Windows 生成 makefile,因此您不必局限于 Visual Studio。
  • 无论您如何看待 Ant,它都不是 Make 的替代品。 这就像说 SUV 是一级方程式赛车的替代品一样。 他们是完全不同的野兽。 Ant 对某些事情有好处,对另一些事情也有好处。
  • 有一个相对较新的工具,名为 premake,您可能需要研究一下。 我看的时候看起来很有希望,但我还没有详细检查过。
  • GNU make is fast, but the native Windows-port is not very polished; there are a lot of pitfal regarding things like which shell is used to execute your commands. (Search for "MS-DOS" in the GNU make manual.)
  • SCons works very well on Windows. SCons had (last time I looked) some serious performance issues on large projects (thousands of files and upwards), but that was a couple of years ago.
  • CMake is an excellent tool if you want to work in Visual Studio but still stay crossplatform and allow other development tools on other platform. Can also generate makefiles for windows, so you're not bound to Visual Studio.
  • Whatever you may think of Ant, it is not a replacement for Make. That's like saying that a SUV is a replacement for a Formula 1 car. They are entirely different beasts. Ant is good for some things, and make for others.
  • There is a relatively new tool called premake which you may want to investigate. It looked promisiing when I looked, but I haven't checked it out in any detail.
节枝 2024-07-18 16:17:13

你的标题中提到了在PC上,所以我假设你指的是Windows? 如果是这样,我建议安装 Cygwin 环境,如果您安装所有软件包,GNU's make 是交易的一部分。 如果您使用的是 Linux 平台或 Unix 变体之一,那么您可以直接使用 GNU make。

On a PC is said in your title, so I assume you mean Windows? If so, I would recommend installing the Cygwin environment and if you install all the packages along with it, GNU's make is part of the deal. If you are on a Linux platform or one of the Unix variants, then you can just go with the GNU make directly.

著墨染雨君画夕 2024-07-18 16:17:13

您可能对跨平台工具感兴趣,例如 AntRake, Gant 。 这些应该为您提供 GNU make 的大部分(如果不是全部)功能,尽管编译 C 代码可能比其他版本更难。

You may be interested in cross-platform tools like Ant, Rake, Gant. These should give you most, if not all the functionality of GNU make, though compiling C code may be harder in some than other.

醉城メ夜风 2024-07-18 16:17:13

我最近开始使用 BJam。 它是跨平台的,并且具有比 make 更清晰的语法。

I've recently started using BJam. It is cross-platform and has a saner syntax than make.

孤云独去闲 2024-07-18 16:17:13

如果您使用的是 Windows 并且拥有 .Net Framework,则可以使用 MSBuild。 它与 nAnt 非常相似,并且也得到了社区的大力支持(有一些非常详细的社区工具包)。 它的学习曲线有些陡峭,但一旦掌握了它的窍门,它就会非常强大。

另一种选择是编写 PowerShell 脚本。 我想这取决于你想做什么。 根据我对 makefile 的有限经验,它们通常是编译某些内容或设置环境条件,您将在 Windows 平台上使用批处理文件。

If you're on Windows and you have the .Net Framework, you can use MSBuild. It's very similar to nAnt, and also has a lot of support from the community (some very detailed community toolkits are out there). It has a somewhat steep learning curve, but it's quite powerful once you get the hang of it.

Also another option could be writing PowerShell scripts. It depends what you want to do I guess. In my limited experience with makefiles, they've usually be to compile something, or set environment conditions, which you would use batch files for on a Windows platform.

如果您需要构建基于 C 语言的项目,请查看 www.routinetools.com 上的 rtEasyMake。 它基于 Windows 并且非常容易设置。

If you need to build C-language based projects, take a look at rtEasyMake at www.routinetools.com. It is windows based and very easy to setup.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文