Mercurial
annotate mrjunejune/BUILD @ 120:cbbf78b17cfa
[Seobeo][Websocket] Created Web socket client logic.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 08 Jan 2026 03:19:59 -0800 |
| parents | 70401cf61e97 |
| children | dbf14f84d51c |
| 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") |
|
71
75de5903355c
Giagantic changes that update Dowa library to be more align with stb style array and hashmap. Updated Seobeo to be caching on server side instead of file level caching. Deleted bunch of things I don't really use.
June Park <parkjune1995@gmail.com>
parents:
67
diff
changeset
|
3 # load("@rules_python//python:py_binary.bzl", "py_binary") |
|
15
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
4 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
|
5 |
|
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 |
|
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
28 cc_binary( |
|
12
de54585a40f1
Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents:
7
diff
changeset
|
29 name = "mrjunejune_server", |
|
7
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
30 srcs = ["main.c"], |
| 96 | 31 deps = ["//seobeo:seobeo_server"], |
| 32 data = [":src_files"], | |
| 33 ) | |
| 34 | |
| 35 cc_binary( | |
| 36 name = "mrjunejune_server_dev", | |
| 37 srcs = ["main.c"], | |
| 38 deps = ["//seobeo:seobeo_server_dev"], | |
|
84
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
39 data = [":src_files"], |
|
7
114cad94008f
[Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
40 ) |
|
15
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
41 |
|
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
42 bundle( |
|
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
43 name = "mrjunejune_server_bundle", |
|
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
44 binary = ":mrjunejune_server", |
|
2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents:
12
diff
changeset
|
45 ) |
|
37
fb9bcd3145cb
[ReactGames] Few games I made using react just to practice few things.
MrJuneJune <me@mrjunejune.com>
parents:
15
diff
changeset
|
46 |
| 96 | 47 bundle( |
| 48 name = "mrjunejune_server_dev_bundle", | |
| 49 binary = ":mrjunejune_server_dev", | |
| 50 ) | |
| 51 | |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
52 cc_test( |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
53 name = "integration_test", |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
54 srcs = ["test/integration_test.c"], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
55 deps = ["//seobeo:seobeo_client"], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
56 data = [ |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
57 "//mrjunejune:mrjunejune_server", |
|
84
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
58 "//mrjunejune:src_files", |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
59 "//mrjunejune:test_snapshots", |
|
94
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
60 "//mrjunejune:test_files", |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
61 ], |
|
94
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
62 size = "large", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
63 timeout = "long", |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
64 args = ["$(location //mrjunejune:mrjunejune_server)"], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
65 ) |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
66 |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
67 cc_binary( |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
68 name = "create_snapshots", |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
69 srcs = ["test/create_snapshots.c"], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
70 deps = ["//seobeo:seobeo_client"], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
71 data = [ |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
72 "//mrjunejune:mrjunejune_server", |
|
84
bcc76a156aea
Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents:
83
diff
changeset
|
73 "//mrjunejune:src_files", |
|
67
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
74 ], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
75 args = ["$(location //mrjunejune:mrjunejune_server)"], |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
76 ) |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
77 |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
78 filegroup( |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
79 name = "test_snapshots", |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
80 srcs = glob(["test/snapshots/**"]), |
|
6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents:
64
diff
changeset
|
81 ) |
|
94
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
82 |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
83 filegroup( |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
84 name = "test_files", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
85 srcs = [ |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
86 "test/shiba.webp", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
87 "test/test_avi.avi", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
88 ], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
89 ) |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
90 |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
91 # This was to use python ffi, but w/e |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
92 # cc_library( |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
93 # name = "mrjunejune_server_lib", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
94 # srcs = ["server_entry.c"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
95 # deps = ["//seobeo:seobeo_server"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
96 # linkstatic = False, |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
97 # visibility = ["//visibility:public"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
98 # ) |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
99 |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
100 # py_binary( |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
101 # name = "python_server", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
102 # srcs = ["python_server.py"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
103 # deps = [ |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
104 # ":mrjunejune_server_lib", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
105 # "@pip_deps//:cffi", |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
106 # ], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
107 # data = [":mrjunejune_server_lib"], |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
108 # ) |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
109 |
|
092afa595764
[MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents:
84
diff
changeset
|
110 |