| @@ -1,8 +1,4 @@ | |||
| #include "./catch2_embedded.hpp" | |||
| namespace dds::detail { | |||
| const char* const catch2_embedded_single_header_str = R"catch2-embedded(/* | |||
| /* | |||
| * Catch v2.10.2 | |||
| * Generated: 2019-10-24 17:49:11.459934 | |||
| * ---------------------------------------------------------- | |||
| @@ -17473,6 +17469,3 @@ using Catch::Detail::Approx; | |||
| // end catch.hpp | |||
| #endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED | |||
| )catch2-embedded"; | |||
| } | |||
| @@ -0,0 +1,22 @@ | |||
| from pathlib import Path | |||
| ROOT = Path(__file__).absolute().parent.parent | |||
| c2_header = ROOT / 'res/catch2.hpp' | |||
| buf = c2_header.read_bytes() | |||
| chars = ', '.join(f"'\\x{b:02x}'" for b in buf) | |||
| c2_embedded = ROOT / 'src/dds/catch2_embeddead_header.cpp' | |||
| c2_embedded.write_text(f''' | |||
| #include "./catch2_embedded.hpp" | |||
| namespace dds::detail {{ | |||
| static const char bytes[] = {{ | |||
| {chars}, '\\x00' | |||
| }}; | |||
| const char* const catch2_embedded_single_header_str = bytes; | |||
| }} | |||
| ''') | |||