comparison dowa/BUILD @ 71:75de5903355c

Giagantic changes that update Dowa library to be more align with stb style array and hashmap. Updated Seobeo to be caching on server side instead of file level caching. Deleted bunch of things I don't really use.
author June Park <parkjune1995@gmail.com>
date Sun, 28 Dec 2025 20:34:22 -0800
parents 551d9fc0a2ba
children 35b1abc37969
comparison
equal deleted inserted replaced
70:4bc56e88e1f3 71:75de5903355c
1 load("@rules_cc//cc:cc_library.bzl", "cc_library") 1 load("@rules_cc//cc:cc_library.bzl", "cc_library")
2 load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
2 load("@rules_cc//cc:cc_test.bzl", "cc_test") 3 load("@rules_cc//cc:cc_test.bzl", "cc_test")
4
5 cc_library(
6 name = "stb_ds",
7 hdrs = ["stb_ds.h"],
8 visibility = ["//visibility:public"],
9 )
3 10
4 # TODO: Fix so that we can just define in the header instead of defining in the cc_library because this is ass. 11 # TODO: Fix so that we can just define in the header instead of defining in the cc_library because this is ass.
5 cc_library( 12 cc_library(
6 name = "dowa_generic", 13 name = "dowa_generic",
7 srcs = [ 14 srcs = [
8 "d_string.c", 15 "d_string.c",
9 "d_memory.c", 16 "d_memory.c",
10 ], 17 ],
11 hdrs = [ 18 hdrs = [
12 "dowa.h", 19 "dowa.h",
13 "dowa_internal.h" 20 "dowa_internal.h",
21 "stb_ds.h"
14 ], 22 ],
15 visibility = ["//visibility:public"], 23 visibility = ["//visibility:public"],
16 ) 24 )
17 25
18 cc_library( 26 cc_library(
21 "d_string.c", 29 "d_string.c",
22 "d_memory.c", 30 "d_memory.c",
23 ], 31 ],
24 hdrs = [ 32 hdrs = [
25 "dowa.h", 33 "dowa.h",
26 "dowa_internal.h" 34 "dowa_internal.h",
27 ], 35 ],
28 copts = ["-DDIRECTORY"], 36 copts = ["-DDIRECTORY"],
29 visibility = ["//visibility:public"], 37 visibility = ["//visibility:public"],
30 ) 38 )
31 39
35 deps = [":dowa"], 43 deps = [":dowa"],
36 args = [], 44 args = [],
37 data = glob([ 45 data = glob([
38 "test_folder/**", 46 "test_folder/**",
39 ]), 47 ]),
40 copts = ["-fsanitize=address", "-g"], 48 # TODO: Fix this lmao?
41 linkopts = ["-fsanitize=address"], 49 # copts = ["-fsanitize=address", "-g"],
50 # linkopts = ["-fsanitize=address"],
42 ) 51 )