Generate .bat file with the cl command (Microsoft Compiler)
I would like premake to simply generate something like a .bat file with the cl command that would compile the project. I don't want to generate an entire Visual Studio solution. I find that to be completely unnecessary. I just want Premake to build the cl command for me.
Thank you.
It wouldn't be too hard a project. Pull requests welcome!
Do you mean I could implement this myself and it wouldn't be hard? Do you have any pointers? Where should I start? @TurkeyMan
I would recommend moving over to Premake5, this version (Premake4) isn't really maintained anymore and you'll need to dig through the code yourself if you encounter issues since most others won't know exactly how this version works anymore.
Anyway, if you're going to stick with Premake4, you can look at this for an example of an action and then I'd recommend using either the gmake or vstudio action to guide you the rest of the way. I haven't looked at their contents at all, but I would expect the gmake action to be simpler and much closer to what you're going to want than the vstudio action.
Do you mean a make file; as in NMake-file? I think that'd be more work than you may think. The problem being that all current MSVC/VS-related functionality in Premake4 aims for Visual Studio projects/solutions. And they have a different way to encode compiler flags than merely placing the command lines into some file (CMake did that for quite some time, haven't checked it very recently, though).
It's certainly possible, but you would have to map out all these XML elements in the reverse from what was done for Premake4 originally.