comparison mrjunejune/BUILD @ 158:1c0878eb17de

[MrJuneJune] Readme file gets compiled in server side.
author June Park <parkjune1995@gmail.com>
date Wed, 14 Jan 2026 07:59:19 -0800
parents bdcc610eeed8
children 295ac2e5ec00
comparison
equal deleted inserted replaced
157:2db6253f355d 158:1c0878eb17de
2 load("@rules_cc//cc:cc_library.bzl", "cc_library") 2 load("@rules_cc//cc:cc_library.bzl", "cc_library")
3 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle") 3 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle")
4 4
5 # Files 5 # Files
6 move_files_into_dir( 6 move_files_into_dir(
7 name = "compiled_ts_games", 7 name = "react_pages",
8 srcs = [ 8 srcs = [
9 "//react_games:games" 9 "//react_games:games"
10 ], 10 ],
11 dest = "src/games", 11 dest = "src/games",
12 ) 12 )
13 13
14 move_files_into_dir( 14 move_files_into_dir(
15 name = "compiled_ts", 15 name = "shared_js_non_public",
16 srcs = [ 16 srcs = [
17 "//markdown_converter:markdown_to_html", 17 "//markdown_converter:markdown_to_html",
18 "//markdown_converter:markdown_to_html_wasm",
19 ], 18 ],
20 dest = "src", 19 dest = "src",
21 ) 20 )
22 21
22 move_files_into_dir(
23 name = "shared_js_file",
24 srcs = [
25 "//third_party/highlight:js",
26 ],
27 dest = "src/public/highlight",
28 )
29
23 filegroup( 30 filegroup(
24 name = "src_files", 31 name = "src_files",
25 srcs = glob(["src/**"]) + [":compiled_ts", ":compiled_ts_games"], 32 srcs = glob(["src/**"]) + [":react_pages", ":shared_js_non_public", "shared_js_file"],
26 visibility = ["//mrjunejune/test:__pkg__"], 33 visibility = ["//mrjunejune/test:__pkg__"],
27 ) 34 )
28 35
29 # Server binary 36 # Server binary
30 cc_binary( 37 cc_binary(
31 name = "mrjunejune_server", 38 name = "mrjunejune_server",
32 srcs = ["main.c"], 39 srcs = ["main.c"],
33 deps = ["//seobeo:seobeo_tcp_server_ws"], 40 deps = [
41 "//seobeo:seobeo_tcp_server_ws",
42 "//markdown_converter:markdown_to_html_c",
43 ],
34 data = [":src_files"], 44 data = [":src_files"],
35 visibility = ["//mrjunejune/test:__pkg__"], 45 visibility = ["//mrjunejune/test:__pkg__"],
36 ) 46 )
37 47
38 # Debug build with verbose logging 48 # Debug build with verbose logging
39 cc_binary( 49 cc_binary(
40 name = "mrjunejune_server_debug", 50 name = "mrjunejune_server_debug",
41 srcs = ["main.c"], 51 srcs = ["main.c"],
42 deps = ["//seobeo:seobeo_tcp_server_ws_debug"], 52 deps = [
53 "//seobeo:seobeo_tcp_server_ws_debug",
54 "//markdown_converter:markdown_to_html_c"
55 ],
43 data = [":src_files"], 56 data = [":src_files"],
44 ) 57 )
45 58
46 # Release bundle 59 # Release bundle
47 bundle( 60 bundle(