12 lines
350 B (Stored with Git LFS)
Python
12 lines
350 B (Stored with Git LFS)
Python
"""Skylark makros for building pasta."""
|
|
|
|
def copy_srcs(srcs):
|
|
"""Copies srcs from 'pasta' to parent directory."""
|
|
for src in srcs:
|
|
native.genrule(
|
|
name = src.replace(".", "_"),
|
|
srcs = ["pasta/" + src],
|
|
outs = [src],
|
|
cmd = "mkdir -p $$(dirname $@); cp $< $@",
|
|
)
|
|
return srcs
|