Mercurial
diff mrjunejune/BUILD @ 264:04fee26ecce0
add authenticated JRPG conversation platform
Add reusable auth/session storage, owned conversation recovery, guest quotas, admin workflows, URL-routed conversation UI, mobile frame support, and parallel browser acceptance.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 07 Aug 2026 07:34:12 -0700 |
| parents | b401627fc49e |
| children | 056790c4fb0d |
line wrap: on
line diff
--- a/mrjunejune/BUILD Thu Aug 06 11:31:30 2026 -0700 +++ b/mrjunejune/BUILD Fri Aug 07 07:34:12 2026 -0700 @@ -172,6 +172,12 @@ ) filegroup( + name = "html_src_files", + srcs = glob(["src/**/*.html"]), + visibility = ["//mrjunejune/test:__pkg__"], +) + +filegroup( name = "src_files", srcs = glob( ["src/**"], @@ -193,6 +199,20 @@ ) cc_library( + name = "template_renderer", + srcs = ["template_renderer.c"], + hdrs = ["template_renderer.h"], + deps = [ + "//dowa:dowa", + "//seobeo:seobeo", + ], + visibility = [ + "//mrjunejune:__pkg__", + "//mrjunejune/test:__pkg__", + ], +) + +cc_library( name = "latex_renderer", srcs = ["latex_renderer.c"], hdrs = ["latex_renderer.h"], @@ -222,11 +242,85 @@ srcs = ["conversation_api.c"], hdrs = ["conversation_api.h"], deps = [ + ":auth_api", ":conversation_store", ":inference_bridge", + "//auth:auth_store", "//dowa:dowa", "//seobeo:seobeo", ], + linkopts = ["-lpthread"], +) + +cc_library( + name = "admin_api", + srcs = ["admin_api.c"], + hdrs = ["admin_api.h"], + deps = [ + ":auth_api", + ":template_renderer", + "//auth:auth_crypto", + "//auth:auth_store", + "//dowa:dowa", + "//seobeo:seobeo", + "@openssl//:crypto", + ], + visibility = ["//mrjunejune/test:__pkg__"], +) + +# Same sources compiled with test-hook symbols exposed. +cc_library( + name = "admin_api_with_test_hooks", + srcs = ["admin_api.c"], + hdrs = ["admin_api.h"], + copts = ["-DADMIN_API_TEST_HOOKS"], + deps = [ + ":auth_api_with_test_hooks", + ":template_renderer", + "//auth:auth_crypto", + "//auth:auth_store", + "//dowa:dowa", + "//seobeo:seobeo", + "@openssl//:crypto", + ], + linkopts = ["-lpthread"], + testonly = True, + visibility = ["//mrjunejune/test:__pkg__"], +) + +cc_library( + name = "auth_api", + srcs = ["auth_api.c"], + hdrs = ["auth_api.h"], + deps = [ + ":template_renderer", + "//auth:auth_crypto", + "//auth:auth_store", + "//dowa:dowa", + "//seobeo:seobeo", + "@openssl//:crypto", + ], + linkopts = ["-lpthread"], + visibility = ["//mrjunejune/test:__pkg__"], +) + +# Same sources, compiled with test-hook symbols exposed. +cc_library( + name = "auth_api_with_test_hooks", + srcs = ["auth_api.c"], + hdrs = ["auth_api.h"], + copts = ["-DAUTH_API_TEST_HOOKS"], + deps = [ + ":template_renderer", + "//auth:auth_crypto", + "//auth:auth_store", + "//dowa:dowa", + "//seobeo:seobeo", + "@openssl//:crypto", + ], + linkopts = ["-lpthread"], + testonly = True, + visibility = ["//mrjunejune/test:__pkg__"], ) cc_library( @@ -265,21 +359,23 @@ name = "mrjunejune_server", srcs = ["main.c"], deps = [ + ":admin_api", + ":auth_api", ":conversation_api", + ":template_renderer", "//seobeo:seobeo", "//markdown_converter:markdown_to_html_c", "//s3:s3", "//deita:deita", ":latex_renderer", + "//auth:auth_crypto", ], copts = ["-D_GNU_SOURCE"], linkopts = ["-lpthread"], data = [ ":src_files", - ":config_file", ":inference_runtime_data", ":tectonic_runtime_data", - "//:env_file", ], visibility = ["//mrjunejune/test:__pkg__"], ) @@ -289,15 +385,20 @@ name = "mrjunejune_server_debug", srcs = ["main.c"], deps = [ + ":admin_api", + ":auth_api", ":conversation_api", + ":template_renderer", "//seobeo:seobeo_debug", "//markdown_converter:markdown_to_html_c", "//s3:s3", "//deita:deita", ":latex_renderer", + "//auth:auth_crypto", ], copts = [ "-D_GNU_SOURCE", + "-DMRJUNEJUNE_DEVELOPMENT_CONFIG", ], linkopts = ["-lpthread"], data = [