编写构建脚本的最佳框架

发布于 2024-09-17 11:29:39 字数 253 浏览 0 评论 0原文

一些基本要求是:

  1. 基本构建脚本要求,例如从 scm 中提取、复制、编译:)
  2. Windows、Unix(Solaris、HPUX、AIX)和 Linux 上的兼容性。

我听说过几个不错的选择,例如 scons、ant 等,但想知道您最喜欢的选择是什么?
目前我有 36 个 kornshell 脚本,我需要移植这些脚本,因为即使在 Windows 中的 UNIX 子系统中也无法正确支持 kornshell。

Some of basic requirements are:

  1. Basic build scripts requirements like pulling from scm, copying, compiling :)
  2. Compatibility on Windows, Unix (Solaris, HPUX, AIX) and Linux.

I have heard of several good options like scons, ant etc but would like to know what is your favorite choice?
Currently I have 36 kornshell scripts which i need to port as kornshell is not supported properly even in SubSystem for UNIX in windows.

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

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

发布评论

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

评论(1

淡看悲欢离合 2024-09-24 11:29:39

我的票投给了 cmake。对我来说很重要的是它是一个元构建系统。

CMake 生成可在您选择的编译器环境中使用的本机 makefile 和工作区。

Linux 用户使用 eclipse,Windows 用户使用 Visual Studio。
我还考虑了 scons 背后有 python 的全部功能,但如 scons wiki< 中所述/a>:

总而言之,我非常主观的意见是 scons 是一个更好的想法,但 CMake 有更强的实现

My vote goes for cmake. It is important for me that it is a meta buildsystem.

CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice.

Linux users work with eclipse, windows user with visual studio.
I also considered scons with the full power of python behind it but as stated in the scons wiki:

To sum up, my very subjective opinion is that scons is a better idea, but CMake has a stronger implementation

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