view dowa/BUILD @ 66:a0f0ad5e42eb

[Misc] taking out capital P stuff.
author June Park <parkjune1995@gmail.com>
date Wed, 24 Dec 2025 06:34:19 -0800
parents a30944e5719e
children 551d9fc0a2ba
line wrap: on
line source

load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_cc//cc:cc_test.bzl", "cc_test")

# TODO: Fix so that we can just define in the header instead of defining in the cc_library because this is ass.
cc_library(
  name = "dowa_generic",
  srcs = [
    "d_string.c",
    "d_memory.c",
  ],
  hdrs = [
    "dowa.h",
    "dowa_internal.h"
  ],
  visibility = ["//visibility:public"],
)

cc_library(
  name = "dowa",
  srcs = [
    "d_string.c",
    "d_memory.c",
  ],
  hdrs = [
    "dowa.h",
    "dowa_internal.h"
  ],
  copts = ["-DDIRECTORY"],
  visibility = ["//visibility:public"],
)

cc_binary(
  name = "dowa_test",
  srcs = ["dowa_test.c"],
  deps = [":dowa"],
  args = [],
  data = glob([
      "test_folder/**",
  ]),
  copts = ["-fsanitize=address", "-g"],
  linkopts = ["-fsanitize=address"],
)