onnx-mlir/WORKSPACE

67 lines
2.5 KiB
Python
Raw Normal View History

2020-09-29 17:32:28 +08:00
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")
2020-10-10 21:05:48 +08:00
load("//third_party:repo.bzl", "tf_http_archive")
2020-09-29 17:32:28 +08:00
2020-10-10 21:05:48 +08:00
# protobuf #####################################################################
# rules_cc defines rules for generating C++ code from Protocol Buffers.
2020-09-29 17:32:28 +08:00
http_archive(
2020-10-10 21:05:48 +08:00
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")
2020-10-13 20:04:09 +08:00
2020-10-10 21:05:48 +08:00
rules_cc_dependencies()
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
2020-10-13 20:04:09 +08:00
rules_proto_dependencies()
2020-10-10 21:05:48 +08:00
2020-10-13 20:04:09 +08:00
rules_proto_toolchains()
2020-10-10 21:05:48 +08:00
###############################################################################
# Skylib #######################################################################
http_archive(
name = "bazel_skylib",
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
2020-09-29 17:32:28 +08:00
urls = [
2020-10-10 21:05:48 +08:00
"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",
2020-09-29 17:32:28 +08:00
],
)
2020-10-10 21:05:48 +08:00
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
###############################################################################
2020-09-29 17:32:28 +08:00
load(":onnxmlir.bzl", "onnxmlir_deps")
2020-10-10 21:05:48 +08:00
onnxmlir_deps()
2020-10-13 20:04:09 +08:00
load("@llvm-bazel//:configure.bzl", "llvm_configure")
llvm_configure(
name = "llvm-project",
src_path = ".",
src_workspace = "@llvm-project-raw//:WORKSPACE",
)