2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-27 17:43:27 +00:00
bazel-lib/lib/copy_to_directory.bzl

26 lines
615 B
Python

"Public API for copy_to_directory"
load(
"//lib/private:copy_to_directory.bzl",
lib = "copy_to_directory_lib",
)
_copy_to_directory = rule(
implementation = lib.impl,
provides = lib.provides,
attrs = lib.attrs,
)
def copy_to_directory(name, root_paths = None, **kwargs):
if root_paths == None:
root_paths = [native.package_name()]
_copy_to_directory(
name = name,
root_paths = root_paths,
is_windows = select({
"@bazel_tools//src/conditions:host_windows": True,
"//conditions:default": False,
}),
**kwargs
)