2017-02-01 00:45:59 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "addon-srcs",
|
2017-02-03 13:41:32 +00:00
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"**/*.json",
|
|
|
|
"**/*.yaml",
|
|
|
|
"**/*.yaml.in",
|
|
|
|
],
|
|
|
|
exclude = ["**/*demo*/**"],
|
|
|
|
),
|
2017-02-01 00:45:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
pkg_tar(
|
|
|
|
name = "addons",
|
|
|
|
extension = "tar.gz",
|
|
|
|
files = [
|
|
|
|
":addon-srcs",
|
|
|
|
],
|
2017-02-03 13:41:32 +00:00
|
|
|
mode = "0644",
|
2017-02-01 00:45:59 +00:00
|
|
|
strip_prefix = ".",
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [":package-srcs"],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
)
|