Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
236 changes: 236 additions & 0 deletions modules/score_baselibs/0.2.9/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
# *******************************************************************************
# Copyright (c) 2025 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 License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

module(name = "score_baselibs",
version = "0.2.9",
compatibility_level = 0
)

## Configure the C++ toolchain

bazel_dep(name = "score_bazel_cpp_toolchains", version = "0.5.4", dev_dependency = True)

gcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True)
gcc.toolchain(
name = "score_gcc_x86_64_toolchain",
target_cpu = "x86_64",
target_os = "linux",
use_default_package = True,
version = "12.2.0",
)
gcc.toolchain(
name = "score_gcc_aarch64_toolchain",
target_cpu = "aarch64",
target_os = "linux",
use_default_package = True,
version = "12.2.0",
)
gcc.toolchain(
name = "score_qcc_x86_64_toolchain",
sdp_version = "8.0.4",
target_cpu = "x86_64",
target_os = "qnx",
use_default_package = True,
version = "12.2.0",
)
gcc.toolchain(
name = "score_qcc_aarch64_toolchain",
sdp_version = "8.0.4",
target_cpu = "aarch64",
target_os = "qnx",
use_default_package = True,
version = "12.2.0",
)
use_repo(
gcc,
"score_gcc_aarch64_toolchain",
"score_gcc_x86_64_toolchain",
"score_qcc_aarch64_toolchain",
"score_qcc_aarch64_toolchain_pkg",
"score_qcc_x86_64_toolchain",
"score_qcc_x86_64_toolchain_pkg",
)

bazel_dep(name = "score_rules_imagefs", version = "0.0.3", dev_dependency = True)

imagefs = use_extension("@score_rules_imagefs//extensions:imagefs.bzl", "imagefs", dev_dependency = True)
imagefs.toolchain(
name = "score_qnx_x86_64_ifs_toolchain",
sdp_to_import = "@score_qcc_x86_64_toolchain_pkg",
sdp_version = "8.0.0",
target_cpu = "x86_64",
target_os = "qnx",
type = "ifs",
)
imagefs.toolchain(
name = "score_qnx_aarch64_ifs_toolchain",
sdp_to_import = "@score_qcc_aarch64_toolchain_pkg",
sdp_version = "8.0.0",
target_cpu = "aarch64",
target_os = "qnx",
type = "ifs",
)
use_repo(imagefs, "score_qnx_aarch64_ifs_toolchain", "score_qnx_x86_64_ifs_toolchain")

bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
bazel_dep(name = "google_benchmark", version = "1.9.5")
bazel_dep(name = "boost.container", version = "1.83.0.bcr.4")
bazel_dep(name = "boost.interprocess", version = "1.83.0.bcr.4")
bazel_dep(name = "download_utils", version = "1.2.2")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "openssl", version = "3.5.5.bcr.4")

## Configure the Rust toolchain

bazel_dep(name = "rules_rust", version = "0.68.1-score")
bazel_dep(name = "score_rust_policies", version = "0.0.5")
bazel_dep(name = "score_crates", version = "0.0.10")

bazel_dep(name = "score_toolchains_rust", version = "0.9.1", dev_dependency = True)

## Custom Module Loading

bazel_dep(name = "score_docs_as_code", version = "4.6.0", dev_dependency = True)
bazel_dep(name = "score_process", version = "2.0.0", dev_dependency = True)
bazel_dep(name = "score_tooling", version = "1.2.0", dev_dependency = True)

# Needed until new version is released with https://github.com/eclipse-score/tooling/pull/294 included
git_override(
module_name = "score_tooling",
commit = "2ea61535696f61a4ba0d49d829256915557dcfe7",
remote = "https://github.com/eclipse-score/tooling",
)

# score_tooling declares trlc and lobster as regular bazel_deps with their own
# git_override. Overrides in non-root modules are ignored, so the root module
# must repeat them while score_tooling is pulled in via git_override.
git_override(
module_name = "trlc",
commit = "c4c531b9d667085daa09dfc1590edacc314bfda4",
remote = "https://github.com/bmw-software-engineering/trlc.git",
)

git_override(
module_name = "lobster",
commit = "2792e2daee2cf524fdc7b1545fd3537791ebc36c",
remote = "https://github.com/bmw-software-engineering/lobster.git",
)

bazel_dep(name = "score_platform", version = "0.6.0", dev_dependency = True)

# FIXME: To be removed after https://github.com/eclipse-score/baselibs/issues/266 is resolved
single_version_override(
module_name = "grpc-java",
version = "1.70.0",
)

## Configure the python toolchain

bazel_dep(name = "rules_python", version = "1.8.3", dev_dependency = True)

PYTHON_VERSION = "3.12"

python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True)
python.single_version_override(
python_version = "3.8.20",
sha256 = {
"aarch64-unknown-linux-gnu": "9d8798f9e79e0fc0f36fcb95bfa28a1023407d51a8ea5944b4da711f1f75f1ed",
"x86_64-unknown-linux-gnu": "285e141c36f88b2e9357654c5f77d1f8fb29cc25132698fe35bb30d787f38e87",
},
urls = ["https://github.com/astral-sh/python-build-standalone/releases/download/20241002/cpython-{python_version}+20241002-{platform}-{build}.tar.gz"],
)
python.toolchain(
#configure_coverage_tool = True,
is_default = True,
python_version = PYTHON_VERSION,
)

bazel_dep(name = "aspect_rules_py", version = "1.6.3", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "8.5.1", dev_dependency = True)
bazel_dep(name = "aspect_rules_lint", version = "2.3.0", dev_dependency = True)
bazel_dep(name = "score_bazel_tools_cc", version = "0.1.0", dev_dependency = True)
bazel_dep(name = "score_qnx_unit_tests", version = "0.2.0", dev_dependency = True)
bazel_dep(name = "toolchains_llvm", version = "1.4.0", dev_dependency = True)

llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
llvm.toolchain(
llvm_version = "19.1.1",
stdlib = {"linux-x86_64": "stdc++"},
)
use_repo(llvm, "llvm_toolchain")

register_toolchains(
"@llvm_toolchain//:all",
dev_dependency = True,
)

deb = use_repo_rule("@download_utils//download/deb:defs.bzl", "download_deb")

deb(
name = "acl-deb",
build = "//third_party/acl:acl.BUILD",
urls = ["https://archive.ubuntu.com/ubuntu/pool/main/a/acl/libacl1-dev_2.2.52-3build1_amd64.deb"],
visibility = ["//visibility:public"],
)

deb(
name = "acl-deb-aarch64",
build = "//third_party/acl:acl.BUILD",
urls = ["https://ports.ubuntu.com/ubuntu-ports/pool/main/a/acl/libacl1-dev_2.2.52-3build1_arm64.deb"],
visibility = ["//visibility:public"],
)

deb(
name = "valgrind-deb",
build = "//third_party/valgrind:valgrind.BUILD",
urls = ["https://archive.ubuntu.com/ubuntu/pool/main/v/valgrind/valgrind_3.15.0-1ubuntu9.1_amd64.deb"],
visibility = ["//visibility:public"],
)

deb(
name = "libcap2-deb",
urls = ["https://archive.ubuntu.com/ubuntu/pool/main/libc/libcap2/libcap2_2.25-1.2_amd64.deb"],
visibility = ["//visibility:public"],
)

deb(
name = "libcap2-dev-deb",
build = "//third_party/libcap2:libcap2.BUILD",
urls = ["https://archive.ubuntu.com/ubuntu/pool/main/libc/libcap2/libcap-dev_2.25-1.2_amd64.deb"],
visibility = ["//visibility:public"],
)

deb(
name = "libcap2-deb-aarch64",
urls = ["https://ports.ubuntu.com/ubuntu-ports/pool/main/libc/libcap2/libcap2_2.25-1.2_arm64.deb"],
visibility = ["//visibility:public"],
)

deb(
name = "libcap2-dev-deb-aarch64",
build = "//third_party/libcap2:libcap2.BUILD",
urls = ["https://ports.ubuntu.com/ubuntu-ports/pool/main/libc/libcap2/libcap-dev_2.25-1.2_arm64.deb"],
visibility = ["//visibility:public"],
)

bazel_dep(name = "flatbuffers", version = "25.12.19")
bazel_dep(name = "nlohmann_json", version = "3.11.3")
bazel_dep(name = "bazel_skylib", version = "1.9.0")

#############################################################
#
# Constraint values for specifying platforms and toolchains
#
#############################################################
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "score_bazel_platforms", version = "0.1.2")
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -11,7 +11,10 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

-module(name = "score_baselibs")
+module(name = "score_baselibs",
+ version = "0.2.9",
+ compatibility_level = 0
+)

## Configure the C++ toolchain

9 changes: 9 additions & 0 deletions modules/score_baselibs/0.2.9/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-HfW+PydHSzkLu14Kn3KekXu9+EV+03KntqeWrZo95ZE=",
"strip_prefix": "baselibs-0.2.9",
"url": "https://github.com/eclipse-score/baselibs/archive/refs/tags/v0.2.9.tar.gz",
"patch_strip": 1,
"patches": {
"module_dot_bazel_version.patch": "sha256-u8YvVFas3VmBb+MsgKpfTALVXso8DP31wJm9hp1zPJI="
}
}
1 change: 1 addition & 0 deletions modules/score_baselibs/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"github:eclipse-score/baselibs"
],
"versions": [
"0.2.9",
"0.2.8",
"0.2.7",
"0.2.6",
Expand Down