Mercurial
diff mrjunejune/BUILD @ 173:827c6ac504cd hg-web
Merged in default here.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 19 Jan 2026 18:59:10 -0800 |
| parents | 295ac2e5ec00 |
| children | fed99fc04e12 8c74204fd362 |
line wrap: on
line diff
--- a/mrjunejune/BUILD Sat Jan 10 13:35:09 2026 -0800 +++ b/mrjunejune/BUILD Mon Jan 19 18:59:10 2026 -0800 @@ -4,7 +4,7 @@ # Files move_files_into_dir( - name = "compiled_ts_games", + name = "react_pages", srcs = [ "//react_games:games" ], @@ -12,16 +12,24 @@ ) move_files_into_dir( - name = "compiled_ts", + name = "shared_js_non_public", srcs = [ "//markdown_converter:markdown_to_html", ], dest = "src", ) +move_files_into_dir( + name = "shared_js_file", + srcs = [ + "//third_party/highlight:js", + ], + dest = "src/public/highlight", +) + filegroup( name = "src_files", - srcs = glob(["src/**"]) + [":compiled_ts", ":compiled_ts_games"], + srcs = glob(["src/**"]) + [":react_pages", ":shared_js_non_public", "shared_js_file"], visibility = ["//mrjunejune/test:__pkg__"], ) @@ -29,7 +37,10 @@ cc_binary( name = "mrjunejune_server", srcs = ["main.c"], - deps = ["//seobeo:seobeo_tcp_server_ws"], + deps = [ + "//seobeo:seobeo_tcp_server_ws", + "//markdown_converter:markdown_to_html_c", + ], data = [":src_files"], visibility = ["//mrjunejune/test:__pkg__"], ) @@ -38,7 +49,21 @@ cc_binary( name = "mrjunejune_server_debug", srcs = ["main.c"], - deps = ["//seobeo:seobeo_tcp_server_ws_debug"], + deps = [ + "//seobeo:seobeo_tcp_server_ws_debug", + "//markdown_converter:markdown_to_html_c" + ], + data = [":src_files"], +) + +# Run this to create html files +cc_binary( + name = "create_html_from_md", + srcs = ["create_html_from_md.c"], + deps = [ + "//markdown_converter:markdown_to_html_c", + "//dowa:dowa" + ], data = [":src_files"], ) @@ -52,26 +77,3 @@ name = "mrjunejune_server_debug_bundle", binary = ":mrjunejune_server_debug", ) - -# Experimenting with python to see if I can call it as ffi. -# load("@rules_python//python:py_binary.bzl", "py_binary") -# This was to use python ffi, but w/e -# cc_library( -# name = "mrjunejune_server_lib", -# srcs = ["server_entry.c"], -# deps = ["//seobeo:seobeo_server"], -# linkstatic = False, -# visibility = ["//visibility:public"], -# ) - -# py_binary( -# name = "python_server", -# srcs = ["python_server.py"], -# deps = [ -# ":mrjunejune_server_lib", -# "@pip_deps//:cffi", -# ], -# data = [":mrjunejune_server_lib"], -# ) - -