From d8204a251db58f0c4bae1e3029ef515a811f51c3 Mon Sep 17 00:00:00 2001 From: wep21 Date: Mon, 26 Aug 2024 07:29:28 +0900 Subject: [PATCH] iox-#2325 support bzlmod Signed-off-by: wep21 --- .bazelrc | 2 -- .gitignore | 1 + MODULE.bazel | 10 ++++++++++ .../test/moduletests/test_utility_convert.cpp | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 MODULE.bazel diff --git a/.bazelrc b/.bazelrc index 493027fa73..5f02e04daf 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,5 +1,3 @@ -build --noenable_bzlmod - build --enable_platform_specific_config build:linux --cxxopt="-std=c++17" build:macos --cxxopt="-std=c++17" diff --git a/.gitignore b/.gitignore index 131c71f53c..0f17803082 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ tools/website/generated/ *.project __pycache__ /bazel-* +MODULE.bazel.lock diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 0000000000..fd7c7a1316 --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,10 @@ +module(name = "org_eclipse_iceroyx", version = "2.95.0") + +bazel_dep(name = "cpptoml", version = "0.1.1") +bazel_dep(name = "googletest", version = "1.15.2") +bazel_dep(name = "buildtools", dev_dependency = True, repo_name = "com_github_bazelbuild_buildtools") +git_override( + module_name = 'buildtools', + remote = 'https://github.com/bazelbuild/buildtools.git', + commit = '37932ddd72301f8ca6075ee6b24e9e5d333c96a5', # Jun 28, 2024 +) diff --git a/iceoryx_hoofs/test/moduletests/test_utility_convert.cpp b/iceoryx_hoofs/test/moduletests/test_utility_convert.cpp index b13d467629..d227a84090 100644 --- a/iceoryx_hoofs/test/moduletests/test_utility_convert.cpp +++ b/iceoryx_hoofs/test/moduletests/test_utility_convert.cpp @@ -23,6 +23,7 @@ #include #include +#include #include namespace {