github.phpd.cn/thought-machine/please@v12.2.0+incompatible/README.md (about)

     1  # Please [![Build Status](https://circleci.com/gh/thought-machine/please.svg?style=shield)](https://circleci.com/gh/thought-machine/please) [![Go Report Card](https://goreportcard.com/badge/github.com/thought-machine/please)](https://goreportcard.com/report/github.com/thought-machine/please)
     2  
     3  Please is a cross-language build system with an emphasis on
     4  high performance, extensibility and reproduceability.
     5  It supports a number of popular languages and can automate
     6  nearly any aspect of your build process.
     7  
     8  See http://please.build for more information.
     9  
    10  Currently Linux (tested on Ubuntu) and OSX are actively supported,
    11  and FreeBSD is known to work with a little setup (see FAQ for details).
    12  
    13  
    14  Getting Started
    15  ===============
    16  
    17  The easiest way to install it on your own machine is to run:
    18  ```bash
    19  curl -s https://get.please.build | bash
    20  ```
    21  Or, if you prefer, grab one of the tarballs off our
    22  [releases page](https://github.com/thought-machine/please/releases)
    23  and extract it yourself; it typically lives in `~/.please`.
    24  
    25  Then you simply run `plz init` at the root of your project to set up
    26  a default config and you're good to start adding BUILD files.
    27  See [the website](http://please.build) for more instructions about
    28  how to write them.
    29  
    30  There are various commands available to interact with Please, the
    31  most obvious & useful ones initially are `plz build` and `plz test`
    32  to build things & run tests respectively. See `plz --help` or the
    33  [documentation](https://please.build/commands.html) for more comprehensive
    34  information.
    35  
    36  
    37  Building Please
    38  ===============
    39  
    40  To build Please yourself, run `./bootstrap.sh` in the repo root.
    41  This will set up the minimal environment needed to build Please,
    42  build it once manually and then rebuild it again using itself.
    43  You'll need to have Go 1.9+ installed to build Please although once
    44  built it can target any version from 1.5+ onwards.
    45  
    46  Optional dependencies for various tests include Python, Java, unittest++
    47  (`sudo apt-get install libunittest++-dev`), clang, gold and docker - none
    48  of those are required to build components so their tests will be excluded
    49  if they aren't available.
    50  
    51  If you'd rather not worry about installing the dependencies, we provide
    52  a prebuilt Docker image based on Ubuntu which is capable of building
    53  the whole thing for you:
    54  [`docker run -it thoughtmachine/please_ubuntu`](https://hub.docker.com/r/thoughtmachine/please_ubuntu)
    55  
    56  
    57  Documentation
    58  =============
    59  
    60   * [Quickstart](https://please.build/quickstart.html)
    61   * [Commands & command-line arguments](https://please.build/commands.html)
    62   * [Built-in rules](https://please.build/lexicon.html)
    63   * [BUILD language reference](https://please.build/language.html)
    64   * [Custom build rules](https://please.build/build_rules.html)
    65   * [Config reference](https://please.build/config.html)
    66   * [FAQ](https://please.build/faq.html)
    67  
    68  
    69  Status
    70  ======
    71  
    72  Please is released & we consider it stable; we follow [semver](https://semver.org)
    73  for releases, so major versions indicate potentially breaking changes to the
    74  BUILD language, command line or other behaviour. We try to minimise this where
    75  possible.
    76  
    77  We're very happy to accept pull requests & feature requests, and bugs if it's
    78  not working for you. We don't always have time for everything since Please is
    79  only part-time work for us, but we'll do our best.