annotate playground/BUILD @ 49:2b11e0449042

[React Game] 2048 game.
author MrJuneJune <me@mrjunejune.com>
date Sat, 13 Dec 2025 14:24:20 -0800
parents b212647e8654
children 75de5903355c
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",
27
b212647e8654 [Bun] Adding OS specific files that I used for testing as to be ignored.
June Park <parkjune1995@gmail.com>
parents: 25
diff changeset
33 data = [
b212647e8654 [Bun] Adding OS specific files that I used for testing as to be ignored.
June Park <parkjune1995@gmail.com>
parents: 25
diff changeset
34 "//third_party/bun:bun_files",
b212647e8654 [Bun] Adding OS specific files that I used for testing as to be ignored.
June Park <parkjune1995@gmail.com>
parents: 25
diff changeset
35 ":all_ts_files",
b212647e8654 [Bun] Adding OS specific files that I used for testing as to be ignored.
June Park <parkjune1995@gmail.com>
parents: 25
diff changeset
36 ],
12
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
37 visibility = ["//visibility:public"],
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 1
diff changeset
38 )