Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 6 additions & 18 deletions README.txt → README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* Building Bazel
Building Bazel
==============

We currently only support building on Ubuntu, and the binaries only run on
Ubuntu. You will need packages for the protobuf-compiler, and for libarchive:
Expand All @@ -10,21 +11,8 @@ Then run:

We are working on bootstrapping bazel with itself.


* Workspace setup

You will need to add some infrastructure to your workspace to run bazel:

tools/genrule/genrule-setup.sh
tools/genrule/BUILD
tools/test/test-setup.sh
tools/test/BUILD
tools/BUILD
tools/defaults/BUILD

We are still in the process of figuring out how to ship these files.

* Running Bazel
Running Bazel
=============

Create a google3 directory. This is your package root where all of your builds
will happen (we're working on removing the google3 naming requirement). Add the
Expand All @@ -43,8 +31,8 @@ Create tools/genrule/BUILD and add the following to it:
Create your own project with a BUILD file, for example:

$ mkdir -p hello
$ echo 'genrule(name = "world", outs = ["hi"], cmd = "touch $(@D)/hi"' > hello/BUILD
)
$ echo 'genrule(name = "world", outs = ["hi"], cmd = "touch $(@D)/hi")' > hello/BUILD


Now run Bazel using --output_base and --install_base options, e.g.,

Expand Down