|
| 1 | +# Copyright (c) 2025 Contributors to the Eclipse Foundation |
| 2 | +# |
| 3 | +# See the NOTICE file(s) distributed with this work for additional |
| 4 | +# information regarding copyright ownership. |
| 5 | +# |
| 6 | +# This program and the accompanying materials are made available under the |
| 7 | +# terms of the Apache Software License 2.0 which is available at |
| 8 | +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license |
| 9 | +# which is available at https://opensource.org/licenses/MIT. |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: Apache-2.0 OR MIT |
| 12 | + |
| 13 | +package(default_visibility = ["//visibility:public"]) |
| 14 | + |
| 15 | +load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test_suite") |
| 16 | + |
| 17 | +filegroup( |
| 18 | + name = "all_srcs", |
| 19 | + srcs = glob(["**"]), |
| 20 | +) |
| 21 | + |
| 22 | +rust_library( |
| 23 | + name = "iceoryx2-bb-concurrency", |
| 24 | + srcs = glob(["src/**/*.rs"]), |
| 25 | + deps = [ |
| 26 | + "//iceoryx2-bb/elementary-traits:iceoryx2-bb-elementary-traits", |
| 27 | + "//iceoryx2-pal/concurrency-sync:iceoryx2-pal-concurrency-sync", |
| 28 | + ], |
| 29 | + proc_macro_deps = [ |
| 30 | + "@crate_index//:paste", |
| 31 | + ], |
| 32 | +) |
| 33 | + |
| 34 | +rust_test_suite( |
| 35 | + name = "iceoryx2-bb-concurrency-tests", |
| 36 | + srcs = glob(["tests/**/*.rs"]), |
| 37 | + deps = [ |
| 38 | + ":iceoryx2-bb-concurrency", |
| 39 | + "//iceoryx2-bb/elementary-traits:iceoryx2-bb-elementary-traits", |
| 40 | + "//iceoryx2-bb/posix:iceoryx2-bb-posix", |
| 41 | + "//iceoryx2-bb/testing:iceoryx2-bb-testing", |
| 42 | + "//iceoryx2-pal/concurrency-sync:iceoryx2-pal-concurrency-sync", |
| 43 | + "//iceoryx2-pal/testing:iceoryx2-pal-testing", |
| 44 | + ], |
| 45 | + proc_macro_deps = [ |
| 46 | + "@crate_index//:generic-tests", |
| 47 | + ], |
| 48 | +) |
0 commit comments