Skip to content

Commit b930be6

Browse files
authored
Merge pull request #470 from elBoberido/iox2-349-bazel-6.2-fix-and-iceoryx-update
[#349] Bazel 6.2 fix and iceoryx update
2 parents e2c9afe + 984e675 commit b930be6

File tree

13 files changed

+65
-32
lines changed

13 files changed

+65
-32
lines changed

BUILD.bazel

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

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

15+
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
16+
1517
exports_files([
1618
"LICENSE-APACHE",
1719
"LICENSE-MIT",
@@ -37,9 +39,9 @@ config_setting(
3739
flag_values = {"@bazel_tools//tools/cpp:compiler": "msvc-cl"},
3840
)
3941

40-
alias(
42+
string_flag(
4143
name = "feature_dev_permissions",
42-
actual = "//iceoryx2-cal:feature_dev_permissions",
44+
build_setting_default = "auto",
4345
visibility = ["//visibility:public"],
4446
)
4547

Cargo.Bazel.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"checksum": "f4b0efe0add514e7053794a25f1bdfb4b5425e10bb77c6212ba5157d14fca9d3",
2+
"checksum": "d7b1759c5d28cbeb3fff8b9da5ca81261aa8c593891b9eff7d3c554d07b4c8dd",
33
"crates": {
44
"addr2line 0.24.2": {
55
"name": "addr2line",

WORKSPACE.bazel

+4-4
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,22 @@ bazel_skylib_workspace()
133133

134134

135135
# Load iceoryx rules
136-
ICEORYX_VERSION = "2.95.2"
136+
ICEORYX_VERSION = "2.95.3"
137137

138138
maybe(
139139
name = "iceoryx",
140140
repo_rule = http_archive,
141-
sha256 = "585d92dac3d9fefd3f6e0cd2275667fb0cd31dddcd07183accdbcd3ae2a000bd",
141+
sha256 = "14b854906b58a48140a5d074167d5f3a5af2d578574940501a330954af79b9d4",
142142
strip_prefix = "iceoryx-{}".format(ICEORYX_VERSION),
143143
url = "https://github.com/eclipse-iceoryx/iceoryx/archive/v{}.tar.gz".format(ICEORYX_VERSION),
144144
)
145145

146-
# Load dependency googletest
146+
# Load iceoryx dependencies
147147
load("@iceoryx//bazel:load_repositories.bzl", "load_repositories")
148148

149149
load_repositories()
150150

151-
# Load dependency cpptoml
151+
# Setup iceoryx dependencies
152152
load("@iceoryx//bazel:setup_repositories.bzl", "setup_repositories")
153153

154154
setup_repositories()

doc/bazel/README.md

+42-2
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,39 @@ To use iceoryx2 as an external dependency, ensure the following setup is present
88
in your `WORKSPACE` file:
99

1010
```bazel
11-
ICEORYX2_VERSION = "branch-tag-or-commit-hash"
11+
# Load iceoryx2 rules
12+
ICEORYX2_VERSION = "0248ea57d0c405383ab099e14293ed8be2d23dac"
1213

1314
http_archive(
1415
name = "iceoryx2",
15-
sha256 = "add-the-correct-sha256-sum",
16+
sha256 = "8844b229d2ba23597dfe17df7a3baabd086a62944534aa804d482a6e46bdf5b8",
1617
strip_prefix = "iceoryx2-{}".format(ICEORYX2_VERSION),
1718
urls = [
1819
"https://github.com/eclipse-iceoryx/iceoryx2/archive/{}.tar.gz".format(ICEORYX2_VERSION),
1920
],
2021
)
2122

2223

24+
# Load iceoryx rules
25+
ICEORYX_VERSION = "2.95.3"
26+
27+
maybe(
28+
name = "iceoryx",
29+
repo_rule = http_archive,
30+
sha256 = "14b854906b58a48140a5d074167d5f3a5af2d578574940501a330954af79b9d4",
31+
strip_prefix = "iceoryx-{}".format(ICEORYX_VERSION),
32+
url = "https://github.com/eclipse-iceoryx/iceoryx/archive/v{}.tar.gz".format(ICEORYX_VERSION),
33+
)
34+
35+
load("@iceoryx//bazel:load_repositories.bzl", "load_repositories")
36+
37+
load_repositories()
38+
39+
load("@iceoryx//bazel:setup_repositories.bzl", "setup_repositories")
40+
41+
setup_repositories()
42+
43+
2344
# Load Rust rules
2445
# Use v0.26 to support bazel v6.2
2546
maybe(
@@ -107,6 +128,25 @@ maybe(
107128
load("@crate_index//:defs.bzl", "crate_repositories")
108129

109130
crate_repositories()
131+
132+
133+
# Load skylib rules
134+
BAZEL_SKYLIB_VERSION = "1.7.1"
135+
136+
# Load skylib for custom build config
137+
maybe(
138+
name = "bazel_skylib",
139+
repo_rule = http_archive,
140+
sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f",
141+
urls = [
142+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = BAZEL_SKYLIB_VERSION),
143+
"https://github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = BAZEL_SKYLIB_VERSION),
144+
],
145+
)
146+
147+
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
148+
149+
bazel_skylib_workspace()
110150
```
111151

112152
### Syncing Dependencies

examples/rust/domains/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ rust_binary(
3434
"//iceoryx2:iceoryx2",
3535
"//iceoryx2-bb/log:iceoryx2-bb-log",
3636
"//iceoryx2-bb/system-types:iceoryx2-bb-system-types",
37-
"@//examples/rust:examples-common",
37+
"//examples/rust:examples-common",
3838
"@crate_index//:clap",
3939
],
4040
)
@@ -48,7 +48,7 @@ rust_binary(
4848
"//iceoryx2:iceoryx2",
4949
"//iceoryx2-bb/log:iceoryx2-bb-log",
5050
"//iceoryx2-bb/system-types:iceoryx2-bb-system-types",
51-
"@//examples/rust:examples-common",
51+
"//examples/rust:examples-common",
5252
"@crate_index//:clap",
5353
],
5454
)

examples/rust/publish_subscribe/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rust_binary(
1919
],
2020
deps = [
2121
"//iceoryx2:iceoryx2",
22-
"@//examples/rust:examples-common",
22+
"//examples/rust:examples-common",
2323
],
2424
)
2525

@@ -30,6 +30,6 @@ rust_binary(
3030
],
3131
deps = [
3232
"//iceoryx2:iceoryx2",
33-
"@//examples/rust:examples-common",
33+
"//examples/rust:examples-common",
3434
],
3535
)

examples/rust/publish_subscribe_dynamic_data/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rust_binary(
1919
],
2020
deps = [
2121
"//iceoryx2:iceoryx2",
22-
"@//examples/rust:examples-common",
22+
"//examples/rust:examples-common",
2323
],
2424
)
2525

@@ -30,6 +30,6 @@ rust_binary(
3030
],
3131
deps = [
3232
"//iceoryx2:iceoryx2",
33-
"@//examples/rust:examples-common",
33+
"//examples/rust:examples-common",
3434
],
3535
)

