Lines Matching +full:bazel +full:- +full:5
1 # Quickstart: Building with Bazel
3 This tutorial aims to get you up and running with GoogleTest using the Bazel
13 * [Bazel](https://bazel.build/), the preferred build system used by the
19 If you don't already have Bazel installed, see the
20 [Bazel installation guide](https://bazel.build/install).
25 ## Set up a Bazel workspace
28 [Bazel workspace](https://docs.bazel.build/versions/main/build-ref.html#workspace)
42 [Bazel external dependency](https://docs.bazel.build/versions/main/external.html)
44 [`http_archive` rule](https://docs.bazel.build/versions/main/repo/http.html#http_archive).
53 …urls = ["https://github.com/google/googletest/archive/5ab508a01f9eb089207ee87fd547d290da39d015.zip…
54 strip_prefix = "googletest-5ab508a01f9eb089207ee87fd547d290da39d015",
60 `5ab508a01f9eb089207ee87fd547d290da39d015` is the Git commit hash of the
68 With your Bazel workspace set up, you can now use GoogleTest code within your
104 file (`@com_google_googletest`). For more information about Bazel `BUILD` files,
106 [Bazel C++ Tutorial](https://docs.bazel.build/versions/main/tutorial/cpp.html).
109 NOTE: In the example below, we assume Clang or GCC and set `--cxxopt=-std=c++14`
112 `--cxxopt=/std:c++14`. See [Supported Platforms](platforms.md) for more details
118 <strong>my_workspace$ bazel test --cxxopt=-std=c++14 --test_output=all //:hello_test</strong>
125 [----------] Global test environment set-up.
126 [----------] 1 test from HelloTest
129 [----------] 1 test from HelloTest (0 ms total)
131 [----------] Global test environment tear-down
135 Target //:hello_test up-to-date:
136 bazel-bin/hello_test
138 INFO: 27 processes: 8 internal, 19 linux-sandbox.