22 lines
535 B
Python
22 lines
535 B
Python
load(":dist.bzl", "copy_to_dist_dir")
|
|
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
|
|
|
exports_files(["dist.py"])
|
|
|
|
bzl_library(
|
|
name = "dist",
|
|
srcs = ["dist.bzl"] + [
|
|
"@bazel_skylib//rules:copy_file",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
# bazel run --package_path=out/soong/workspace //build/bazel_common_rules/dist:dist_bionic_example -- --dist_dir=/tmp/dist
|
|
copy_to_dist_dir(
|
|
name = "dist_bionic_example",
|
|
data = [
|
|
"//bionic/libc:libc",
|
|
"//bionic/libdl:libdl",
|
|
],
|
|
)
|