67 lines
2.5 KiB
Python
67 lines
2.5 KiB
Python
workspace(name = "onnxmlir")
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
|
|
load("//third_party:repo.bzl", "tf_http_archive")
|
|
|
|
# protobuf #####################################################################
|
|
# rules_cc defines rules for generating C++ code from Protocol Buffers.
|
|
http_archive(
|
|
name = "rules_cc",
|
|
sha256 = "35f2fb4ea0b3e61ad64a369de284e4fbbdcdba71836a5555abb5e194cf119509",
|
|
strip_prefix = "rules_cc-624b5d59dfb45672d4239422fa1e3de1822ee110",
|
|
urls = [
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.tar.gz",
|
|
"https://github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.tar.gz",
|
|
],
|
|
)
|
|
|
|
# rules_proto defines abstract rules for building Protocol Buffers.
|
|
http_archive(
|
|
name = "rules_proto",
|
|
sha256 = "2490dca4f249b8a9a3ab07bd1ba6eca085aaf8e45a734af92aad0c42d9dc7aaf",
|
|
strip_prefix = "rules_proto-218ffa7dfa5408492dc86c01ee637614f8695c45",
|
|
urls = [
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/218ffa7dfa5408492dc86c01ee637614f8695c45.tar.gz",
|
|
"https://github.com/bazelbuild/rules_proto/archive/218ffa7dfa5408492dc86c01ee637614f8695c45.tar.gz",
|
|
],
|
|
)
|
|
|
|
load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies")
|
|
|
|
rules_cc_dependencies()
|
|
|
|
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
|
|
|
|
rules_proto_dependencies()
|
|
|
|
rules_proto_toolchains()
|
|
###############################################################################
|
|
|
|
# Skylib #######################################################################
|
|
http_archive(
|
|
name = "bazel_skylib",
|
|
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
|
|
urls = [
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
|
|
],
|
|
)
|
|
|
|
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
|
|
|
bazel_skylib_workspace()
|
|
###############################################################################
|
|
|
|
load(":onnxmlir.bzl", "onnxmlir_deps")
|
|
|
|
onnxmlir_deps()
|
|
|
|
load("@llvm-bazel//:configure.bzl", "llvm_configure")
|
|
|
|
llvm_configure(
|
|
name = "llvm-project",
|
|
src_path = ".",
|
|
src_workspace = "@llvm-project-raw//:WORKSPACE",
|
|
)
|