examples/rust/publish_subscribe_with_user_header/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rust_binary(
1919
],
2020
deps = [
2121
"//iceoryx2:iceoryx2",
22-
"@//examples/rust:examples-common",
22+
"//examples/rust:examples-common",
2323
],
2424
)
2525

@@ -30,6 +30,6 @@ rust_binary(
3030
],
3131
deps = [
3232
"//iceoryx2:iceoryx2",
33-
"@//examples/rust:examples-common",
33+
"//examples/rust:examples-common",
3434
],
3535
)

iceoryx2-cal/BUILD.bazel

+2-9
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,24 @@
1313
package(default_visibility = ["//visibility:public"])
1414

1515
load("@bazel_skylib//lib:selects.bzl", "selects")
16-
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
1716
load("@rules_rust//rust:defs.bzl", "rust_library")
1817

1918
filegroup(
2019
name = "all_srcs",
2120
srcs = glob(["**"]),
2221
)
2322

24-
string_flag(
25-
name = "feature_dev_permissions",
26-
build_setting_default = "auto",
27-
visibility = ["//visibility:public"],
28-
)
29-
3023
config_setting(
3124
name = "dev_permissions_auto",
3225
flag_values = {
33-
":feature_dev_permissions": "auto",
26+
"//:feature_dev_permissions": "auto",
3427
},
3528
)
3629

3730
config_setting(
3831
name = "dev_permissions_enabled",
3932
flag_values = {
40-
":feature_dev_permissions": "on",
33+
"//:feature_dev_permissions": "on",
4134
},
4235
)
4336

iceoryx2-ffi/cxx/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
cmake_minimum_required(VERSION 3.22)
1414

15-
set(ICEORYX_HOOFS_VERSION 2.95.2)
15+
set(ICEORYX_HOOFS_VERSION 2.95.3)
1616
include(${CMAKE_CURRENT_LIST_DIR}/cmake/fetch-iceoryx-hoofs.cmake)
1717

1818
project(iceoryx2-cxx VERSION ${IOX2_VERSION_STRING} LANGUAGES CXX)

internal/scripts/ci_build_and_install_iceoryx_hoofs.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ErrorActionPreference = "Stop"
2121

2222
$NUM_JOBS = (Get-WmiObject Win32_processor).NumberOfLogicalProcessors
2323

24-
git clone --depth 1 --branch v2.95.2 https://github.com/eclipse-iceoryx/iceoryx.git target/iceoryx/src
24+
git clone --depth 1 --branch v2.95.3 https://github.com/eclipse-iceoryx/iceoryx.git target/iceoryx/src
2525

2626
switch ($mode) {
2727
"release" {

internal/scripts/ci_build_and_install_iceoryx_hoofs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
2727
NUM_JOBS=$(sysctl -n hw.ncpu)
2828
fi
2929

30-
git clone --depth 1 --branch v2.95.2 https://github.com/eclipse-iceoryx/iceoryx.git target/iceoryx/src
30+
git clone --depth 1 --branch v2.95.3 https://github.com/eclipse-iceoryx/iceoryx.git target/iceoryx/src
3131

3232
cmake -S target/iceoryx/src/iceoryx_platform -B target/iceoryx/build/platform -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=target/iceoryx/install
3333
cmake --build target/iceoryx/build/platform -j$NUM_JOBS

package.xml

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
<license>Apache 2.0</license>
99
<url type="bugtracker">https://github.com/eclipse-iceoryx/iceoryx2/issues</url>
1010
<url type="repository">https://github.com/eclipse-iceoryx/iceoryx2</url>
11-
1211
<buildtool_depend>cmake</buildtool_depend>
13-
<depend version_gte="2.95.2">iceoryx_hoofs</depend>
14-
12+
<depend version_gte="2.95.3">iceoryx_hoofs</depend>
1513
<export>
1614
<build_type>cmake</build_type>
1715
</export>

0 commit comments

Comments
 (0)