From 4136cd4790447d3db417d20d4df9526fadcbf958 Mon Sep 17 00:00:00 2001 From: Debaditya Sen Date: Wed, 24 Jul 2024 12:32:47 +0530 Subject: [PATCH] Create BUILD --- BUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 BUILD diff --git a/BUILD b/BUILD new file mode 100644 index 0000000..35ff68f --- /dev/null +++ b/BUILD @@ -0,0 +1,55 @@ +cc_library( + name = "base64", + srcs = ["base64.cpp"], + hdrs = ["base64.h"], + copts = [ + "-Werror", + "-Wall", + "-Wextra", + "-pedantic", + "-Wcast-align", + "-Wcast-qual", + "-Wctor-dtor-privacy", + "-Wdisabled-optimization", + "-Wformat=2", + "-Winit-self", + "-Wlogical-op", + "-Wmissing-include-dirs", + "-Wmissing-declarations", + "-Wnoexcept", + "-Wold-style-cast", + "-Woverloaded-virtual", + "-Wredundant-decls", + "-Wshadow", + "-Wsign-promo", + "-Wstrict-null-sentinel", + "-Wstrict-overflow=5", + "-Wundef", + "-Wno-unused", + "-Wno-variadic-macros", + "-Wno-parentheses", + "-fdiagnostics-show-option", + ], +) + +cc_test( + name = "base64_test_11", + srcs = ["test.cpp"], + deps = [":base64"], + copts = ["-std=c++11"], +) + +cc_test( + name = "base64_test_17", + srcs = ["test.cpp"], + deps = [":base64"], + copts = ["-std=c++17"], +) + +test_suite( + name = "all_tests", + tests = [ + ":base64_test_11", + ":base64_test_17", + ], +)