blob: 60870a35f665a946a64e16674842ea8365a3e5af [file] [log] [blame]
<%include file="header.mako" />
% for layer in data.layers:
copy("${layer.name}_config") {
sources = [
"${layer.config}",
]
outputs = [
<%text>"${root_gen_dir}/</%text>${layer.config}",
]
}
copy("${layer.name}_lib") {
sources = [
% if 'MISSING' in layer.binary:
# Layer ${layer.name} has a config but does not have a binary.
# This path will result in a build error.
% endif
"${layer.binary}",
]
outputs = [
<%text>"${root_out_dir}/lib/{{source_file_part}}",</%text>
]
}
group("${layer.name}") {
data_deps = [
":${layer.name}_config",
":${layer.name}_lib",
]
}
% endfor