From a4083886233e56e423b3f75e55cced5913d1f02a Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 23 Sep 2017 23:46:47 -0400 Subject: Enable building against system zstd. --- thirdparty/zstd/SCsub | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 thirdparty/zstd/SCsub (limited to 'thirdparty/zstd') diff --git a/thirdparty/zstd/SCsub b/thirdparty/zstd/SCsub new file mode 100644 index 0000000000..e8be1aaf44 --- /dev/null +++ b/thirdparty/zstd/SCsub @@ -0,0 +1,23 @@ +#!/usr/bin/env python + +Import('env') + +thirdparty_zstd_dir = "#thirdparty/zstd/" +thirdparty_zstd_sources = [ + "common/entropy_common.c", + "common/error_private.c", + "common/fse_decompress.c", + "common/pool.c", + "common/threading.c", + "common/xxhash.c", + "common/zstd_common.c", + "compress/fse_compress.c", + "compress/huf_compress.c", + "compress/zstd_compress.c", + "compress/zstdmt_compress.c", + "decompress/huf_decompress.c", + "decompress/zstd_decompress.c", +] +thirdparty_zstd_sources = [thirdparty_zstd_dir + file for file in thirdparty_zstd_sources] +env.add_source_files(env.core_sources, thirdparty_zstd_sources) +env.Append(CPPPATH=["#thirdparty/zstd", "#thirdparty/zstd/common"]) -- cgit v1.2.3