Mercurial
annotate mrjunejune/BUILD @ 124:dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 08 Jan 2026 07:31:32 -0800 |
| parents | 70401cf61e97 |
| children | f236c895604e |
| rev | line source |
|---|---|
|
7
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") |
|
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
2 load("@rules_cc//cc:cc_library.bzl", "cc_library") |
|
15
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
3 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle") |
|
12
de54585a40f1
Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents:
7
diff
changeset
|
4 |
|
124
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
5 # Files |
|
12
de54585a40f1
Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents:
7
diff
changeset
|
6 move_files_into_dir( |
|
83
49b611c808e7
Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
7 name = "compiled_ts_games", |
|
49b611c808e7
Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
8 srcs = [ |
|
49b611c808e7
Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
9 "//react_games:games" |
|
49b611c808e7
Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
10 ], |
|
84
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
11 dest = "src/games", |
|
83
49b611c808e7
Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
12 ) |
|
49b611c808e7
Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
13 |
|
49b611c808e7
Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
14 move_files_into_dir( |
|
12
de54585a40f1
Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents:
7
diff
changeset
|
15 name = "compiled_ts", |
|
15
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
16 srcs = [ |
|
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
17 "//playground:hello", |
|
83
49b611c808e7
Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
18 "//markdown_converter:markdown_to_html", |
|
12
de54585a40f1
Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents:
7
diff
changeset
|
19 ], |
|
84
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
20 dest = "src", |
|
12
de54585a40f1
Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents:
7
diff
changeset
|
21 ) |
|
7
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
22 |
|
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
23 filegroup( |
|
84
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
24 name = "src_files", |
|
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
25 srcs = glob(["src/**"]) + [":compiled_ts", ":compiled_ts_games"], |
|
7
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
26 ) |
|
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
27 |
|
124
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
28 # Server binary |
|
7
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
29 cc_binary( |
|
12
de54585a40f1
Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents:
7
diff
changeset
|
30 name = "mrjunejune_server", |
|
7
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
31 srcs = ["main.c"], |
| 96 | 32 deps = ["//seobeo:seobeo_server"], |
| 33 data = [":src_files"], | |
| 34 ) | |
| 35 | |
| 36 cc_binary( | |
| 37 name = "mrjunejune_server_dev", | |
| 38 srcs = ["main.c"], | |
|
124
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
39 deps = ["//seobeo:seobeo_server"], |
|
84
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
40 data = [":src_files"], |
|
7
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
41 ) |
|
15
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
42 |
|
124
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
43 # Rlease bundle |
|
15
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
44 bundle( |
|
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
45 name = "mrjunejune_server_bundle", |
|
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
46 binary = ":mrjunejune_server", |
|
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
47 ) |
|
37
fb9bcd3145cb
[ReactGames] Few games I made using react just to practice few things.
MrJuneJune <me@mrjunejune.com>
parents:
15
diff
changeset
|
48 |
| 96 | 49 bundle( |
| 50 name = "mrjunejune_server_dev_bundle", | |
| 51 binary = ":mrjunejune_server_dev", | |
| 52 ) | |
| 53 | |
|
124
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
54 # Tests |
|
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
55 # TODO: Move this in a folder. |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
56 cc_test( |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
57 name = "integration_test", |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
58 srcs = ["test/integration_test.c"], |
|
124
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
59 deps = ["//seobeo:seobeo_min"], |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
60 data = [ |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
61 "//mrjunejune:mrjunejune_server", |
|
84
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
62 "//mrjunejune:src_files", |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
63 "//mrjunejune:test_snapshots", |
|
94
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
64 "//mrjunejune:test_files", |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
65 ], |
|
94
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
66 size = "large", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
67 timeout = "long", |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
68 args = ["$(location //mrjunejune:mrjunejune_server)"], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
69 ) |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
70 |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
71 cc_binary( |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
72 name = "create_snapshots", |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
73 srcs = ["test/create_snapshots.c"], |
|
124
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
74 deps = ["//seobeo:seobeo_tcp_client"], |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
75 data = [ |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
76 "//mrjunejune:mrjunejune_server", |
|
84
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
77 "//mrjunejune:src_files", |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
78 ], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
79 args = ["$(location //mrjunejune:mrjunejune_server)"], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
80 ) |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
81 |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
82 filegroup( |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
83 name = "test_snapshots", |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
84 srcs = glob(["test/snapshots/**"]), |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
85 ) |
|
94
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
86 |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
87 filegroup( |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
88 name = "test_files", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
89 srcs = [ |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
90 "test/shiba.webp", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
91 "test/test_avi.avi", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
92 ], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
93 ) |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
94 |
|
124
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
95 # Experimenting with python to see if I can call it as ffi. |
|
dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
June Park <parkjune1995@gmail.com>
parents:
96
diff
changeset
|
96 # load("@rules_python//python:py_binary.bzl", "py_binary") |
|
94
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
97 # This was to use python ffi, but w/e |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
98 # cc_library( |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
99 # name = "mrjunejune_server_lib", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
100 # srcs = ["server_entry.c"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
101 # deps = ["//seobeo:seobeo_server"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
102 # linkstatic = False, |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
103 # visibility = ["//visibility:public"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
104 # ) |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
105 |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
106 # py_binary( |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
107 # name = "python_server", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
108 # srcs = ["python_server.py"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
109 # deps = [ |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
110 # ":mrjunejune_server_lib", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
111 # "@pip_deps//:cffi", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
112 # ], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
113 # data = [":mrjunejune_server_lib"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
114 # ) |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
115 |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
116 |