Compile cocos2d-x Windows games without Visual Studio

I want to use cocos2d-x to make a Windows game. I used the cocos console:

cocos compile -p WIN32


And apparently it needs Visual Studio.

Is there an alternative to build the Windows game without Visual Studio? Anything more lightweight? I am hesitant to use Visual Studio because I actually work on many different machines and they all have somewhat limited memory.

Any other smaller IDE would do. Or even better, some sort of command line tool.

• You do not actually have to fire up the IDE to compile with VS. Just run VSDIR\Common7\Tools\VsDevCmd.bat in your console. – Esa Sep 8 '16 at 10:35