Skip to content

Commit

Permalink
[eclipse-iceoryx#349] Add bazel support for iceoryx2-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Oct 11, 2024
1 parent b21e752 commit 90972cf
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions iceoryx2-cli/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# 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_library")

rust_library(
name = "iceoryx2-cli",
srcs = glob(["lib/src/**/*.rs"]),
deps = [
"//iceoryx2:iceoryx2",
"//iceoryx2-bb/log:iceoryx2-bb-log",
"//iceoryx2-pal/posix:iceoryx2-pal-posix",
"@crate_index//:anyhow",
"@crate_index//:clap",
"@crate_index//:colored",
"@crate_index//:serde",
"@crate_index//:serde_yaml",
"@crate_index//:serde_json",
"@crate_index//:ron",
],
)

rust_binary(
name = "iox2",
srcs = glob(["iox2/src/**/*.rs"]),
deps = [
":iceoryx2-cli",
"//iceoryx2:iceoryx2",
"@crate_index//:anyhow",
"@crate_index//:better-panic",
"@crate_index//:cargo_metadata",
"@crate_index//:clap",
"@crate_index//:colored",
"@crate_index//:human-panic",
],
)

rust_binary(
name = "iox2-node",
srcs = glob(["iox2-node/src/**/*.rs"]),
deps = [
":iceoryx2-cli",
"//iceoryx2:iceoryx2",
"//iceoryx2-bb/log:iceoryx2-bb-log",
"@crate_index//:anyhow",
"@crate_index//:better-panic",
"@crate_index//:clap",
"@crate_index//:human-panic",
],
)

rust_binary(
name = "iox2-service",
srcs = glob(["iox2-service/src/**/*.rs"]),
deps = [
":iceoryx2-cli",
"//iceoryx2:iceoryx2",
"//iceoryx2-bb/log:iceoryx2-bb-log",
"@crate_index//:anyhow",
"@crate_index//:better-panic",
"@crate_index//:clap",
"@crate_index//:human-panic",
],
)

# TODO: [349] add tests

0 comments on commit 90972cf

Please sign in to comment.