This project contains most simple example of project with GN build system.
Before building, you should make sure that you have installed C++ compiler, for example, MinGW (https://www.mingw-w64.org/downloads), Ninja build system (https://github.com/ninja-build/ninja), GN meta build system (https://gn.googlesource.com/gn/).
- Generate
main.o
file with GCC compile:
gcc -Wall -c -o out/main.o main.cc
- Generate ninja files with GN:
gn gen out
- Compile proj with Ninja:
ninja -C out hello
- Run compiled
.exe
file:
out/hello
You can read about Chromium GN project structure here.