forked from EVerest/everest-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE.bazel
More file actions
127 lines (108 loc) · 4.27 KB
/
MODULE.bazel
File metadata and controls
127 lines (108 loc) · 4.27 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
121
122
123
124
125
126
127
module(
name = "everest-core",
version = "2026.02.0",
)
###############################################################################
# B A Z E L C E N T R A L R E G I S T R Y # https://registry.bazel.build/
###############################################################################
bazel_dep(name = "everest-framework", version = "0.24.0")
local_path_override(
module_name="everest-framework",
path="lib/everest/framework",
)
bazel_dep(name = "everest-utils", version = "0.7.3")
local_path_override(
module_name="everest-utils",
path="applications/utils"
)
bazel_dep(name = "bazel_features", version = "1.21.0")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
BOOST_VERSION = "1.87.0"
bazel_dep(name = "boost.asio", version = BOOST_VERSION)
bazel_dep(name = "boost.process", version = BOOST_VERSION)
bazel_dep(name = "boost.uuid", version = BOOST_VERSION)
bazel_dep(name = "fmt", version = "12.1.0", repo_name = "com_github_fmtlib_fmt")
bazel_dep(name = "nlohmann_json", version = "3.12.0.bcr.1", repo_name = "com_github_nlohmann_json")
bazel_dep(name = "libcap", version = "2.27.bcr.1")
bazel_dep(name = "openssl", version = "3.3.1.bcr.1")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_foreign_cc", version = "0.14.0")
bazel_dep(name = "rules_license", version = "0.0.7")
bazel_dep(name = "rules_python", version = "1.3.0")
bazel_dep(name = "rules_rust", version = "0.67.0")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "pybind11_bazel", version = "2.13.6")
bazel_dep(name = "boost.exception", version = BOOST_VERSION)
bazel_dep(name = "boost.log", version = BOOST_VERSION)
bazel_dep(name = "boost.utility", version = BOOST_VERSION)
bazel_dep(name = "sqlite3", version = "3.51.2")
###############################################################################
# N O N M O D U L E
###############################################################################
deps = use_extension("//third-party/bazel:extension.bzl", "deps")
use_repo(
deps,
"libtimer",
"libevse-security",
"libocpp",
"pugixml",
"sigslot",
"com_github_HowardHinnant_date",
)
###############################################################################
# P Y T H O N
###############################################################################
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
python_version = "3.10",
is_default = True,
)
use_repo(python, "python_3_10")
pip_deps = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip_deps.parse(
python_version = "3.10",
hub_name = "everest-core_everest-testing_pip_deps",
requirements_lock = "@everest-utils//:requirements-bazel.txt",
)
use_repo(pip_deps, "everest-testing_pip_deps")
###############################################################################
# R U S T
###############################################################################
RUST_EDITION = "2021"
RUST_VERSION = "1.85.1"
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = RUST_EDITION,
extra_target_triples = [
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-gnu",
],
versions = [RUST_VERSION],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
everest_core_crate_index = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
everest_core_crate_index.from_cargo(
name = "everest_core_crate_index",
cargo_lockfile = "@everest-core//modules:Cargo.lock",
manifests = [
"@everest-core//modules:Cargo.toml",
"@everest-core//modules/HardwareDrivers/PowerMeters/RsIskraMeter:Cargo.toml",
"@everest-core//modules/HardwareDrivers/Payment/RsPaymentTerminal:Cargo.toml",
"@everest-core//modules/Examples/RustExamples/RsExample:Cargo.toml",
"@everest-core//modules/Examples/RustExamples/RsExampleUser:Cargo.toml",
],
)
everest_core_crate_index.annotation(
crate = "everestrs",
crate_features = ["build_bazel"],
deps = [
"@everest-framework//everestrs/everestrs-build",
"@everest-framework//everestrs/everestrs",
],
)
use_repo(
everest_core_crate_index,
"everest_core_crate_index",
)