view playground/BUILD @ 19:875bb6e10db7

[Seobeo] Chaning Function naming to be easily readable.
author June Park <parkjune1995@gmail.com>
date Mon, 06 Oct 2025 09:55:34 -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"],
)