公司使用什么来构建二进制文件?

发布于 2024-09-24 22:01:54 字数 148 浏览 3 评论 0原文

现代公司使用什么来编译和链接他们的项目?

特别是对于大型项目,makefile 似乎不够实用,无法扩展。据我所知,许多公司使用内部构建系统或在现有构建系统之上的内部脚本。

大型项目使用make吗? 是使用纯 Ant、Maven 等还是用一些脚本封装?

What do modern companies use to compile and link their projects?

Especially with large projects, makefiles don't seem usable enough to be scalable. As far as I can tell, many companies use either in-house build systems or in-house scripts on top of existing build systems.

Do large projects use make?
Is pure Ant, Maven, etc used or is it wrapped with some script?

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

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

发布评论

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

评论(5

终弃我 2024-10-01 22:01:54

现在很多人都在使用 CMake,它可以为各种平台自动生成 makefile。不幸的是 CMake 有它自己的(奇怪的)内部语言,这就是为什么我个人更喜欢 SCons - 任何它自然不能做的事情都可以轻松添加 - 毕竟它只是 Python代码。查看使用 SCons 的操作系统项目列表。其中许多是相当大且不平凡的多平台构建。

A lot use CMake these days, which auto-generates makefiles for various platforms. Unfortunately CMake has its own (weird) internal language, which is why I personally prefer SCons - anything it can't do naturally can be easily added - after all it's just Python code. Take a look at the list of OS projects using SCons. Many of them are quite large and non-trivial multi-platform builds.

入画浅相思 2024-10-01 22:01:54

在我上一家公司,我们使用英特尔编译器和用 python 编写的自定义 SCons 脚本。开发是用 C++ 进行的。我们发布的产品是巨大的视觉软件包。

SCons:“SCons 是一个开源软件构建工具,即下一个将 SCons 视为经典 Make 实用程序的改进的跨平台替代品,具有类似于 autoconf/automake 的集成功能和 ccache 等编译器缓存。简而言之,SCons 是一种更简单、更可靠和更快的方法。构建软件。”

We used intel compilers with custom SCons scripts written in python at my last company. Development was in C++. The products we released were huge visual software packages.

SCons: "SCons is an Open Source software construction tool—that is, a next-generation build tool. Think of SCons as an improved, cross-platform substitute for the classic Make utility with integrated functionality similar to autoconf/automake and compiler caches such as ccache. In short, SCons is an easier, more reliable and faster way to build software."

猫七 2024-10-01 22:01:54

我在电信 OEM 工作了 10 多年,开发的每一款产品都使用过 make。有些相对较小,有些则远远超过 1M SLOC。大部分源代码都是 c,其中有大量的 c++。大多数使用第 3 方源,并且所有供应商都随其产品提供 makefile。

请记住,您用来构建产品的系统是软件。无论构建软件是用 make、SCons 还是其他语言/系统编写的,您必须了解用于编写构建产品的软件的语言。如果不这样做,您就有可能因构建系统不正确而在产品中引入错误。

Every product I've worked on in 10+ years at telecom OEMs has used make. Some were relatively small, others were well over 1M SLOC. Most of the source has been c, with a significant amount of c++. Most used 3rd party sources, and all the vendors ship makefiles with their products.

Remember that the system you use to build your product is software. Whether that build software is written in make, SCons, or some other language/system, you must understand the language that you're using to write the software that builds your product. Fail to do this, and you risk introducing bugs in your product caused by an incorrect build system.

秋叶绚丽 2024-10-01 22:01:54

makemakefile 对于 C 来说就像 ant 对于 java 一样自然

make and makefile is as natural to C as is ant to java

落日海湾 2024-10-01 22:01:54

一些大型项目(例如 Boost)会避开其中一种 Jams

Some big projects (e.g., Boost) eschew make in favor of one of the Jams.

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