使用自定义exe在CDT项目中构建后的步骤 [英] Post-build step in a CDT project with custom exe

查看:163
本文介绍了使用自定义exe在CDT项目中构建后的步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图添加一个自定义exe到Eclipse CDT中的后期制作步骤,我的问题是:在哪里/如何提供路径,以便后期构建步骤找到exe?

I'm trying to add a custom exe to the post-build step in Eclipse CDT and my question is: where/how do I supply the path so the post-build step finds the exe?

我已经把这个exe放在了这样的后期制作步骤中。

I have put the exe in the post-build step like this

Custom_Exe fist_arg second_arg; arm-none-eabi-objcopy -O binary "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.bin" && arm-none-eabi-size "${BuildArtifactFileName}"

文件夹在主项目文件夹中,即

The exe is located in a sub-folder in the main project folder i.e.

"Project_Folder/Preparer/Custom_Exe.exe"


推荐答案

在文件之前添加相对于工作空间和项目名称的路径。

Added the path before the file relative to the workspace and project name.

${workspace_loc:/${ProjName}}/Preparer/Custom_Exe "${BuildArtifactFileBaseName}.bin" v0.71

这篇关于使用自定义exe在CDT项目中构建后的步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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