Mercurial
view mrjunejune/BUILD @ 184:8c74204fd362
[MD to HTML] Updated so it can be used through readme to html
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 22:20:35 -0800 |
| parents | 295ac2e5ec00 |
| children | 8cf4ec5e2191 |
line wrap: on
line source
load("@rules_cc//cc:cc_binary.bzl", "cc_binary") load("@rules_cc//cc:cc_library.bzl", "cc_library") load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle") # Files move_files_into_dir( name = "react_pages", srcs = [ "//react_games:games" ], dest = "src/games", ) move_files_into_dir( name = "shared_js_non_public", srcs = [ "//markdown_converter:markdown_to_html", "//markdown_converter:markdown_to_html_wasm", ], 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/**"]) + [":react_pages", ":shared_js_non_public", "shared_js_file"], visibility = ["//mrjunejune/test:__pkg__"], ) # Server binary cc_binary( name = "mrjunejune_server", srcs = ["main.c"], deps = [ "//seobeo:seobeo_tcp_server_ws", "//markdown_converter:markdown_to_html_c", ], data = [":src_files"], visibility = ["//mrjunejune/test:__pkg__"], ) # Debug build with verbose logging cc_binary( name = "mrjunejune_server_debug", srcs = ["main.c"], 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"], ) # Release bundle bundle( name = "mrjunejune_server_bundle", binary = ":mrjunejune_server", ) bundle( name = "mrjunejune_server_debug_bundle", binary = ":mrjunejune_server_debug", )