如何设置 Eclipse 中的产品版本?

发布于 2024-12-14 09:39:14 字数 138 浏览 1 评论 0原文

我已经创建、调试和修改了一个我一直在处理的项目,但现在我希望能够指定我正在使用的二进制文件的版本。我使用 Eclispe-CDT 和 MinGW 在我的本地系统上制作这个项目,因此不涉及版本控制软件。有谁知道如何为 Windows 和 Linux 平台指定这个?

I've created, debugged, and revised a project that I've been working on, but now I want to be able to specify what version of the binary I'm on. I'm using Eclispe-CDT with MinGW to make this project on my local system, so there is no versioning software involved. Does anyone know how to specify this for both Windows and Linux platforms?

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

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

发布评论

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

评论(1

听风念你 2024-12-21 09:39:14

在 Windows 上,其想法是生成一个包含相关信息的 COFF 文件

这是通过使用 windres 在构建中添加一个步骤来完成的也可在此处找到)。
请参阅此主题作为示例。

您可以通过项目 properties/Builders 添加 windres 作为附加构建器,并将生成的目标文件添加到 C/C++ Build/GCC C++ Linker 中/杂项/其他对象

然后你
- a)如果资源发生变化,可以进行干净的构建或者
- b) 可以更改构建选项(如果您有耐心)以更改为每次保存项目时都进行干净的构建。

在 Unix 上,这似乎不以类似的方式支持。

On Windows, the idea is to produce a COFF file with the relevant information.

That is done by adding a step to the build, using windres (found also here).
See this thread as an example.

you could add windres via the project properties/Builders as an additional builder and add the generated object file in the C/C++ Build/GCC C++ Linker/Miscellaneous/Other Objects.

Then you
- a) could do a clean build if the resource is changed or
- b) could change the build options (if you have patience) to change to do a clean build every time you save the project.

On Unix, this doesn't seem to be supported in a similar fashion.

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