mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-15 02:05:45 -04:00
[wip] all cc deps from nix
This commit is contained in:
parent
6a2b0b6a4c
commit
f888d67ed5
18 changed files with 244 additions and 63 deletions
|
@ -17,12 +17,16 @@ _platform_transition = transition(
|
|||
def _platform_binary_impl(ctx):
|
||||
out = ctx.actions.declare_file("{}_{}".format(ctx.file.target_file.basename, ctx.attr.platform))
|
||||
ctx.actions.symlink(output = out, target_file = ctx.file.target_file)
|
||||
runfiles = ctx.runfiles(files = ctx.files.target_file)
|
||||
runfiles = runfiles.merge(ctx.attr.target_file[DefaultInfo].default_runfiles)
|
||||
runfiles = runfiles.merge(ctx.attr.target_file[DefaultInfo].data_runfiles)
|
||||
|
||||
return [
|
||||
DefaultInfo(
|
||||
executable = out,
|
||||
files = depset([out]),
|
||||
runfiles = ctx.runfiles(files = ctx.files.target_file),
|
||||
runfiles = runfiles,
|
||||
# runfiles = ctx.attr.target_file[DefaultInfo].default_runfiles,
|
||||
),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue