1 -- This GENie/premake file copies the behavior of the Makefile in the lib folder.
2 -- Basic usage: project_zstd(ZSTD_DIR)
4 function project_zstd(dir, compression, decompression, deprecated, dictbuilder, legacy)
5 if compression == nil then compression = true end
6 if decompression == nil then decompression = true end
7 if deprecated == nil then deprecated = false end
8 if dictbuilder == nil then dictbuilder = false end
10 if legacy == nil then legacy = 0 end
12 if not compression then
17 if not decompression then
34 dir .. 'compress/**.c',
35 dir .. 'compress/**.h'
41 dir .. 'decompress/**.c',
42 dir .. 'decompress/**.h'
48 dir .. 'dictBuilder/**.c',
49 dir .. 'dictBuilder/**.h'
55 dir .. 'deprecated/**.c',
56 dir .. 'deprecated/**.h'
63 dir .. 'legacy/zstd_v0' .. (legacy - 7) .. '.*'
77 'XXH_NAMESPACE=ZSTD_',
78 'ZSTD_LEGACY_SUPPORT=' .. legacy