Mercurial
view third_party/bun/BUILD @ 17:d97ec3ded2ae
[Seobeo] Few changes...
- Fixed seobeo edge for macos
- Updated so that socket creation can be used for both client and server
- Started on a cutelient library for making connection to the server.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Sat, 04 Oct 2025 07:53:12 -0700 |
| parents | de54585a40f1 |
| children | 7d3fa1a7a854 |
line wrap: on
line source
load("//gui_ze:gui_ze.bzl", "bun_binary") alias( name = "bun", actual = select({ "//config:macos": ":bun_darwin_arm64", "//config:linux": ":bun_linux_aarch64", "//conditions:default": ":bun_linux_aarch64", }), visibility = ["//visibility:public"], ) bun_binary( name = "bun_darwin_arm64", srcs = ["@bun_darwin_arm64_zip//file"], target_compatible_with = [ "@platforms//os:osx", ], visibility = ["//visibility:public"], ) genrule( name = "bun_linux_aarch64", srcs = ["@bun_linux_aarch64_zip//file"], outs = ["bun_linux"], # must be a file, not a directory cmd = """ mkdir -p $(@D) unzip -j $(SRCS) bun-linux-aarch64/bun -d $(@D) chmod +x $(@D)/bun mv $(@D)/bun $@ """, executable = True, target_compatible_with = [ "@platforms//os:linux", ], visibility = ["//visibility:public"], ) filegroup( name = "node_modules", srcs = [ "package.json", "tsconfig.json", "bun.lock", ] + glob(["node_modules/**"]), visibility = ["//visibility:public"], ) filegroup( name = "bun_dir", srcs = glob(["**"], exclude = ["BUILD", "bun"],), visibility = ["//visibility:public"], )