Repository navigation
Expand file tree
/
Copy pathMODULE.bazel
More file actions
120 lines (101 loc) · 3.67 KB
/
Copy pathMODULE.bazel
File metadata and controls
120 lines (101 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# *******************************************************************************
# 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 = "feo",
version = "0.1",
)
bazel_dep(name = "communication", version = "1.0.0")
git_override(
module_name = "communication",
commit = "044b251136c87d4281dcdeaa5626d76546c1947f",
remote = "https://github.com/eclipse-score/communication.git",
)
bazel_dep(name = "rules_boost", repo_name = "com_github_nelhage_rules_boost")
archive_override(
module_name = "rules_boost",
strip_prefix = "rules_boost-master",
urls = ["https://github.com/nelhage/rules_boost/archive/refs/heads/master.tar.gz"],
)
bazel_dep(name = "boost.program_options", version = "1.87.0")
bazel_dep(name = "trlc", version = "0.0.0")
git_override(
module_name = "trlc",
commit = "650b51a47264a4f232b3341f473527710fc32669", # trlc-2.0.2 release
remote = "https://github.com/bmw-software-engineering/trlc.git",
)
bazel_dep(name = "score_toolchains_gcc", version = "0.4", dev_dependency = True)
gcc = use_extension("@score_toolchains_gcc//extentions:gcc.bzl", "gcc", dev_dependency = True)
gcc.toolchain(
sha256 = "457f5f20f57528033cb840d708b507050d711ae93e009388847e113b11bf3600",
strip_prefix = "x86_64-unknown-linux-gnu",
url = "https://github.com/eclipse-score/toolchains_gcc_packages/releases/download/0.0.1/x86_64-unknown-linux-gnu_gcc12.tar.gz",
)
# TODO to be moved to toolchain. https://github.com/eclipse-score/toolchains_gcc/issues/11
gcc.extra_features(
features = [
"minimal_warnings",
"treat_warnings_as_errors",
],
)
gcc.warning_flags(
minimal_warnings = [
"-Wall",
"-Wno-error=deprecated-declarations",
],
strict_warnings = [
"-Wextra",
"-Wpedantic",
],
treat_warnings_as_errors = ["-Werror"],
)
use_repo(gcc, "gcc_toolchain", "gcc_toolchain_gcc")
bazel_dep(name = "score-baselibs", version = "0.0.0")
git_override(
module_name = "score-baselibs",
commit = "f02d7f427df1968df8d5f9f9aa85bf68baeb839e",
remote = "https://github.com/eclipse-score/baselibs.git",
)
bazel_dep(name = "score_crates", version = "1.0.0")
git_override(
module_name = "score_crates",
commit = "6031e8c018da76b108f0f9c3772b0c535125ac28",
remote = "https://github.com/eclipse-score/score-crates.git",
)
bazel_dep(name = "rules_python", version = "1.4.1")
PYTHON_VERSION = "3.12"
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
is_default = True,
python_version = PYTHON_VERSION,
)
# Add GoogleTest dependency
bazel_dep(name = "googletest", version = "1.17.0")
# Rust rules for Bazel
bazel_dep(name = "rules_rust", version = "0.63.0")
# C/C++ rules for Bazel
bazel_dep(name = "rules_cc", version = "0.2.1")
# tooling
bazel_dep(name = "score_tooling", version = "1.0.1")
bazel_dep(name = "aspect_rules_lint", version = "1.5.3")
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2")
#docs-as-code
bazel_dep(name = "score_docs_as_code", version = "1.1.0")
# Rust Toolchain
RUST_EDITION = "2021"
RUST_VERSION = "1.83.0"
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = RUST_EDITION,
versions = [RUST_VERSION],
)
use_repo(rust, "rust_toolchains")