comparison playground/BUILD @ 12:de54585a40f1

Adding bun and node modules.
author June Park <parkjune1995@gmail.com>
date Thu, 02 Oct 2025 14:39:48 -0700
parents adcfad6e86fb
children 2b9e75756825
comparison
equal deleted inserted replaced
11:f33d9ff8b6e8 12:de54585a40f1
1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
2 load("//gui_ze:gui_ze.bzl", "bun_build", "move_to_directory")
2 3
3 alias( 4 alias(
4 name = "playground", 5 name = "playground",
5 actual = select({ 6 actual = select({
6 "@platforms//os:osx": ":playground_osx", 7 "@platforms//os:osx": ":playground_osx",
8 ) 9 )
9 10
10 cc_binary( 11 cc_binary(
11 name = "playground_osx", 12 name = "playground_osx",
12 srcs = ["main.c"], 13 srcs = ["main.c"],
13 deps = [],
14 ) 14 )
15
16 # TODO: Testing out if I can create a symlink for this.
17 move_to_directory(
18 name = "node_modules",
19 data = ["//third_party/bun:node_modules"],
20 dest = "",
21 )
22
23 filegroup(
24 name = "all_ts_files",
25 srcs = glob([
26 "**/*.ts",
27 "**/*.tsx",
28 "**/*.js",
29 "**/*.jsx",
30 ], allow_empty=True)
31 )
32
33 bun_build(
34 name = "playground_tsx",
35 src = "main.ts",
36 data = ["//third_party/bun:node_modules", ":all_ts_files"],
37 visibility = ["//visibility:public"],
38 )