Eclipse-CDT:添加定制构建步骤的最佳方法是什么? [英] Eclipse-CDT: Whats the best way to add a custom build step?

查看:224
本文介绍了Eclipse-CDT:添加定制构建步骤的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有一个文件,需要使用外部工具进行编译,其输出是一对.c和.h文件。

I have a file in my project which I need to compile using an external tool, and the output of that is a pair of .c and .h files.

将其集成到我的Eclipse-CDT构建中的最佳方法是什么?

Whats the best way to integrate this into my Eclipse-CDT build?


  • 理想情况下,我可以使用相对路径引用外部工具

  • 理想情况下,Eclipse将知道如果我更改此文件,则它需要重新运行外部工具

我尝试将一些结果添加到项目属性下的生成器部分。

I've tried out adding something to the 'Builders' section under Project Properties with mixed results.

thx


  • Alex

推荐答案

通过添加

右键单击项目,单击属性,再单击新建...,添加要执行的文件的位置,以及任何命令行参数。

Right click on the project, Click Properties, Click New ..., Add the location of the file you want to execute, as well as any command line arguments.

这篇关于Eclipse-CDT:添加定制构建步骤的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