view playground/BUILD @ 24:7d3fa1a7a854

[GuiZe] Support x86 chip for bun.
author June Park <parkjune1995@gmail.com>
date Tue, 07 Oct 2025 09:13:29 -0700
parents fa2b8af609d9
children 342726584be2
line wrap: on
line source

load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("//gui_ze:gui_ze.bzl", "bun_build")

alias(
  name = "playground",
  actual = select({
    "@platforms//os:osx": ":playground_osx",
  })
)

cc_binary(
  name = "playground_osx",
  srcs = ["main.c"],
  deps = [
    "@openssl//:ssl",
  ]
)

filegroup(
  name = "all_ts_files",
  srcs = glob([
      "**/*.ts",
      "**/*.tsx",
      "**/*.js",
      "**/*.jsx",
  ], allow_empty=True)
)

bun_build(
  name = "hello",
  src = "main.ts",
  data = ["//third_party/bun:node_modules", ":all_ts_files"],
  visibility = ["//visibility:public"],
)