correct workspace_definitions.bzl, do not include self (#21)
* correct workspace_definitions.bzl, do not include self * use workspace definitions from WORKSPACE
This commit is contained in:
parent
838fdb117c
commit
be719ee2fc
15
WORKSPACE
15
WORKSPACE
|
@ -1,17 +1,10 @@
|
|||
workspace(name = "rules_foreign_cc")
|
||||
|
||||
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
|
||||
load("//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")
|
||||
|
||||
new_http_archive(
|
||||
name = "bazel_skylib",
|
||||
build_file_content = all_content,
|
||||
sha256 = "b5f6abe419da897b7901f90cbab08af958b97a8f3575b0d3dd062ac7ce78541f",
|
||||
strip_prefix = "bazel-skylib-0.5.0",
|
||||
type = "tar.gz",
|
||||
urls = [
|
||||
"https://github.com/bazelbuild/bazel-skylib/archive/0.5.0.tar.gz",
|
||||
],
|
||||
)
|
||||
rules_foreign_cc_dependencies()
|
||||
|
||||
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
|
||||
|
||||
new_http_archive(
|
||||
name = "libevent",
|
||||
|
|
|
@ -1,18 +1,13 @@
|
|||
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
|
||||
def rules_foreign_cc_dependencies():
|
||||
_all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
|
||||
|
||||
http_archive(
|
||||
name = "rules_foreign_cc",
|
||||
strip_prefix = "rules_foreign_cc-master",
|
||||
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/master.zip",
|
||||
)
|
||||
|
||||
new_http_archive(
|
||||
name = "bazel_skylib",
|
||||
build_file_content = all_content,
|
||||
sha256 = "b5f6abe419da897b7901f90cbab08af958b97a8f3575b0d3dd062ac7ce78541f",
|
||||
strip_prefix = "bazel-skylib-0.5.0",
|
||||
type = "tar.gz",
|
||||
urls = [
|
||||
"https://github.com/bazelbuild/bazel-skylib/archive/0.5.0.tar.gz",
|
||||
],
|
||||
)
|
||||
native.new_http_archive(
|
||||
name = "bazel_skylib",
|
||||
build_file_content = _all_content,
|
||||
sha256 = "b5f6abe419da897b7901f90cbab08af958b97a8f3575b0d3dd062ac7ce78541f",
|
||||
strip_prefix = "bazel-skylib-0.5.0",
|
||||
type = "tar.gz",
|
||||
urls = [
|
||||
"https://github.com/bazelbuild/bazel-skylib/archive/0.5.0.tar.gz",
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue