linux eclipse:运行shell命令作为pre-build命令

时间:2012-11-27 20:58:36

标签: linux eclipse eclipse-cdt

如何让eclipse / CDT(Linux)中的预构建步骤运行一个简单的shell命令,具体回显。我认为eclipse对PKG_CONFIG_PATH有一个搞砸的价值,并想看看Linux认为该值是什么。

1 个答案:

答案 0 :(得分:0)

在幕后,Eclipse使用“make”。您可以模拟编辑项目的makefile:

  • help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.cdt.doc.user/concepts/cdt_c_makefile.htm

您还可以创建:

  

“外部工具”,它位于“调试”和“运行”按钮旁边   工具栏。然后我告诉外部工具用shell运行shell   将脚本及其任何参数配置为该工具的参数。

     

http://www.eclipse.org/forums/index.php/t/61866/