diff --git a/.bazelrc b/.bazelrc index f2d06137d..bdb2bfc88 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 280adfd4a..2104410c9 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -4,7 +4,10 @@ load("@rules_license//rules:license.bzl", "license") package( default_applicable_licenses = [":license"], - features = ["layering_check"], + features = [ + "layering_check", + "parse_headers", + ], ) license( @@ -94,6 +97,7 @@ cc_library( "include/sdf/*.hh", ], exclude = [ + "include/sdf/sdf.hh", ], ), data = [ diff --git a/src/Converter.hh b/src/Converter.hh index 27865a934..6c0c53144 100644 --- a/src/Converter.hh +++ b/src/Converter.hh @@ -23,6 +23,7 @@ #include #include +#include #include #include "sdf/system_util.hh" diff --git a/src/SDFImplPrivate.hh b/src/SDFImplPrivate.hh index eefc57fcd..3b3ebb5ee 100644 --- a/src/SDFImplPrivate.hh +++ b/src/SDFImplPrivate.hh @@ -19,6 +19,7 @@ #include +#include "sdf/Element.hh" #include "sdf/Types.hh" /// \ingroup sdf_parser