GithubHelp home page GithubHelp logo

opportunitylivetv / xcbuild Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebookarchive/xcbuild

1.0 3.0 1.0 4.21 MB

Xcode-compatible build tool.

License: Other

CMake 2.14% C++ 95.10% C 2.72% Makefile 0.04%

xcbuild's Introduction

xcbuild

xcbuild is an Xcode-compatible build tool with the goal of providing faster builds, better documentation of the build process and running on multiple platforms (macOS, Linux, and Windows)

Why xcbuild?

Features Performance
๐Ÿš€Blazing fast incremental buildsxcodebuildxcbuild + Ninja
๐Ÿ“–Documents the Xcode build process
๐Ÿ”—Builds Xcode projects and workspaces
๐ŸฃSupports Swift apps and frameworksClean Build30.103s25.122s
โœจTools and libraries for Xcode projects
๐Ÿ’Fully compatible with xcpretty
๐ŸŽฉUses Ninja and llbuildIncremental Build2.190s0.046s โšก
:octocat:Open source under the BSD license
๐ŸงBuilds on Linux and Windows

xcbuild and other build tools

xctool Buck xcpretty
xcbuild and xctool are both Xcode-compatible build systems. We plan on slowly deprecating xctool's build support but keep it as a great way to run tests. Facebook's main build system is Buck. Buck has a stronger architecture and advanced features like artifact caching while having a much simpler build format. If you have a new project, it's highly recommended. xcbuild works great with xcpretty. Pipe the output from xcbuild to xcpretty the same way as you would from xcodebuild.

Building

Build Status

  • Xcode 7 or later, on macOS.
  • GCC 4.8 or later, on Linux. libpng16-dev, zlib1g-dev, libxml2-dev, and pkg-config are also required.
  • Visual Studio 2015 or later, on Windows. A zlib DLL is also required.
  • CMake and Ninja (or llbuild).

To build:

  • All platforms:
git clone https://github.com/facebook/xcbuild
cd xcbuild
git submodule update --init
  • Linux and macOS:
make

Build output will be in the build directory. Run xcbuild with ./build/xcbuild.

  • Windows (experimental):
cmake -Bbuild -H. -G "Visual Studio 14 2015" -DZLIB_ROOT=<path>

Open build\xcbuild.sln and build.

Usage

The command line options are compatible with xcodebuild.

xcbuild -workspace Example.xcworkspace -scheme Example

Using Ninja (or llbuild)

To switch to the significantly faster Ninja executor:

xcbuild -executor ninja [-workspace Example.xcworkspace ...]

Besides the -executor ninja parameters, the options are otherwise identical. The Ninja executor is fastest if it can avoid re-generating the Ninja files if the build configuration and input project files do not change.

Contributing

xcbuild actively welcomes contributions from the community. If you're interested in contributing, be sure to check out the contributing guide. It includes some tips for getting started in the codebase, as well as important information about the code of conduct, license, and CLA.

Thanks

xcbuild is built on build system documentation from the community. In particular, thanks to these people for their writing:

Third-party licenses are listed in the LICENSE document.

xcbuild's People

Contributors

grp avatar sas avatar ktwu avatar marcsalem avatar strager avatar matthewbauer avatar umlaeute avatar mstorsjo avatar brtsai avatar modocache avatar kastiglione avatar compnerd avatar krausefx avatar kolinkrewinkel avatar forcha avatar legneato avatar flarnie avatar jackwu95 avatar zmwangx avatar onhachoe avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

martina6hall

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.