Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yue/build-gn
Standalone GN with builtin configs.
https://github.com/yue/build-gn
Last synced: about 2 months ago
JSON representation
Standalone GN with builtin configs.
- Host: GitHub
- URL: https://github.com/yue/build-gn
- Owner: yue
- License: bsd-3-clause
- Created: 2017-09-29T01:51:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-09T11:41:54.000Z (10 months ago)
- Last Synced: 2024-04-15T01:04:21.316Z (9 months ago)
- Language: Python
- Homepage:
- Size: 6.57 MB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# build-gn
This is a modified version of GN that provides Chromium's build configurations
as builtin rules, which can be used to build any project.## How to use
1. Download the zip archive from
[Releases](https://github.com/yue/build-gn/releases) page and extrat it.
2. Add the directory to `PATH`.
3. Write to project's top level `.gn` file with `use_chromium_config = true`.
4. Run `gn gen`.Example project files can be found under
[examples](https://github.com/yue/build-gn/tree/master/examples).## Disclaimer
This project is not affliated with Chromium or Google, use it at your own risk.
## Build
```
node scripts/bootstrap.js
node scripts/build.js
```## Changes to official Chromium GN configurations
* Added `use_chromium_config` and `chromium_config_dir` variables.
* Default args changed to `is_clang=false use_sysroot=false` on Linux.
* Default args changed to `use_xcode_clang=true` on macOS.
* The `DEPOT_TOOLS_WIN_TOOLCHAIN` is set to `0` by default on Windows.
* Certain very Chromium-specific configurations have been removed.