-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Carroll <[email protected]>
- Loading branch information
Showing
8 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
repositories: | ||
utils: | ||
type: git | ||
url: https://github.com/gazebosim/gz-utils | ||
version: gz-utils2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
load("@gz//bazel/lint:lint.bzl", "add_lint_tests") | ||
|
||
add_lint_tests() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- python -*- | ||
|
||
licenses(["notice"]) # BSD-3-Clause | ||
|
||
cc_library( | ||
name = "cli11", | ||
hdrs = glob([ | ||
"include/CLI/*.hpp", | ||
]), | ||
includes = [ | ||
"include", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- python -*- | ||
|
||
load("@gz//bazel/workspace:github.bzl", "github_archive") | ||
|
||
def cli11_repository(name, mirrors = None): | ||
github_archive( | ||
name = name, | ||
repository = "CLIUtils/CLI11", | ||
commit = "v2.2.0", | ||
sha256 = "d60440dc4d43255f872d174e416705f56ba40589f6eb07727f76376fb8378fd6", # noqa | ||
build_file = ":package.BUILD.bazel", | ||
mirrors = mirrors, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# -*- python -*- | ||
|
||
licenses(["notice"]) # BSD-3-Clause | ||
|
||
config_setting( | ||
name = "linux", | ||
values = {"cpu": "k8"}, | ||
) | ||
|
||
cc_library( | ||
name = "gtest", | ||
testonly = 1, | ||
srcs = glob( | ||
[ | ||
"googlemock/src/*.cc", | ||
"googletest/src/*.cc", | ||
"googletest/src/*.h", | ||
], | ||
exclude = [ | ||
"googlemock/src/gmock_main.cc", | ||
"googletest/src/gtest_main.cc", | ||
"googlemock/src/gmock-all.cc", | ||
"googletest/src/gtest-all.cc", | ||
], | ||
), | ||
hdrs = glob([ | ||
"googlemock/include/**/*.h", | ||
"googletest/include/**/*.h", | ||
]), | ||
copts = ["-Wno-unused-const-variable"], | ||
includes = [ | ||
"googlemock", | ||
"googlemock/include", | ||
"googletest", | ||
"googletest/include", | ||
], | ||
linkopts = select({ | ||
":linux": ["-pthread"], | ||
# This is a bazel-default rule, and does not need @drake// | ||
"@//conditions:default": [], | ||
}), | ||
linkstatic = 1, | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
cc_library( | ||
name = "gtest_main", | ||
testonly = 1, | ||
srcs = ["googlemock/src/gmock_main.cc"], | ||
linkstatic = 1, | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
":gtest", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- python -*- | ||
|
||
load("@gz//bazel/workspace:github.bzl", "github_archive") | ||
|
||
def gtest_repository( | ||
name, | ||
mirrors = None): | ||
github_archive( | ||
name = name, | ||
repository = "google/googletest", | ||
commit = "release-1.12.1", | ||
sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2", # noqa | ||
build_file = ":package.BUILD.bazel", | ||
mirrors = mirrors, | ||
) |