Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
319a9d19
Commit
319a9d19
authored
Sep 23, 2021
by
dinord
Browse files
Merge pull request #3574 from Vertexwahn:switch_to_native_cc_rules
PiperOrigin-RevId: 397995447
parents
0570d97f
277e0a01
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
25 deletions
+0
-25
BUILD.bazel
BUILD.bazel
+0
-2
WORKSPACE
WORKSPACE
+0
-7
docs/quickstart-bazel.md
docs/quickstart-bazel.md
+0
-14
googlemock/test/BUILD.bazel
googlemock/test/BUILD.bazel
+0
-1
googletest/test/BUILD.bazel
googletest/test/BUILD.bazel
+0
-1
No files found.
BUILD.bazel
View file @
319a9d19
...
...
@@ -30,8 +30,6 @@
#
# Bazel Build for Google C++ Testing Framework(Google Test)
load
(
"@rules_cc//cc:defs.bzl"
,
"cc_library"
,
"cc_test"
)
package
(
default_visibility
=
[
"//visibility:public"
])
licenses
([
"notice"
])
...
...
WORKSPACE
View file @
319a9d19
...
...
@@ -9,13 +9,6 @@ http_archive(
urls
=
[
"https://github.com/abseil/abseil-cpp/archive/7971fb358ae376e016d2d4fc9327aad95659b25e.zip"
],
# 2021-05-20T02:59:16Z
)
http_archive
(
name
=
"rules_cc"
,
sha256
=
"1e19e9a3bc3d4ee91d7fcad00653485ee6c798efbbf9588d40b34cbfbded143d"
,
strip_prefix
=
"rules_cc-68cb652a71e7e7e2858c50593e5a9e3b94e5b9a9"
,
urls
=
[
"https://github.com/bazelbuild/rules_cc/archive/68cb652a71e7e7e2858c50593e5a9e3b94e5b9a9.zip"
],
# 2021-05-14T14:51:14Z
)
http_archive
(
name
=
"rules_python"
,
sha256
=
"98b3c592faea9636ac8444bfd9de7f3fb4c60590932d6e6ac5946e3f8dbd5ff6"
,
...
...
docs/quickstart-bazel.md
View file @
319a9d19
...
...
@@ -62,18 +62,6 @@ as a ZIP archive from GitHub. In the above example,
GoogleTest version to use; we recommend updating the hash often to point to the
latest version.
Bazel also needs a dependency on the
[
`rules_cc` repository
](
https://github.com/bazelbuild/rules_cc
)
to build C++
code, so add the following to the
`WORKSPACE`
file:
```
http_archive(
name = "rules_cc",
urls = ["https://github.com/bazelbuild/rules_cc/archive/40548a2974f1aea06215272d9c2b47a14a24e556.zip"],
strip_prefix = "rules_cc-40548a2974f1aea06215272d9c2b47a14a24e556",
)
```
Now you're ready to build C++ code that uses GoogleTest.
## Create and run a binary
...
...
@@ -104,8 +92,6 @@ To build the code, create a file named `BUILD` in the same directory with the
following contents:
```
load("@rules_cc//cc:defs.bzl", "cc_test")
cc_test(
name = "hello_test",
size = "small",
...
...
googlemock/test/BUILD.bazel
View file @
319a9d19
...
...
@@ -30,7 +30,6 @@
#
# Bazel Build for Google C++ Testing Framework(Google Test)-googlemock
load
(
"@rules_cc//cc:defs.bzl"
,
"cc_binary"
,
"cc_test"
)
load
(
"@rules_python//python:defs.bzl"
,
"py_library"
,
"py_test"
)
licenses
([
"notice"
])
...
...
googletest/test/BUILD.bazel
View file @
319a9d19
...
...
@@ -30,7 +30,6 @@
#
# Bazel BUILD for The Google C++ Testing Framework (Google Test)
load
(
"@rules_cc//cc:defs.bzl"
,
"cc_binary"
,
"cc_test"
)
load
(
"@rules_python//python:defs.bzl"
,
"py_library"
,
"py_test"
)
licenses
([
"notice"
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment