11# *******************************************************************************
2- # Copyright (c) 2025 Contributors to the Eclipse Foundation
2+ # Copyright (c) 2026 Contributors to the Eclipse Foundation
33#
44# See the NOTICE file(s) distributed with this work for additional
55# information regarding copyright ownership.
@@ -18,7 +18,7 @@ module(
1818# Bazel global rules
1919bazel_dep (name = "rules_python" , version = "1.4.1" )
2020bazel_dep (name = "rules_rust" , version = "0.61.0" )
21- bazel_dep (name = "rules_cc" , version = "0.2.9 " )
21+ bazel_dep (name = "rules_cc" , version = "0.2.14 " )
2222bazel_dep (name = "aspect_rules_lint" , version = "1.5.3" )
2323bazel_dep (name = "buildifier_prebuilt" , version = "8.2.0.2" )
2424bazel_dep (name = "platforms" , version = "1.0.0" )
@@ -27,27 +27,66 @@ bazel_dep(name = "download_utils", version = "1.0.1")
2727bazel_dep (name = "googletest" , version = "1.17.0.bcr.1" )
2828
2929# S-CORE process rules
30- bazel_dep (name = "score_bazel_platforms" , version = "0.0.3 " )
30+ bazel_dep (name = "score_bazel_platforms" , version = "0.0.4 " )
3131bazel_dep (name = "score_docs_as_code" , version = "2.3.0" )
32- bazel_dep (name = "score_tooling" , version = "1.0.5 " )
32+ bazel_dep (name = "score_tooling" , version = "1.1.0 " )
3333bazel_dep (name = "score_rust_policies" , version = "0.0.3" )
3434
3535bazel_dep (name = "score_process" , version = "1.4.0" , dev_dependency = True )
3636bazel_dep (name = "score_platform" , version = "0.5.1" , dev_dependency = True )
3737
38- # Toolchains and extensions
39- bazel_dep (name = "score_toolchains_gcc" , version = "0.5" , dev_dependency = True )
40- bazel_dep (name = "score_toolchains_qnx" , version = "0.0.6" , dev_dependency = True )
41- bazel_dep (name = "rust_qnx8_toolchain" , version = "1.2.0" , dev_dependency = True )
42- bazel_dep (name = "score_toolchains_rust" , version = "0.1.1" , dev_dependency = True )
38+ ## Configure the C++ toolchain
39+ bazel_dep (name = "score_bazel_cpp_toolchains" , version = "0.2.2" , dev_dependency = True )
40+
41+ gcc = use_extension ("@score_bazel_cpp_toolchains//extensions:gcc.bzl" , "gcc" , dev_dependency = True )
42+ gcc .toolchain (
43+ name = "score_gcc_x86_64_toolchain" ,
44+ target_cpu = "x86_64" ,
45+ target_os = "linux" ,
46+ use_default_package = True ,
47+ version = "12.2.0" ,
48+ )
49+ gcc .toolchain (
50+ name = "score_gcc_aarch64_toolchain" ,
51+ target_cpu = "aarch64" ,
52+ target_os = "linux" ,
53+ use_default_package = True ,
54+ version = "12.2.0" ,
55+ )
56+ gcc .toolchain (
57+ name = "score_qcc_x86_64_toolchain" ,
58+ sdp_version = "8.0.0" ,
59+ target_cpu = "x86_64" ,
60+ target_os = "qnx" ,
61+ use_default_package = True ,
62+ version = "12.2.0" ,
63+ )
64+ gcc .toolchain (
65+ name = "score_qcc_aarch64_toolchain" ,
66+ sdp_version = "8.0.0" ,
67+ target_cpu = "aarch64" ,
68+ target_os = "qnx" ,
69+ use_default_package = True ,
70+ version = "12.2.0" ,
71+ )
72+ use_repo (
73+ gcc ,
74+ "score_gcc_aarch64_toolchain" ,
75+ "score_gcc_x86_64_toolchain" ,
76+ "score_qcc_aarch64_toolchain" ,
77+ "score_qcc_x86_64_toolchain" ,
78+ )
79+
80+ ## Rust Toolchain
81+ bazel_dep (name = "score_toolchains_rust" , version = "0.4.0" , dev_dependency = True )
4382
4483# S-CORE crates
45- bazel_dep (name = "score_crates" , version = "0.0.6 " )
84+ bazel_dep (name = "score_crates" , version = "0.0.7 " )
4685
4786git_override (
48- module_name = "score_toolchains_rust " ,
49- commit = "bcf8e5364f72cf136ec81960350a82e2b5c45449 " ,
50- remote = "https://github.com/eclipse-score/toolchains_rust .git" ,
87+ module_name = "rules_rust " ,
88+ commit = "293337fd6402ec3dfbeb8f2d589f38ad9124dadd " ,
89+ remote = "https://github.com/pawelrutkaq/rules_rust .git" , # To be fixed once rule_rust is in score bazel registry
5190)
5291
5392git_override (
@@ -56,31 +95,6 @@ git_override(
5695 remote = "https://github.com/google/flatbuffers.git" ,
5796)
5897
59- archive_override (
60- module_name = "rust_qnx8_toolchain" ,
61- strip_prefix = "qnx8" ,
62- urls = [
63- "https://github.com/qorix-group/rust-lang-qnx8/releases/download/1.2.0/qnx8_rust_toolchain.tar.gz" ,
64- ],
65- )
66-
67- # Extensions
68-
69- gcc = use_extension ("@score_toolchains_gcc//extentions:gcc.bzl" , "gcc" , dev_dependency = True )
70- gcc .toolchain (
71- sha256 = "457f5f20f57528033cb840d708b507050d711ae93e009388847e113b11bf3600" ,
72- strip_prefix = "x86_64-unknown-linux-gnu" ,
73- url = "https://github.com/eclipse-score/toolchains_gcc_packages/releases/download/0.0.1/x86_64-unknown-linux-gnu_gcc12.tar.gz" ,
74- )
75- use_repo (gcc , "gcc_toolchain" , "gcc_toolchain_gcc" )
76-
77- toolchains_qnx = use_extension ("@score_toolchains_qnx//:extensions.bzl" , "toolchains_qnx" , dev_dependency = True )
78- toolchains_qnx .sdp (
79- sha256 = "f2e0cb21c6baddbcb65f6a70610ce498e7685de8ea2e0f1648f01b327f6bac63" ,
80- strip_prefix = "installation" ,
81- url = "https://www.qnx.com/download/download/79858/installation.tgz" ,
82- )
83-
8498deb = use_repo_rule ("@download_utils//download/deb:defs.bzl" , "download_deb" )
8599
86100deb (
@@ -99,10 +113,6 @@ python.toolchain(
99113)
100114use_repo (python )
101115
102- use_repo (toolchains_qnx , "toolchains_qnx_sdp" )
103- use_repo (toolchains_qnx , "toolchains_qnx_qcc" )
104- use_repo (toolchains_qnx , "toolchains_qnx_ifs" )
105-
106116bazel_dep (name = "score_baselibs_rust" , version = "0.0.5" )
107117bazel_dep (name = "score_baselibs" , version = "0.2.2" )
108118
0 commit comments