annotate playground/BUILD @ 25:342726584be2

[Bun] Fixed how bun would be ran within bazel.
author June Park <parkjune1995@gmail.com>
date Thu, 09 Oct 2025 06:41:02 -0700
parents fa2b8af609d9
children b212647e8654
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
15
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
2 load("//gui_ze:gui_ze.bzl", "bun_build")
1
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
3
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
4 alias(
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
5 name = "playground",
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
6 actual = select({
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
7 "@platforms//os:osx": ":playground_osx",
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
8 })
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
9 )
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
10
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
11 cc_binary(
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
12 name = "playground_osx",
adcfad6e86fb Updated naming and separated out some logic within seobeo.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
13 srcs = ["main.c"],
18
fa2b8af609d9 [Seobeo] Fixed a bug with pathing. Support SSL.
June Park <parkjune1995@gmail.com>
parents: 15
diff changeset
14 deps = [
fa2b8af609d9 [Seobeo] Fixed a bug with pathing. Support SSL.
June Park <parkjune1995@gmail.com>
parents: 15
diff changeset
15 "@openssl//:ssl",
fa2b8af609d9 [Seobeo] Fixed a bug with pathing. Support SSL.
June Park <parkjune1995@gmail.com>
parents: 15
diff changeset
16 ]
12
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
17 )
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
18
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
19 filegroup(
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
20 name = "all_ts_files",
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
21 srcs = glob([
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
22 "**/*.ts",
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
23 "**/*.tsx",
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
24 "**/*.js",
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
25 "**/*.jsx",
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
26 ], allow_empty=True)
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
27 )
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
28
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
29 bun_build(
15
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
30 name = "hello",
12
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
31 src = "main.ts",
25
342726584be2 [Bun] Fixed how bun would be ran within bazel.
June Park <parkjune1995@gmail.com>
parents: 18
diff changeset
32 src_folder = "playground",
12
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
33 data = ["//third_party/bun:node_modules", ":all_ts_files"],
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
34 visibility = ["//visibility:public"],
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
35 )