Skip to content

Commit

Permalink
[eclipse-iceoryx#439] Try fix cbindgen generation for bazel 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Oct 10, 2024
1 parent 43eb550 commit e5eaf9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

package(default_visibility = ["//visibility:public"])

exports_files([
"LICENSE-APACHE",
"LICENSE-MIT",
Expand Down
5 changes: 3 additions & 2 deletions iceoryx2-ffi/ffi/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ filegroup(
genrule(
name = "iceoryx2-ffi-cbindgen",
srcs = glob(["src/**/*.rs"]) + [
"//:Cargo.toml",
"Cargo.toml",
"cbindgen.toml",
":cbindgen-cli",
"src"
],
outs = ["include/iox2/iceoryx2.h"],
cmd = "$(execpath :cbindgen-cli) --config $(location cbindgen.toml) --output $(OUTS) $(location src)/..",
cmd = "$(execpath :cbindgen-cli) --config $(location cbindgen.toml) --output $(OUTS) $$(dirname $(location Cargo.toml))",
)

rust_shared_library(
Expand Down

0 comments on commit e5eaf9d

Please sign in to comment.