diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-02-17 00:21:48 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-02-17 22:29:50 +0100 |
commit | a141c401f78467bc15f62882fca5d55a007cacbb (patch) | |
tree | 908ac71a8640f78f45d22c6808c5fa6e373000fa /asl/types/BUILD.bazel | |
parent | cb77cbe9ce4cddad6a460aa190ff70f0c13e4703 (diff) |
Reorganize everything
Diffstat (limited to 'asl/types/BUILD.bazel')
-rw-r--r-- | asl/types/BUILD.bazel | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/asl/types/BUILD.bazel b/asl/types/BUILD.bazel new file mode 100644 index 0000000..d39586b --- /dev/null +++ b/asl/types/BUILD.bazel @@ -0,0 +1,135 @@ +cc_library( + name = "box", + hdrs = [ + "box.hpp", + ], + deps = [ + "//asl/base", + "//asl/memory", + "//asl/hashing", + ], + visibility = ["//visibility:public"], +) + +cc_library( + name = "span", + hdrs = [ + "span.hpp", + ], + deps = [ + "//asl/base", + "//asl/memory", + ], + visibility = ["//visibility:public"], +) + +cc_library( + name = "maybe_uninit", + hdrs = [ + "maybe_uninit.hpp", + ], + deps = [ + "//asl/base", + "//asl/memory", + ], + visibility = ["//visibility:public"], +) + +cc_library( + name = "option", + hdrs = [ + "option.hpp", + ], + deps = [ + "//asl/base", + "//asl/types:maybe_uninit", + "//asl/hashing", + ], + visibility = ["//visibility:public"], +) + +cc_library( + name = "status", + hdrs = [ + "status.hpp", + "status_or.hpp", + ], + srcs = [ + "status.cpp", + ], + deps = [ + "//asl/base", + "//asl/strings:string", + "//asl/strings:string_builder", + "//asl/formatting", + "//asl/memory", + "//asl/synchronization:atomic", + "//asl/types:maybe_uninit", + "//asl/hashing", + ], + visibility = ["//visibility:public"], +) + +cc_test( + name = "box_tests", + srcs = ["box_tests.cpp"], + deps = [ + "//asl/tests:utils", + "//asl/testing", + "//asl/types:box", + "//asl/types:option", + "//asl/types:maybe_uninit", + "//asl/hashing", + ], +) + +cc_test( + name = "maybe_uninit_tests", + srcs = ["maybe_uninit_tests.cpp"], + deps = [ + "//asl/tests:utils", + "//asl/testing", + "//asl/types:maybe_uninit", + ], +) + +cc_test( + name = "span_tests", + srcs = ["span_tests.cpp"], + deps = [ + "//asl/tests:utils", + "//asl/testing", + "//asl/types:span", + ], +) + +cc_test( + name = "option_tests", + srcs = ["option_tests.cpp"], + deps = [ + "//asl/tests:utils", + "//asl/testing", + "//asl/types:option", + ], +) + +cc_test( + name = "status_tests", + srcs = ["status_tests.cpp"], + deps = [ + "//asl/tests:utils", + "//asl/testing", + "//asl/types:status", + ], +) + +cc_test( + name = "status_or_tests", + srcs = ["status_or_tests.cpp"], + deps = [ + "//asl/tests:utils", + "//asl/testing", + "//asl/types:status", + ], +) + |