diff seobeo/BUILD @ 132:7a63e41a21fb

[Seobeo] Added debug targets.
author June Park <parkjune1995@gmail.com>
date Fri, 09 Jan 2026 08:23:54 -0800
parents 9af248484ba2
children 7387eec8e7f8
line wrap: on
line diff
--- a/seobeo/BUILD	Fri Jan 09 07:42:04 2026 -0800
+++ b/seobeo/BUILD	Fri Jan 09 08:23:54 2026 -0800
@@ -341,7 +341,7 @@
   visibility = ["//visibility:public"],
 )
 
-# Names I often use 
+# Names I often use
 alias(
   name = "seobeo_server",
   actual = ":seobeo_tcp_server",
@@ -353,6 +353,130 @@
   actual = ":seobeo",
   visibility = ["//visibility:public"],
 )
+
+# ============================================================================
+# Debug Builds (with SEOBEO_ENABLE_DEBUG defined)
+# ============================================================================
+
+# TCP Server with HTTP + WebSocket (DEBUG)
+alias(
+  name = "seobeo_tcp_server_ws_debug",
+  actual = select({
+    "//config:macos":  ":seobeo_tcp_server_ws_debug_macos",
+    "//config:linux":  ":seobeo_tcp_server_ws_debug_linux",
+    "//conditions:default": ":seobeo_tcp_server_ws_debug_linux",
+  }),
+  visibility = ["//visibility:public"],
+)
+
+cc_library(
+  name = "seobeo_tcp_server_ws_debug_macos",
+  srcs = [
+    "s_network.c",
+    "s_web.c",
+    "s_logging.c",
+    "s_ssl.c",
+    "s_websocket_common.c",
+    "s_websocket_server.c",
+    "os/s_macos_edge.c",
+  ],
+  hdrs = [":seobeo_hdrs"],
+  deps = [
+    "//dowa:dowa",
+    "@openssl//:ssl",
+  ],
+  defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"],
+  target_compatible_with = [
+    "@platforms//os:osx",
+  ],
+  visibility = ["//visibility:public"],
+)
+
+cc_library(
+  name = "seobeo_tcp_server_ws_debug_linux",
+  srcs = [
+    "s_network.c",
+    "s_web.c",
+    "s_logging.c",
+    "s_ssl.c",
+    "s_websocket_common.c",
+    "s_websocket_server.c",
+    "os/s_linux_edge.c",
+  ],
+  hdrs = [":seobeo_hdrs"],
+  deps = [
+    "//dowa:dowa",
+    "@openssl//:ssl",
+  ],
+  defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"],
+  target_compatible_with = [
+    "@platforms//os:linux",
+  ],
+  visibility = ["//visibility:public"],
+)
+
+# All combined (DEBUG)
+alias(
+  name = "seobeo_debug",
+  actual = select({
+    "//config:macos":  ":seobeo_debug_macos",
+    "//config:linux":  ":seobeo_debug_linux",
+    "//conditions:default": ":seobeo_debug_linux",
+  }),
+  visibility = ["//visibility:public"],
+)
+
+cc_library(
+  name = "seobeo_debug_macos",
+  srcs = [
+    "s_network.c",
+    "s_web.c",
+    "s_logging.c",
+    "s_ssl.c",
+    "s_http_client.c",
+    "s_websocket_common.c",
+    "s_websocket.c",
+    "s_websocket_server.c",
+    "snapshot_creator.c",
+    "os/s_macos_edge.c",
+  ],
+  hdrs = [":seobeo_hdrs"],
+  deps = [
+    "//dowa:dowa",
+    "@openssl//:ssl",
+  ],
+  defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"],
+  target_compatible_with = [
+    "@platforms//os:osx",
+  ],
+  visibility = ["//visibility:public"],
+)
+
+cc_library(
+  name = "seobeo_debug_linux",
+  srcs = [
+    "s_network.c",
+    "s_web.c",
+    "s_logging.c",
+    "s_ssl.c",
+    "s_http_client.c",
+    "s_websocket_common.c",
+    "s_websocket.c",
+    "s_websocket_server.c",
+    "snapshot_creator.c",
+    "os/s_linux_edge.c",
+  ],
+  hdrs = [":seobeo_hdrs"],
+  deps = [
+    "//dowa:dowa",
+    "@openssl//:ssl",
+  ],
+  defines = ["SEOBEO_WEBSOCKET_SERVER", "SEOBEO_ENABLE_DEBUG"],
+  target_compatible_with = [
+    "@platforms//os:linux",
+  ],
+  visibility = ["//visibility:public"],
+)
 # ============================================================================
 # Testing Utilities
 # ============================================================================