-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathWORKSPACE
More file actions
75 lines (53 loc) · 2.1 KB
/
WORKSPACE
File metadata and controls
75 lines (53 loc) · 2.1 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
workspace(name="srp")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("//bazel/toolchain:toolchain.bzl", "register_all_toolchains")
register_all_toolchains()
load("//third_party:deps.bzl", "deps")
deps()
load("//bazel/libs:third_party_repositories.bzl", "include_srp_platform", "include_srp_mavlink",
"include_gtest_mock", "include_simdjson", "include_json", "include_simulation_data")
include_srp_platform("release-2503")
load("@srp_platform//:download.bzl", "download")
download()
load("@srp_platform//:install.bzl", "install")
install()
load("@srp_platform//:install_python.bzl", "install_python")
install_python()
load("@srp_platform//:pip_install.bzl", "pip_install")
pip_install()
include_srp_mavlink("0.12.0")
include_gtest_mock()
include_json("3.11.3")
include_simdjson("4.4.2", "284f1c5936e7eede83ce53ed4b03bcb09af02e3ddfec0aa465df109a8f6d3e87")
include_simulation_data()
##### PYTHON
http_archive(
name = "doipclient",
strip_prefix = "python-doipclient-1.1.1/doipclient",
build_file = "//bazel/libs:doipclient.BUILD",
urls = ["https://github.com/jacobschaer/python-doipclient/archive/refs/tags/v1.1.1.zip"],
type = "zip",
)
http_archive(
name = "rules_python",
sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b",
strip_prefix = "rules_python-0.26.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar.gz",
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
python_register_toolchains(
name = "python_3_11",
# Available versions are listed in @rules_python//python:versions.bzl.
# We recommend using the same version your team is already standardized on.
python_version = "3.11",
)
load("@python_3_11//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")
pip_parse(
name = "pip_deps",
requirements_lock = "//third_party/python:requirements.txt",
)
load("@pip_deps//:requirements.bzl", "install_deps")
install_deps()