Skip to content

Commit 025bc7a

Browse files
authored
Merge pull request #69 from rtbot-dev/RB-255
RB-255 Next Generation Implementation
2 parents da48565 + d298ff7 commit 025bc7a

File tree

239 files changed

+20550
-7395
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+20550
-7395
lines changed

.bazelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ build --action_env=BAZEL_CXXOPTS="-std=c++17"
3131
build --cxxopt=-std=c++17
3232
build --repo_env=CC=clang
3333

34+
# linux
35+
build:linux --cxxopt=-stdlib=libc++
36+
# TODO: we need to comment this while building the documentation
37+
# we need a way to make it conditional
38+
3439
# windows
3540
# MSVC
3641
build:windows --cxxopt='/std:c++17'
@@ -40,3 +45,5 @@ startup --windows_enable_symlinks
4045
# allow to use network while building
4146
build --sandbox_default_allow_network
4247

48+
# Custom flags
49+
build --define enable_telemetry=false

BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
load("@aspect_rules_js//js:defs.bzl", "js_library")
2-
32
load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
43
load("@npm//:defs.bzl", "npm_link_all_packages")
54
load("@aspect_rules_js//npm:defs.bzl", "npm_link_package")
@@ -8,6 +7,13 @@ package(default_visibility = ["//visibility:public"])
87

98
exports_files(["package.json"])
109

10+
config_setting(
11+
name = "enable_telemetry",
12+
define_values = {
13+
"telemetry": "false",
14+
},
15+
)
16+
1117
npm_link_all_packages(name = "node_modules")
1218

1319
ts_config(

WORKSPACE

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,28 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
4040

4141
protobuf_deps()
4242

43-
load("@pybind11_bazel//:python_configure.bzl", "python_configure")
43+
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
4444

45-
python_configure(
46-
name = "local_config_python",
47-
python_version = "3",
45+
py_repositories()
46+
47+
python_register_toolchains(
48+
name = "python3_13",
49+
python_version = "3.13",
50+
)
51+
52+
load("@rules_python//python:pip.bzl", "pip_parse")
53+
54+
pip_parse(
55+
name = "py_deps",
56+
requirements_lock = "//:requirements-lock.txt",
4857
)
4958

59+
# Load the starlark macro, which will define your dependencies.
60+
load("@py_deps//:requirements.bzl", "install_deps")
61+
62+
# Call it to define repos for your requirements.
63+
install_deps()
64+
5065
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
5166

5267
rules_js_dependencies()
@@ -148,3 +163,19 @@ crate_repositories()
148163
load("@cxx.rs//third-party/bazel:defs.bzl", "crate_repositories")
149164

150165
crate_repositories()
166+
167+
load("@io_opentelemetry_cpp//bazel:repository.bzl", "opentelemetry_cpp_deps")
168+
169+
opentelemetry_cpp_deps()
170+
171+
load("@io_opentelemetry_cpp//bazel:extra_deps.bzl", "opentelemetry_extra_deps")
172+
173+
opentelemetry_extra_deps()
174+
175+
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
176+
177+
grpc_deps()
178+
179+
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
180+
181+
grpc_extra_deps()

apps/benchmark/BUILD.bazel

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ load("@rules_cc//cc:defs.bzl", "cc_test")
33
cc_test(
44
name = "benchmark",
55
srcs = glob(["src/**/*.cpp"]) + ["//libs/std/test:tools.h"],
6-
copts = ["-O3", "-Iexternal/benchmark/include", "-Ilibs/std/test", "-lbenchmark", "-lpthread"],
6+
copts = [
7+
"-O3",
8+
"-Ilibs/std/test",
9+
],
10+
data = ["//examples/data:ppg.csv"],
711
deps = [
12+
"//libs/api:rtbot-api",
813
"//libs/core:rtbot",
914
"//libs/std:rtbot-std",
10-
"@benchmark//:benchmark_main",
1115
],
12-
args = ["--benchmark_counters_tabular=true"],
13-
data = ["//examples/data:ppg.csv"]
1416
)

0 commit comments

Comments
 (0)