GN, Custom Build Tools & Visual Studio

Skip to first unread message

Aaron Gray

May 28, 2021, 12:08:41 PM5/28/21
to ninja-build
I am working on a compiler-compiler with multiple bootstrap stages.

I am hoping to use Googles gn (Generate Ninja) for my build system, which currently is using Visual Studio 2019.

I am trying to work out if I can create Custom Build Tools for my tool stages. OR jst be able to create tools on the fly from executables, that will manifest as Visual Studio Custom Build Tools in the IDE's build system.

Hoping this can be done !

Many thanks in advance,


Brett Wilson

May 28, 2021, 11:41:23 PM5/28/21
to Aaron Gray, ninja-build
GN does not attempt to be a real meta build tool (there are some GN concepts that are not expressible in Visual Studio). The Visual Studio projects it generates actually use Ninja to do the build. So there is also integration with any VS custom build steps.


Aaron Gray

Jun 8, 2021, 10:07:00 AM6/8/21
to ninja-build
Many thanks, have looked properly at Ninja now so know so can see its level, and also looked at its source code.
Reply all
Reply to author
0 new messages