Skip to content

GN is a meta-build system that generates NinjaBuild files so that you can build your projects with Ninja. Synchronize from https://github.com/timniederhausen/gn-build.git,

Notifications You must be signed in to change notification settings

OpenTYeung/TYeungGN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TYeung-gn-build

GN is a meta-build system that generates NinjaBuild files so that you can build Chromium with Ninja.

This project provides a work-in-progress standalone version of the toolchains and configs used by the Chromium project.

Supported platforms

The toolchains have been tested on the following platforms:

  • Windows (MSVC 2013/2015/2017, Clang 3.8)
  • FreeBSD (GCC 5, Clang 3.7)
  • Linux (GCC 4.9, Clang 3.8)
  • OS X (Xcode 7.3.1)

gn-stuff:GN的一些相关东西,实际项目中,可以删除该目录

build:GN使用时用的基础定义文件,包括windows/linux/macos/ios/android等跨平台编译

buildtools:depot_tools中gn会自己调用buildtools中相应的系统版本GN,生成Ninja文件

source:源文件存放目录,可修改BUILD.gn文件实现

使用方法:(前提得安装depot_tools,见gn-stuff中depot_tools)

将项目文件放到source文件中(已含demo),修改BUILD.gn
在根目录调用命令:gn gen ./out(可换其他目录)
cd ./out && ninja-mac(mac os 下操作)

About

GN is a meta-build system that generates NinjaBuild files so that you can build your projects with Ninja. Synchronize from https://github.com/timniederhausen/gn-build.git,

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published