使用 .cproject 配置通过 CDT 进行无头构建

发布于 2024-10-18 17:03:20 字数 263 浏览 4 评论 0原文

我有一个带有 .project 和 .cproject 的 eclipse 项目,我想自动化构建过程,为此我使用

./eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data /home/user/workspace / -build 应用程序

,但它不使用 .cproject 文件来构建,我如何在构建过程中使用 .cproject 配置?

谢谢

I have a eclipse project with .project and .cproject, and I want automate the building process, for it I use

./eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data /home/user/workspace/ -build App

but it don't use the .cproject file to build, how I make for the building process use the .cproject configuration?

thanks

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

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

发布评论

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

评论(1

π浅易 2024-10-25 17:03:20

如果您的项目是 makefile 项目,那么只需按照 Francois 在评论中所说的操作即可。

如果您正在尝试构建特定配置,这取决于您拥有的 CDT 版本,就好像您可以做到这一点一样。

默认情况下,无头构建器将构建项目中指定的所有配置。在工作中,我们有原始的 CDT 7.0 版本,该版本不支持构建特定配置,但我在 CDT 7.0 的注释中看到它确实支持构建特定配置。您可以使用 -build App/Config 而不仅仅是 -build App 来实现这一点。

(注意:在家里我有带有 CDT 7.0.2 的 eclipse,它确实支持上述特定配置的无头构建,尽管使用信息仍然没有显示对它的支持,并且即将推出的 CDT 8.0 确实正确显示了用法信息)。

If your project is a makefile project then simply do what Francois said in the comments.

If you are looking at trying to build a specific configuration, it depends on which CDT Version you have, as if you can do that.

By default the headless builder will build ALL configurations specified in the project. At work we have the original CDT 7.0 version and that one did not support building a specific configuration, but I do see in the notes on CDT 7.0 that it does support building a specific configuration. You would do that by using -build App/Config instead of just -build App.

(Note: at home I have eclipse with CDT 7.0.2 and that does support the headless build of a specific configuration as above, although the usage info still doesn't show support for it, and the upcoming CDT 8.0 does correctly show the usage information).

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