Skip to content

Commit

Permalink
Enable parse_header for bazel build
Browse files Browse the repository at this point in the history
Signed-off-by: Shameek Ganguly <[email protected]>
  • Loading branch information
shameekganguly committed Nov 14, 2024
1 parent e40c32f commit 85bff59
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -94,6 +97,7 @@ cc_library(
"include/sdf/*.hh",
],
exclude = [
"include/sdf/sdf.hh",
],
),
data = [
Expand Down
1 change: 1 addition & 0 deletions src/Converter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <tuple>

#include <sdf/config.hh>
#include <sdf/ParserConfig.hh>
#include <sdf/Types.hh>
#include "sdf/system_util.hh"

Expand Down
1 change: 1 addition & 0 deletions src/SDFImplPrivate.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <string>

#include "sdf/Element.hh"
#include "sdf/Types.hh"

/// \ingroup sdf_parser
Expand Down

0 comments on commit 85bff59

Please sign in to comment.