OpenTYeung / TYeungGN

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,

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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,


Languages

Language:C++ 68.3%Language:Python 21.1%Language:Java 3.6%Language:HTML 2.6%Language:Objective-C++ 1.5%Language:Shell 1.2%Language:Roff 0.6%Language:Objective-C 0.5%Language:C 0.2%Language:nesC 0.1%Language:M4 0.1%Language:CMake 0.1%Language:Makefile 0.1%Language:Batchfile 0.1%Language:JavaScript 0.0%Language:Emacs Lisp 0.0%Language:Vim Script 0.0%Language:Assembly 0.0%Language:PowerShell 0.0%Language:CSS 0.0%