comparison mrjunejune/BUILD @ 219:8c9bb0b0759e hg-web

[hg-web] Merge current Zenbu baseline
author MrJuneJune <me@mrjunejune.com>
date Sun, 02 Aug 2026 08:34:54 -0700
parents e5aed6c36672
children 1de6f553cbc0
comparison
equal deleted inserted replaced
218:921ca3086879 219:8c9bb0b0759e
26 "//third_party/highlight:js", 26 "//third_party/highlight:js",
27 ], 27 ],
28 dest = "src/public/highlight", 28 dest = "src/public/highlight",
29 ) 29 )
30 30
31 move_files_into_dir(
32 name = "rich_editor_js",
33 srcs = [
34 "//rich_editor:rich_editor",
35 ],
36 dest = "src/public/js",
37 )
38
39 move_files_into_dir(
40 name = "icons",
41 srcs = [
42 "//assets:icons",
43 ],
44 dest = "src/public/icons",
45 )
46
31 filegroup( 47 filegroup(
32 name = "public_files", 48 name = "public_files",
33 srcs = glob(["src/public/*"]), 49 srcs = glob(["src/public/*"]),
34 visibility = ["//visibility:public"], 50 visibility = ["//visibility:public"],
35 ) 51 )
40 visibility = ["//visibility:public"], 56 visibility = ["//visibility:public"],
41 ) 57 )
42 58
43 filegroup( 59 filegroup(
44 name = "src_files", 60 name = "src_files",
45 srcs = glob(["src/**"]) + [":react_pages", ":shared_js_non_public", "shared_js_file"], 61 srcs = glob(["src/**"]) + [":react_pages", ":shared_js_non_public", ":shared_js_file", ":rich_editor_js", ":icons"],
46 visibility = ["//mrjunejune/test:__pkg__"], 62 visibility = ["//mrjunejune/test:__pkg__"],
47 ) 63 )
48 64
49 # Server binary 65 # Server binary
50 cc_binary( 66 cc_binary(
51 name = "mrjunejune_server", 67 name = "mrjunejune_server",
52 srcs = ["main.c"], 68 srcs = ["main.c"],
53 deps = [ 69 deps = [
54 "//seobeo:seobeo_tcp_server_ws", 70 "//seobeo:seobeo",
55 "//markdown_converter:markdown_to_html_c", 71 "//markdown_converter:markdown_to_html_c",
72 "//s3:s3",
73 "//deita:deita",
56 ], 74 ],
57 data = [":src_files"], 75 copts = ["-D_GNU_SOURCE"],
76 linkopts = ["-lpthread"],
77 data = [
78 ":src_files",
79 ":config_file",
80 "//:env_file",
81 ],
58 visibility = ["//mrjunejune/test:__pkg__"], 82 visibility = ["//mrjunejune/test:__pkg__"],
59 ) 83 )
60 84
61 # Debug build with verbose logging 85 # Debug build with verbose logging
62 cc_binary( 86 cc_binary(
63 name = "mrjunejune_server_debug", 87 name = "mrjunejune_server_debug",
64 srcs = ["main.c"], 88 srcs = ["main.c"],
65 deps = [ 89 deps = [
66 "//seobeo:seobeo_tcp_server_ws_debug", 90 "//seobeo:seobeo_debug",
67 "//markdown_converter:markdown_to_html_c" 91 "//markdown_converter:markdown_to_html_c",
92 "//s3:s3",
93 "//deita:deita",
68 ], 94 ],
69 data = [":src_files"], 95 copts = ["-D_GNU_SOURCE"],
96 linkopts = ["-lpthread"],
97 data = [
98 ":src_files",
99 ":config_file",
100 "//:env_file",
101 ],
102 )
103
104 filegroup(
105 name = "config_file",
106 srcs = [".config"],
107 visibility = ["//visibility:public"],
108 )
109
110 filegroup(
111 name = "data_dir",
112 srcs = glob(["data/*"]),
113 visibility = ["//visibility:public"],
70 ) 114 )
71 115
72 # Run this to create html files 116 # Run this to create html files
73 cc_binary( 117 cc_binary(
74 name = "create_html_from_md", 118 name = "create_html_from_md",