Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Sep 21, 2023
1 parent 7d160bb commit 18e6620
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
13 changes: 8 additions & 5 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
load("@rules_license//rules:license.bzl", "license")
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"GZ_VISIBILITY",
"gz_configure_header",
"gz_export_header",
"gz_include_header",
)
load("@rules_license//rules:license.bzl", "license")

package(
default_applicable_licenses = [":license"],
default_applicable_licenses = [GZ_ROOT + "utils:license"],
default_visibility = GZ_VISIBILITY,
features = GZ_FEATURES,
)

license(
name = "license",
package_name = "gz-utils"
name = "license",
package_name = "gz-utils",
)

licenses(["notice"])
Expand Down Expand Up @@ -46,8 +47,8 @@ gz_include_header(
name = "utilshh_genrule",
out = "include/gz/utils.hh",
hdrs = public_headers_no_gen + [
"include/gz/utils/config.hh",
"include/gz/utils/Export.hh",
"include/gz/utils/config.hh",
],
)

Expand All @@ -61,6 +62,7 @@ cc_library(
name = "utils",
srcs = ["src/Environment.cc"],
hdrs = public_headers,
copts = ["-fexceptions"],
includes = ["include"],
)

Expand Down Expand Up @@ -101,6 +103,7 @@ cc_test(
cc_test(
name = "NeverDestroyed_TEST",
srcs = ["src/NeverDestroyed_TEST.cc"],
copts = ["-fexceptions"],
deps = [
":utils",
"@gtest",
Expand Down
6 changes: 6 additions & 0 deletions cli/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_ROOT",
"GZ_VISIBILITY",
)

package(
default_applicable_licenses = [GZ_ROOT + "utils:license"],
)

public_headers = [
"include/gz/utils/cli/GzFormatter.hpp",
] + glob([
Expand All @@ -12,6 +17,7 @@ public_headers = [
cc_library(
name = "cli",
hdrs = public_headers,
copts = ["-fexceptions"],
includes = [
"include",
"include/external-cli",
Expand Down

0 comments on commit 18e6620

Please sign in to comment.