| 1 | //! @file build.hpp |
| 2 | //! @author ryftchen |
| 3 | //! @brief The declarations (build) in the application module. |
| 4 | //! @version 0.1.0 |
| 5 | //! @copyright Copyright (c) 2022-2025 ryftchen. All rights reserved. |
| 6 | |
| 7 | #pragma once |
| 8 | |
| 9 | #ifndef _PRECOMPILED_HEADER |
| 10 | #include <string> |
| 11 | #else |
| 12 | #include "application/pch/precompiled_header.hpp" |
| 13 | #endif // _PRECOMPILED_HEADER |
| 14 | |
| 15 | //! @brief The application module. |
| 16 | namespace application // NOLINT(modernize-concat-nested-namespaces) |
| 17 | { |
| 18 | //! @brief Building-related functions in the application module. |
| 19 | namespace build |
| 20 | { |
| 21 | //! @brief Version number. |
| 22 | //! @return version |
| 23 | constexpr std::string_view version() |
| 24 | { |
| 25 | return "0.1.0" ; |
| 26 | } |
| 27 | |
| 28 | //! @brief Copyright information. |
| 29 | //! @return copyright |
| 30 | constexpr std::string_view copyright() |
| 31 | { |
| 32 | return "Copyright (c) 2022-2025 ryftchen. All rights reserved." ; |
| 33 | } |
| 34 | |
| 35 | //! @brief ASCII banner. |
| 36 | //! @return banner |
| 37 | constexpr std::string_view banner() |
| 38 | { |
| 39 | // clang-format off |
| 40 | return R"( ______ ______ ______ )" "\n" |
| 41 | R"( /\ ___\ /\ __ \ /\ __ \ )" "\n" |
| 42 | R"( \ \ __\ \ \ \/\ \ \ \ \/\ \ )" "\n" |
| 43 | R"( \ \_\ \ \_____\ \ \_____\ )" "\n" |
| 44 | R"( \/_/ \/_____/ \/_____/ )" "\n" ; |
| 45 | // clang-format on |
| 46 | } |
| 47 | |
| 48 | extern std::string revision(); |
| 49 | extern std::string compiler(); |
| 50 | extern std::string processor(); |
| 51 | extern std::string date(); |
| 52 | } // namespace build |
| 53 | } // namespace application |
| 54 | |