view seobeo/BUILD @ 22:947b81010aba

[Dowa & Seobeo] Updated so that Dowa hashmaps can use arena and not be broken. Split up web so taht it can handle different paths. Also fixes issues with hash collisions which was pain in the ass.
author June Park <parkjune1995@gmail.com>
date Tue, 07 Oct 2025 07:11:02 -0700
parents fa2b8af609d9
children 2852b2e2363f
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_headers"],
  deps = [
    "//dowa:dowa",
    "@openssl//:ssl",
  ],
  target_compatible_with = [
    "@platforms//os:linux",
  ],
  visibility = ["//visibility:public"],
)