Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keworker/gn-example
Example of usage GN meta build system with explaining of Chromium structure.
https://github.com/keworker/gn-example
chromium gn-build
Last synced: about 1 month ago
JSON representation
Example of usage GN meta build system with explaining of Chromium structure.
- Host: GitHub
- URL: https://github.com/keworker/gn-example
- Owner: Keworker
- Created: 2023-12-20T16:35:48.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-02T03:01:46.000Z (10 months ago)
- Last Synced: 2024-10-13T10:22:12.466Z (2 months ago)
- Topics: chromium, gn-build
- Language: CMake
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```
2. Generate ninja files with GN:
```
gn gen out
```
3. Compile proj with Ninja:
```
ninja -C out hello
```
4. Run compiled `.exe` file:
```
out/hello
```## About Chromium project structure
You can read about Chromium GN project structure [here](https://github.com/Keworker/gn-example/tree/master/chromium-structure).