Post-build step in a CDT project with custom exe

送分小仙女□ 提交于 2019-12-11 22:58:17

问题


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?

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"

回答1:


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

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


来源:https://stackoverflow.com/questions/33676801/post-build-step-in-a-cdt-project-with-custom-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!