diff --git a/engine/.gitignore b/engine/.gitignore index dc5fcee527b594969eee351c9119b71ccd45398a..193cf2701b37526f5038785366ad7fa9ef81e512 100644 --- a/engine/.gitignore +++ b/engine/.gitignore @@ -1,4 +1,5 @@ .cache +.clwb .pytest_cache build bin diff --git a/engine/bazel/deps.bzl b/engine/bazel/deps.bzl index 0cd1d6f5b32c5045f91db72d43957be81bb7493a..436741dac6cb4a848110b5c21ab95b429fa992a5 100644 --- a/engine/bazel/deps.bzl +++ b/engine/bazel/deps.bzl @@ -1,21 +1,37 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + +ECLIPSE_GITLAB = "https://gitlab.eclipse.org/eclipse" + +MANTLE_API_TAG = "v0.0.3" +UNITS_TAG = "2.3.3" +YASE_TAG = "v0.0.1" def osc_engine_deps(): """Load dependencies""" - native.local_repository( + maybe( + http_archive, name = "mantle_api", - path = "deps/scenario_api/", + url = ECLIPSE_GITLAB + "/openpass/mantle-api/-/archive/{tag}/mantle-api-{tag}.tar.gz".format(tag = MANTLE_API_TAG), + sha256 = "b16b3f2d83d085260c9dd33c2436cfaa7b67037a037d4b8997b9ff87ab56fac9", + strip_prefix = "mantle-api-{tag}".format(tag = MANTLE_API_TAG), ) - native.new_local_repository( + maybe( + http_archive, name = "units_nhh", - path = "deps/units/", + url = "https://github.com/nholthaus/units/archive/refs/tags/v{tag}.tar.gz".format(tag = UNITS_TAG), + sha256 = "b1f3c1dd11afa2710a179563845ce79f13ebf0c8c090d6aa68465b18bd8bd5fc", + strip_prefix = "./units-{tag}".format(tag= UNITS_TAG), build_file = "//bazel:units.BUILD", ) - native.local_repository( + maybe( + http_archive, name = "yase", - path = "deps/yase", + url = ECLIPSE_GITLAB + "/openpass/yase/-/archive/{tag}/yase-{tag}.tar.gz".format(tag = YASE_TAG), + sha256 = "243d710172dff4c4e7ab95e5bd68a6d8335cf8a3fdd1efa87d118250e3b85ee3", + strip_prefix = "yase-{tag}".format(tag = YASE_TAG), ) http_archive(