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:
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.
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?
Write everything in Powershell and install Powershell in linux
Does anybody have any alternatives?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744393482a4572023.html
评论列表(0条)