From 13771971cfaef6356ba47668cae6ce25c5c2071f Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 29 Mar 2020 22:59:04 +0300 Subject: Drop dependency on serge-sans-paille/frozen format: - instead of frozen::unordered_map, create two std::arrays with the aliased names (entries) and respective data (values) libembed: - Resources and CompressedResources convenience classes for raw and compressed resources respectively - Resources can be constexpr in regular usage - Annotate Resources::decompress accordingly --- scripts/zstd.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/zstd.py') diff --git a/scripts/zstd.py b/scripts/zstd.py index f85e7da..2cfa149 100644 --- a/scripts/zstd.py +++ b/scripts/zstd.py @@ -16,6 +16,8 @@ def zstd(filelist, args): if args.dict is not None: write_item(args.output, 'dict', args.dict.read()) print("constexpr auto dictionary = std::span(dict, dict_len);", file=args.output) + else: + print("constexpr std::span dictionary {};", file=args.output) print("constexpr auto compression = embed::Zstd;", file=args.output) -- cgit v1.2.1