Mercurial
comparison gui_ze/gui_ze.bzl @ 24:7d3fa1a7a854
[GuiZe] Support x86 chip for bun.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 07 Oct 2025 09:13:29 -0700 |
| parents | 2b9e75756825 |
| children | 342726584be2 |
comparison
equal
deleted
inserted
replaced
| 23:2d0d0b6c8906 | 24:7d3fa1a7a854 |
|---|---|
| 77 chmod +x {outdir}/bun | 77 chmod +x {outdir}/bun |
| 78 mv {outdir}/bun {out} | 78 mv {outdir}/bun {out} |
| 79 """.format( | 79 """.format( |
| 80 outdir = out.dirname, | 80 outdir = out.dirname, |
| 81 src = ctx.files.srcs[0].path, | 81 src = ctx.files.srcs[0].path, |
| 82 inner = "bun-darwin-aarch64/bun", | 82 inner = ctx.attr.src_folder, |
| 83 out = out.path, | 83 out = out.path, |
| 84 ), | 84 ), |
| 85 ) | 85 ) |
| 86 return DefaultInfo( | 86 return DefaultInfo( |
| 87 files = depset([out]), | 87 files = depset([out]), |
| 90 | 90 |
| 91 bun_binary = rule( | 91 bun_binary = rule( |
| 92 implementation = _bun_binary_impl, | 92 implementation = _bun_binary_impl, |
| 93 attrs = { | 93 attrs = { |
| 94 "srcs": attr.label_list(allow_files=True), | 94 "srcs": attr.label_list(allow_files=True), |
| 95 "src_folder": attr.string(), | |
| 95 }, | 96 }, |
| 96 executable = True, | 97 executable = True, |
| 97 ) | 98 ) |
| 98 | 99 |
| 99 def _bun_build_impl(ctx): | 100 def _bun_build_impl(ctx): |