Skip to content

Example of usage GN meta build system with explaining of Chromium structure.

Notifications You must be signed in to change notification settings

Keworker/gn-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GN example

This project contains most simple example of project with GN build system.

Building

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/).

  1. Generate main.o file with GCC compile:
gcc -Wall -c -o out/main.o main.cc
  1. Generate ninja files with GN:
gn gen out
  1. Compile proj with Ninja:
ninja -C out hello
  1. Run compiled .exe file:
out/hello

About Chromium project structure

You can read about Chromium GN project structure here.

About

Example of usage GN meta build system with explaining of Chromium structure.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published