SCsub 862 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env python
  2. Import('env')
  3. thirdparty_zstd_dir = "#thirdparty/zstd/"
  4. thirdparty_zstd_sources = [
  5. "common/entropy_common.c",
  6. "common/error_private.c",
  7. "common/fse_decompress.c",
  8. "common/pool.c",
  9. "common/threading.c",
  10. "common/xxhash.c",
  11. "common/zstd_common.c",
  12. "compress/fse_compress.c",
  13. "compress/huf_compress.c",
  14. "compress/zstd_compress.c",
  15. "compress/zstd_double_fast.c",
  16. "compress/zstd_fast.c",
  17. "compress/zstd_lazy.c",
  18. "compress/zstd_ldm.c",
  19. "compress/zstdmt_compress.c",
  20. "compress/zstd_opt.c",
  21. "decompress/huf_decompress.c",
  22. "decompress/zstd_decompress.c",
  23. ]
  24. thirdparty_zstd_sources = [thirdparty_zstd_dir + file for file in thirdparty_zstd_sources]
  25. env.add_source_files(env.core_sources, thirdparty_zstd_sources)
  26. env.Append(CPPPATH=["#thirdparty/zstd", "#thirdparty/zstd/common"])
  27. env.Append(CCFLAGS="-DZSTD_STATIC_LINKING_ONLY")