Eclipse CDT prepost build step - portable solution - Stack Overflow

I need to support an Eclipse (CDT) [cross compile to an embedded target] I need to support builds on bo

I need to support an Eclipse (CDT) [cross compile to an embedded target] I need to support builds on both Windows and Linux

We use "pre/post" build steps that are non-trivial. So we do these steps in Windows BATCH or Linux BASH scripts. Windows does not support #!sh-bang syntax but Eclipse project files do not have the ability to dynamically change this based on the host OS.

I'm looking for suggestions.

Options:

  1. Write all steps in Python? This introduces several other issues.

    Chiefly: Some IDE/Eclipse vendors install a private version of Python Reason: GDB now supports Python plugins and due to Python compatibility of shared libraries - These Eclipse instances include their own version of Python. This means we need to have various Python modules installed in numerous Python instances.

    Please do not suggest Python virtual environments - because these are not invoked when you double click on the "Eclipse icon" in the Windows environment (same issue with Linux desktop icons) and that virtualenv would be different for each type of project. Fixing this on every PC is a non-trivial endeavor.

  2. On Linux, - implement a "cmd" like shim/replacement for cmd.exe on windows. I could be really nasty like: Limit the PRE/POST to executing exactly 1 script file, i.e. cmd FOOBAR.bat

    Then on Linux, the "cmd" - solution could be restricted to exactly translating the "FOOBAR.bat" to "FOOBAR.sh" - and executing that sh file instead?

  3. Write everything in Powershell and install Powershell in linux

Does anybody have any alternatives?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744393482a4572023.html

相关推荐

  • Eclipse CDT prepost build step - portable solution - Stack Overflow

    I need to support an Eclipse (CDT) [cross compile to an embedded target] I need to support builds on bo

    7天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信