Skip to content

Commit

Permalink
[eclipse-iceoryx#439] Add bazel support for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Oct 11, 2024
1 parent da32b08 commit 40e08cf
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
26 changes: 26 additions & 0 deletions benchmarks/event/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache Software License 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
# which is available at https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

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

load("@rules_rust//rust:defs.bzl", "rust_binary")

rust_binary(
name = "benchmark-event",
srcs = glob(["src/**/*.rs"]),
deps = [
"@//iceoryx2:iceoryx2",
"@//iceoryx2-bb/log:iceoryx2-bb-log",
"@//iceoryx2-bb/posix:iceoryx2-bb-posix",
"@crate_index//:clap",
],
)
27 changes: 27 additions & 0 deletions benchmarks/publish-subscribe/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache Software License 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
# which is available at https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

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

load("@rules_rust//rust:defs.bzl", "rust_binary")

rust_binary(
name = "benchmark-event",
srcs = glob(["src/**/*.rs"]),
deps = [
"@//iceoryx2:iceoryx2",
"@//iceoryx2-bb/container:iceoryx2-bb-container",
"@//iceoryx2-bb/log:iceoryx2-bb-log",
"@//iceoryx2-bb/posix:iceoryx2-bb-posix",
"@crate_index//:clap",
],
)

0 comments on commit 40e08cf

Please sign in to comment.