diff --git a/.bazelrc b/.bazelrc index f2d0613..bdb2bfc 100644 --- a/.bazelrc +++ b/.bazelrc @@ -10,3 +10,6 @@ build --strip=never build --strict_system_includes build --fission=dbg build --features=per_object_debug_info + +# Enable header processing, required for layering checks with parse_header. +build --process_headers_in_dependencies diff --git a/BUILD.bazel b/BUILD.bazel index 857793b..5903898 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -5,7 +5,10 @@ load("@rules_license//rules:license.bzl", "license") package( default_applicable_licenses = [":license"], default_visibility = ["__subpackages__"], - features = ["layering_check"], + features = [ + "layering_check", + "parse_headers", + ], ) license( @@ -83,6 +86,9 @@ cc_library( ], includes = ["include"], visibility = ["//visibility:public"], + deps = [ + ":Environment", + ], ) cc_library( diff --git a/cli/BUILD.bazel b/cli/BUILD.bazel index 2850623..9b3bcc8 100644 --- a/cli/BUILD.bazel +++ b/cli/BUILD.bazel @@ -1,6 +1,10 @@ package( default_applicable_licenses = ["//:license"], default_visibility = ["__subpackages__"], + features = [ + "layering_check", + "parse_headers", + ], ) cc_library( @@ -8,6 +12,10 @@ cc_library( hdrs = glob([ "include/vendored-cli/gz/utils/cli/*.hpp", ]), + features = [ + # Disable header parsing for CLI11. + "-parse_headers", + ], includes = ["include/vendored-cli"], ) @@ -19,6 +27,7 @@ cc_library( includes = ["include"], visibility = ["//visibility:public"], deps = [ + ":cli11", "//:Export", ], ) diff --git a/log/BUILD.bazel b/log/BUILD.bazel index 1f2948c..5a878d0 100644 --- a/log/BUILD.bazel +++ b/log/BUILD.bazel @@ -3,6 +3,10 @@ load("@rules_gazebo//gazebo:headers.bzl", "gz_export_header") package( default_applicable_licenses = ["//:license"], default_visibility = ["__subpackages__"], + features = [ + "layering_check", + "parse_headers", + ], ) gz_export_header(