Mercurial
comparison seobeo/BUILD @ 250:745fd127b2a1
[seobeo] Add bounded worker interface
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 04 Aug 2026 06:23:37 -0700 |
| parents | 71ad34a8bc9a |
| children | 609d3c6aff4e |
comparison
equal
deleted
inserted
replaced
| 249:c5129452493e | 250:745fd127b2a1 |
|---|---|
| 4 filegroup( | 4 filegroup( |
| 5 name = "seobeo_hdrs", | 5 name = "seobeo_hdrs", |
| 6 srcs = [ | 6 srcs = [ |
| 7 "seobeo.h", | 7 "seobeo.h", |
| 8 "seobeo_internal.h", | 8 "seobeo_internal.h", |
| 9 "seobeo_worker.h", | |
| 9 "snapshot_creator.h", | 10 "snapshot_creator.h", |
| 10 ], | 11 ], |
| 12 visibility = ["//visibility:public"], | |
| 13 ) | |
| 14 | |
| 15 cc_library( | |
| 16 name = "seobeo_worker", | |
| 17 srcs = ["s_worker.c"], | |
| 18 hdrs = ["seobeo_worker.h"], | |
| 19 deps = ["//dowa:dowa"], | |
| 20 linkopts = ["-lpthread"], | |
| 11 visibility = ["//visibility:public"], | 21 visibility = ["//visibility:public"], |
| 12 ) | 22 ) |
| 13 | 23 |
| 14 # Minimal TCP/SSL handling only (no HTTP, no WebSocket) | 24 # Minimal TCP/SSL handling only (no HTTP, no WebSocket) |
| 15 alias( | 25 alias( |
| 303 "snapshot_creator.c", | 313 "snapshot_creator.c", |
| 304 "os/s_macos_edge.c", | 314 "os/s_macos_edge.c", |
| 305 ], | 315 ], |
| 306 hdrs = [":seobeo_hdrs"], | 316 hdrs = [":seobeo_hdrs"], |
| 307 deps = [ | 317 deps = [ |
| 318 ":seobeo_worker", | |
| 308 "//dowa:dowa", | 319 "//dowa:dowa", |
| 309 "@openssl//:ssl", | 320 "@openssl//:ssl", |
| 310 ], | 321 ], |
| 311 defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"], | 322 defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"], |
| 312 target_compatible_with = [ | 323 target_compatible_with = [ |
| 329 "snapshot_creator.c", | 340 "snapshot_creator.c", |
| 330 "os/s_linux_edge.c", | 341 "os/s_linux_edge.c", |
| 331 ], | 342 ], |
| 332 hdrs = [":seobeo_hdrs"], | 343 hdrs = [":seobeo_hdrs"], |
| 333 deps = [ | 344 deps = [ |
| 345 ":seobeo_worker", | |
| 334 "//dowa:dowa", | 346 "//dowa:dowa", |
| 335 "@openssl//:ssl", | 347 "@openssl//:ssl", |
| 336 ], | 348 ], |
| 337 defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"], | 349 defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"], |
| 338 target_compatible_with = [ | 350 target_compatible_with = [ |
| 440 "snapshot_creator.c", | 452 "snapshot_creator.c", |
| 441 "os/s_macos_edge.c", | 453 "os/s_macos_edge.c", |
| 442 ], | 454 ], |
| 443 hdrs = [":seobeo_hdrs"], | 455 hdrs = [":seobeo_hdrs"], |
| 444 deps = [ | 456 deps = [ |
| 457 ":seobeo_worker", | |
| 445 "//dowa:dowa", | 458 "//dowa:dowa", |
| 446 "@openssl//:ssl", | 459 "@openssl//:ssl", |
| 447 ], | 460 ], |
| 448 defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"], | 461 defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"], |
| 449 target_compatible_with = [ | 462 target_compatible_with = [ |
| 466 "snapshot_creator.c", | 479 "snapshot_creator.c", |
| 467 "os/s_linux_edge.c", | 480 "os/s_linux_edge.c", |
| 468 ], | 481 ], |
| 469 hdrs = [":seobeo_hdrs"], | 482 hdrs = [":seobeo_hdrs"], |
| 470 deps = [ | 483 deps = [ |
| 484 ":seobeo_worker", | |
| 471 "//dowa:dowa", | 485 "//dowa:dowa", |
| 472 "@openssl//:ssl", | 486 "@openssl//:ssl", |
| 473 ], | 487 ], |
| 474 defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"], | 488 defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"], |
| 475 target_compatible_with = [ | 489 target_compatible_with = [ |