Git Product home page Git Product logo

gn-build's Introduction

//build directory for GN-based projects

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/Clang 3.8)
  • FreeBSD (GCC 5 / Clang 3.7)
  • Linux (GCC 5 / Clang 3.7)

Reference

Basic variables:

  • is_debug (default: true): Enable/disable debugging options.
  • is_clang (default: false): Favor Clang over the platform default (GCC/MSVC).
  • use_lld (default: false): Use the new LLD linker. This requires is_clang to be true.

Windows toolchain

  • visual_studio_version (default: 2013): The MSVC version to use.
  • visual_studio_path (default: auto-detected): The path of your MSVC installation. Autodetected based on visual_studio_version.
  • windows_sdk_path (default: auto-detected): Path of your Windows SDK installation.
  • win_clang_prefix (default: ""): If is_clang is true, this is required to point to the directory containing the clang-cl executable.

POSIX toolchain

  • gcc_cc (default: gcc): Path of the GCC C compiler executable. Does not have to be absolute.
  • gcc_cxx (default: g++): Path of the GCC C++ compiler executable. Does not have to be absolute.
  • gcc_version (default: auto-detected): Version of the GCC compiler. Format: major * 10000 + minor * 100 + patchlevel
  • clang_cc (default: gcc): Path of the Clang C compiler executable. Does not have to be absolute.
  • clang_cxx (default: g++): Path of the Clang C++ compiler executable. Does not have to be absolute.
  • clang_version (default: auto-detected): Version of the Clang compiler. Format: major * 10000 + minor * 100 + patchlevel

Mac toolchain

TODO: Mac builds are currently unsupported.

Recommended workflow

Fork this repo and add it as a submodule/DEPS-entry to your project. This way you can modify every part of the //build directory while still being able to easily merge upstream changes (e.g. support for new GN features that you don't want to implement yourself.)

gn-build's People

Contributors

timniederhausen avatar

Watchers

 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.