Git Product home page Git Product logo

gn_build's Introduction

gn_build

A standalone version of the GN "//build" toolchains and configurations.

This repo is drawn from the Chromium project at git revision a877c035d7, and removed some code coupled with the Chromium project to make it work standalone.

The main purpose of starting this project is to use the perfect iOS/macOS template such as ios_framework_bundle, mac_framework_bundle, and tons of well-tested default toolchain configurations such as cxxflags, ldflags.

Contents

Core GN templates and configuration and core Python build scripts.

  • //build/config - Common templates via .gni files.
  • //build/toolchain - GN toolchain definitions.
  • Other .py files - Some are used by GN/Ninja. Some by gclient hooks, some are just random utilities.

Quick start guide

Clone Google's official GN repository https://gn.googlesource.com/gn/,

which contains a few simple example projects to help you quickly get started with GN.

Worked and well tested features

  1. Templates

    • ios_framework_bundle, supports build complete code signed framework for device, simulator, mac-catalyst.

    • mac_framework_bundle, supports build complete mac framework which contains "Headers" and "Modules".

  2. Toolchains

    • Default use local Xcode clang toolchains for building iOS/macOS library.

    • Default use local Android NDK toolchains for building Android native library. (Need to set android_ndk_root and android_ndk_version args with gn gen --args)

    • Default use local Visual Studio MSVC toolchains for building Windows library.

gn_build's People

Contributors

patrick-fu avatar yerannnnnn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.