Mercurial
comparison seobeo/BUILD @ 126:e7899c93da77
Remove playground.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 08 Jan 2026 18:03:34 -0800 |
| parents | f236c895604e |
| children | 9af248484ba2 |
comparison
equal
deleted
inserted
replaced
| 125:f236c895604e | 126:e7899c93da77 |
|---|---|
| 1 load("@rules_cc//cc:cc_library.bzl", "cc_library") | 1 load("@rules_cc//cc:cc_library.bzl", "cc_library") |
| 2 | 2 |
| 3 # File group | 3 # File group |
| 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 "snapshot_creator.h", | 9 "snapshot_creator.h", |
| 10 "s_test_generator.h", | |
| 10 ], | 11 ], |
| 11 visibility = ["//visibility:public"], | 12 visibility = ["//visibility:public"], |
| 12 ) | 13 ) |
| 13 | 14 |
| 14 # Minimal TCP/SSL handling only (no HTTP, no WebSocket) | 15 # Minimal TCP/SSL handling only (no HTTP, no WebSocket) |
| 351 alias( | 352 alias( |
| 352 name = "seobeo_client", | 353 name = "seobeo_client", |
| 353 actual = ":seobeo", | 354 actual = ":seobeo", |
| 354 visibility = ["//visibility:public"], | 355 visibility = ["//visibility:public"], |
| 355 ) | 356 ) |
| 357 # ============================================================================ | |
| 358 # Testing Utilities | |
| 359 # ============================================================================ | |
| 360 | |
| 361 # Testing library with snapshot and test generation tools | |
| 362 alias( | |
| 363 name = "seobeo_test", | |
| 364 actual = select({ | |
| 365 "//config:macos": ":seobeo_test_macos", | |
| 366 "//config:linux": ":seobeo_test_linux", | |
| 367 "//conditions:default": ":seobeo_test_linux", | |
| 368 }), | |
| 369 visibility = ["//visibility:public"], | |
| 370 ) | |
| 371 | |
| 372 cc_library( | |
| 373 name = "seobeo_test_macos", | |
| 374 srcs = [ | |
| 375 "snapshot_creator.c", | |
| 376 "s_test_generator.c", | |
| 377 ], | |
| 378 hdrs = [ | |
| 379 "snapshot_creator.h", | |
| 380 "s_test_generator.h", | |
| 381 ], | |
| 382 deps = [ | |
| 383 ":seobeo_tcp_client_macos", | |
| 384 ], | |
| 385 target_compatible_with = [ | |
| 386 "@platforms//os:osx", | |
| 387 ], | |
| 388 visibility = ["//visibility:public"], | |
| 389 ) | |
| 390 | |
| 391 cc_library( | |
| 392 name = "seobeo_test_linux", | |
| 393 srcs = [ | |
| 394 "snapshot_creator.c", | |
| 395 "s_test_generator.c", | |
| 396 ], | |
| 397 hdrs = [ | |
| 398 "snapshot_creator.h", | |
| 399 "s_test_generator.h", | |
| 400 ], | |
| 401 deps = [ | |
| 402 ":seobeo_tcp_client_linux", | |
| 403 ], | |
| 404 target_compatible_with = [ | |
| 405 "@platforms//os:linux", | |
| 406 ], | |
| 407 visibility = ["//visibility:public"], | |
| 408 ) | |
| 409 | |
| 410 # Test generator tool - generates test files from route definitions | |
| 411 cc_binary( | |
| 412 name = "test_generator", | |
| 413 srcs = ["tools/test_generator_main.c"], | |
| 414 deps = [":seobeo_test"], | |
| 415 visibility = ["//visibility:public"], | |
| 416 ) |