Mercurial
diff seobeo/BUILD @ 121:7b1719fa918c
[Seobeo] Added web socket server.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 08 Jan 2026 06:45:10 -0800 |
| parents | cbbf78b17cfa |
| children | dbf14f84d51c |
line wrap: on
line diff
--- a/seobeo/BUILD Thu Jan 08 03:19:59 2026 -0800 +++ b/seobeo/BUILD Thu Jan 08 06:45:10 2026 -0800 @@ -2,7 +2,6 @@ load("@rules_cc//cc:cc_library.bzl", "cc_library") load("@rules_cc//cc:cc_test.bzl", "cc_test") - filegroup( name = "seobeo_hdrs", srcs = [ @@ -128,6 +127,7 @@ "s_ssl.c", "s_http_client.c", "s_websocket.c", + "s_websocket_server.c", "snapshot_creator.c", "os/s_macos_edge.c", ], @@ -150,6 +150,7 @@ "s_ssl.c", "s_http_client.c", "s_websocket.c", + "s_websocket_server.c", "snapshot_creator.c", "os/s_linux_edge.c", ], @@ -171,16 +172,15 @@ visibility = ["//visibility:public"], ) -# Tests -cc_test( - name = "seobeo_http_client_test", - srcs = ["seobeo_http_client_test.c"], +# Examples +cc_binary( + name = "websocket_server_example", + srcs = ["examples/websocket_server_example.c"], deps = [":seobeo_client"], - size = "small", - timeout = "short", + visibility = ["//visibility:public"], ) -# Examples +# Tests cc_test( name = "seobeo_client_test", srcs = ["tests/seobeo_client_test.c"], @@ -197,3 +197,14 @@ visibility = ["//visibility:public"], ) +cc_test( + name = "seobeo_websocket_server_test", + srcs = ["tests/seobeo_web_server_test.c"], + deps = [":seobeo_client"], + data = [ + ":websocket_server_example", + ], + size = "large", + timeout = "long", + args = ["$(location //seobeo:websocket_server_example)"], +)