diff seobeo/BUILD @ 96:70401cf61e97

[Seobeo] Added logging.
author June Park <parkjune1995@gmail.com>
date Fri, 02 Jan 2026 19:16:17 -0800
parents 4532ce6d9eb8
children c39582f937e5
line wrap: on
line diff
--- a/seobeo/BUILD	Fri Jan 02 19:11:35 2026 -0800
+++ b/seobeo/BUILD	Fri Jan 02 19:16:17 2026 -0800
@@ -13,7 +13,7 @@
   visibility = ["//visibility:public"],
 )
 
-# Server-only target (no SSL, no OpenSSL dependency)
+# Server-only target (no SSL, no OpenSSL dependency) - Production
 alias(
   name = "seobeo_server",
   actual = select({
@@ -24,13 +24,23 @@
   visibility = ["//visibility:public"],
 )
 
+# Server-only target (no SSL, no OpenSSL dependency) - Development with Debug Logs
+alias(
+  name = "seobeo_server_dev",
+  actual = select({
+    "//config:macos":  ":seobeo_server_macos_dev",
+    "//config:linux":  ":seobeo_server_linux_dev",
+    "//conditions:default": ":seobeo_server_linux_dev",
+  }),
+  visibility = ["//visibility:public"],
+)
+
 cc_library(
   name = "seobeo_server_macos",
   srcs = [
     "s_linux_network.c",
     "s_web.c",
     "s_ssl.c",
-    "s_router.c",
     "os/s_macos_edge.c",
   ],
   hdrs = [":seobeo_hdrs"],
@@ -45,12 +55,30 @@
 )
 
 cc_library(
+  name = "seobeo_server_macos_dev",
+  srcs = [
+    "s_linux_network.c",
+    "s_web.c",
+    "s_ssl.c",
+    "os/s_macos_edge.c",
+  ],
+  hdrs = [":seobeo_hdrs"],
+  deps = [
+    "//dowa:dowa",
+  ],
+  defines = ["SEOBEO_NO_SSL", "SEOBEO_ENABLE_DEBUG"],
+  target_compatible_with = [
+    "@platforms//os:osx",
+  ],
+  visibility = ["//visibility:public"],
+)
+
+cc_library(
   name = "seobeo_server_linux",
   srcs = [
     "s_linux_network.c",
     "s_web.c",
     "s_ssl.c",
-    "s_router.c",
     "os/s_linux_edge.c",
   ],
   hdrs = [":seobeo_hdrs"],
@@ -64,6 +92,25 @@
   visibility = ["//visibility:public"],
 )
 
+cc_library(
+  name = "seobeo_server_linux_dev",
+  srcs = [
+    "s_linux_network.c",
+    "s_web.c",
+    "s_ssl.c",
+    "os/s_linux_edge.c",
+  ],
+  hdrs = [":seobeo_hdrs"],
+  deps = [
+    "//dowa:dowa",
+  ],
+  defines = ["SEOBEO_NO_SSL", "SEOBEO_ENABLE_DEBUG"],
+  target_compatible_with = [
+    "@platforms//os:linux",
+  ],
+  visibility = ["//visibility:public"],
+)
+
 # Client target with SSL support (full functionality)
 alias(
   name = "seobeo_client",
@@ -81,7 +128,6 @@
     "s_linux_network.c",
     "s_web.c",
     "s_ssl.c",
-    "s_router.c",
     "snapshot_creator.c",
     "os/s_macos_edge.c",
   ],
@@ -102,7 +148,6 @@
     "s_linux_network.c",
     "s_web.c",
     "s_ssl.c",
-    "s_router.c",
     "snapshot_creator.c",
     "os/s_linux_edge.c",
   ],