Mercurial
comparison gui_ze/gui_ze.bzl @ 64:a30944e5719e
Added vibe coded markdown to html script since it is useful for me. Updated Dowa so that it can be compiled without dirnet for windows.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 23 Dec 2025 15:18:46 -0800 |
| parents | ccb42d5bf8fd |
| children | 7eb79fd91c7e |
comparison
equal
deleted
inserted
replaced
| 63:fff1b048dda6 | 64:a30944e5719e |
|---|---|
| 141 }, | 141 }, |
| 142 ) | 142 ) |
| 143 | 143 |
| 144 def _move_files_into_dir_impl(ctx): | 144 def _move_files_into_dir_impl(ctx): |
| 145 srcs = ctx.files.srcs | 145 srcs = ctx.files.srcs |
| 146 outs = [] | |
| 146 for src in srcs: | 147 for src in srcs: |
| 147 out = ctx.actions.declare_file(ctx.attr.dest + "/" + src.basename) | 148 out = ctx.actions.declare_file(ctx.attr.dest + "/" + src.basename) |
| 148 ctx.actions.symlink( | 149 ctx.actions.run_shell( |
| 149 output = out, | 150 inputs = [src], |
| 150 target_file = src, | 151 outputs = [out], |
| 151 ) | 152 command = "cp \"$1\" \"$2\"", |
| 152 return [DefaultInfo(files = depset([out]))] | 153 arguments = [src.path, out.path], |
| 154 ) | |
| 155 outs.append(out) | |
| 156 return [DefaultInfo(files = depset(outs))] | |
| 153 | 157 |
| 154 move_files_into_dir = rule( | 158 move_files_into_dir = rule( |
| 155 implementation = _move_files_into_dir_impl, | 159 implementation = _move_files_into_dir_impl, |
| 156 attrs = { | 160 attrs = { |
| 157 "srcs": attr.label_list(allow_files=True), | 161 "srcs": attr.label_list(allow_files=True), |