Mercurial
view seobeo/BUILD @ 33:c0f6c8c7829f
[Seobeo] Linux epoll. Set the client socket to be nonblocking so that it doesn't stop loading when two different threads handle different client calls. I might have problem with socket not being cleaned up properly so need to check that.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 10 Oct 2025 06:59:32 -0700 |
| parents | 08a465eec50b |
| children | 6626ec933933 |
line wrap: on
line source
load("@rules_cc//cc:cc_binary.bzl", "cc_binary") load("@rules_cc//cc:cc_library.bzl", "cc_library") filegroup( name = "seobeo_hdrs", srcs = [ "seobeo.h", "seobeo_internal.h", ], visibility = ["//visibility:public"], ) alias( name = "seobeo", actual = select({ "//config:macos": ":seobeo_macos", "//config:linux": ":seobeo_linux", "//conditions:default": ":seobeo_linux", }), visibility = ["//visibility:public"], ) cc_library( name = "seobeo_macos", srcs = [ "s_linux_network.c", "s_web.c", "os/s_macos_edge.c", ], hdrs = [":seobeo_hdrs"], deps = [ "//dowa:dowa", "@openssl//:ssl", ], target_compatible_with = [ "@platforms//os:osx", ], visibility = ["//visibility:public"], ) cc_library( name = "seobeo_linux", srcs = [ "s_linux_network.c", "s_web.c", "os/s_linux_edge.c", ], hdrs = [":seobeo_hdrs"], deps = [ "//dowa:dowa", "@openssl//:ssl", ], target_compatible_with = [ "@platforms//os:linux", ], visibility = ["//visibility:public"], )