diff --git a/BUILD b/BUILD index 74ac416..02ed995 100644 --- a/BUILD +++ b/BUILD @@ -1,3 +1,32 @@ +######################################################################################################################## +# # +# @file BUILD # +# # +# @brief Defines build rules including tests for the top level utilities. # +# @copyright Copyright (C) 2023 by Tom Hicks # +# # +# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # +# documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to # +# permit persons to whom the Software is furnished to do so, subject to the following conditions: # +# # +# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the # +# Software. # +# # +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE # +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS # +# OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # +# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # +# # +######################################################################################################################## load("@rules_cc//cc:defs.bzl", "cc_library") cc_library( diff --git a/WORKSPACE b/WORKSPACE index 934f020..5c93534 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,3 +1,33 @@ +######################################################################################################################## +# # +# @file WORKSPACE # +# # +# @brief Defines external modules available to all BUILD files in this workspace. This also marks the root folder of # +# the workspace # +# @copyright Copyright (C) 2023 by Tom Hicks # +# # +# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # +# documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to # +# permit persons to whom the Software is furnished to do so, subject to the following conditions: # +# # +# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the # +# Software. # +# # +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE # +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS # +# OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # +# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # +# # +######################################################################################################################## load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # Hedron's Compile Commands Extractor for Bazel @@ -33,3 +63,9 @@ http_archive( sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728", urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz"], ) + +http_archive( + name = "cpputils", + strip_prefix = "cpp-utils-52de4b8bc2f6d8118dba94ade47f70522ba87b56", + urls = ["https://github.com/headhunter45/TinyTest/archive/460c9492d927689b9db7f28d8742705dc0bbee62.zip"], +)