10c16b537SWarner Loshcxx_library( 20c16b537SWarner Losh name='zstd', 30c16b537SWarner Losh header_namespace='', 40c16b537SWarner Losh visibility=['PUBLIC'], 50c16b537SWarner Losh deps=[ 60c16b537SWarner Losh ':common', 70c16b537SWarner Losh ':compress', 80c16b537SWarner Losh ':decompress', 90c16b537SWarner Losh ':deprecated', 100c16b537SWarner Losh ], 110c16b537SWarner Losh) 120c16b537SWarner Losh 130c16b537SWarner Loshcxx_library( 140c16b537SWarner Losh name='compress', 150c16b537SWarner Losh header_namespace='', 160c16b537SWarner Losh visibility=['PUBLIC'], 170c16b537SWarner Losh exported_headers=subdir_glob([ 18052d3c12SConrad Meyer ('compress', 'zstd*.h'), 190c16b537SWarner Losh ]), 20052d3c12SConrad Meyer srcs=glob(['compress/zstd*.c']), 210c16b537SWarner Losh deps=[':common'], 220c16b537SWarner Losh) 230c16b537SWarner Losh 240c16b537SWarner Loshcxx_library( 250c16b537SWarner Losh name='decompress', 260c16b537SWarner Losh header_namespace='', 270c16b537SWarner Losh visibility=['PUBLIC'], 28*19fcbaf1SConrad Meyer headers=subdir_glob([ 29*19fcbaf1SConrad Meyer ('decompress', '*_impl.h'), 30*19fcbaf1SConrad Meyer ]), 31052d3c12SConrad Meyer srcs=glob(['decompress/zstd*.c']), 320c16b537SWarner Losh deps=[ 330c16b537SWarner Losh ':common', 340c16b537SWarner Losh ':legacy', 350c16b537SWarner Losh ], 360c16b537SWarner Losh) 370c16b537SWarner Losh 380c16b537SWarner Loshcxx_library( 390c16b537SWarner Losh name='deprecated', 400c16b537SWarner Losh header_namespace='', 410c16b537SWarner Losh visibility=['PUBLIC'], 420c16b537SWarner Losh exported_headers=subdir_glob([ 430c16b537SWarner Losh ('decprecated', '*.h'), 440c16b537SWarner Losh ]), 450c16b537SWarner Losh srcs=glob(['deprecated/*.c']), 460c16b537SWarner Losh deps=[':common'], 470c16b537SWarner Losh) 480c16b537SWarner Losh 490c16b537SWarner Loshcxx_library( 500c16b537SWarner Losh name='legacy', 510c16b537SWarner Losh header_namespace='', 520c16b537SWarner Losh visibility=['PUBLIC'], 530c16b537SWarner Losh exported_headers=subdir_glob([ 540c16b537SWarner Losh ('legacy', '*.h'), 550c16b537SWarner Losh ]), 560c16b537SWarner Losh srcs=glob(['legacy/*.c']), 570c16b537SWarner Losh deps=[':common'], 58052d3c12SConrad Meyer exported_preprocessor_flags=[ 59052d3c12SConrad Meyer '-DZSTD_LEGACY_SUPPORT=4', 60052d3c12SConrad Meyer ], 610c16b537SWarner Losh) 620c16b537SWarner Losh 630c16b537SWarner Loshcxx_library( 640c16b537SWarner Losh name='zdict', 650c16b537SWarner Losh header_namespace='', 660c16b537SWarner Losh visibility=['PUBLIC'], 670c16b537SWarner Losh exported_headers=subdir_glob([ 680c16b537SWarner Losh ('dictBuilder', 'zdict.h'), 690c16b537SWarner Losh ]), 700c16b537SWarner Losh headers=subdir_glob([ 710c16b537SWarner Losh ('dictBuilder', 'divsufsort.h'), 720c16b537SWarner Losh ]), 730c16b537SWarner Losh srcs=glob(['dictBuilder/*.c']), 740c16b537SWarner Losh deps=[':common'], 750c16b537SWarner Losh) 760c16b537SWarner Losh 770c16b537SWarner Loshcxx_library( 78052d3c12SConrad Meyer name='compiler', 79052d3c12SConrad Meyer header_namespace='', 80052d3c12SConrad Meyer visibility=['PUBLIC'], 81052d3c12SConrad Meyer exported_headers=subdir_glob([ 82052d3c12SConrad Meyer ('common', 'compiler.h'), 83052d3c12SConrad Meyer ]), 84052d3c12SConrad Meyer) 85052d3c12SConrad Meyer 86052d3c12SConrad Meyercxx_library( 87*19fcbaf1SConrad Meyer name='cpu', 88*19fcbaf1SConrad Meyer header_namespace='', 89*19fcbaf1SConrad Meyer visibility=['PUBLIC'], 90*19fcbaf1SConrad Meyer exported_headers=subdir_glob([ 91*19fcbaf1SConrad Meyer ('common', 'cpu.h'), 92*19fcbaf1SConrad Meyer ]), 93*19fcbaf1SConrad Meyer) 94*19fcbaf1SConrad Meyer 95*19fcbaf1SConrad Meyercxx_library( 960c16b537SWarner Losh name='bitstream', 970c16b537SWarner Losh header_namespace='', 980c16b537SWarner Losh visibility=['PUBLIC'], 990c16b537SWarner Losh exported_headers=subdir_glob([ 1000c16b537SWarner Losh ('common', 'bitstream.h'), 1010c16b537SWarner Losh ]), 1020c16b537SWarner Losh) 1030c16b537SWarner Losh 1040c16b537SWarner Loshcxx_library( 1050c16b537SWarner Losh name='entropy', 1060c16b537SWarner Losh header_namespace='', 1070c16b537SWarner Losh visibility=['PUBLIC'], 1080c16b537SWarner Losh exported_headers=subdir_glob([ 1090c16b537SWarner Losh ('common', 'fse.h'), 1100c16b537SWarner Losh ('common', 'huf.h'), 1110c16b537SWarner Losh ]), 1120c16b537SWarner Losh srcs=[ 1130c16b537SWarner Losh 'common/entropy_common.c', 1140c16b537SWarner Losh 'common/fse_decompress.c', 1150c16b537SWarner Losh 'compress/fse_compress.c', 1160c16b537SWarner Losh 'compress/huf_compress.c', 1170c16b537SWarner Losh 'decompress/huf_decompress.c', 1180c16b537SWarner Losh ], 1190c16b537SWarner Losh deps=[ 1200c16b537SWarner Losh ':bitstream', 121052d3c12SConrad Meyer ':compiler', 1220c16b537SWarner Losh ':errors', 1230c16b537SWarner Losh ':mem', 1240c16b537SWarner Losh ], 1250c16b537SWarner Losh) 1260c16b537SWarner Losh 1270c16b537SWarner Loshcxx_library( 1280c16b537SWarner Losh name='errors', 1290c16b537SWarner Losh header_namespace='', 1300c16b537SWarner Losh visibility=['PUBLIC'], 1310c16b537SWarner Losh exported_headers=subdir_glob([ 1320c16b537SWarner Losh ('common', 'error_private.h'), 1330c16b537SWarner Losh ('common', 'zstd_errors.h'), 1340c16b537SWarner Losh ]), 1350c16b537SWarner Losh srcs=['common/error_private.c'], 1360c16b537SWarner Losh) 1370c16b537SWarner Losh 1380c16b537SWarner Loshcxx_library( 1390c16b537SWarner Losh name='mem', 1400c16b537SWarner Losh header_namespace='', 1410c16b537SWarner Losh visibility=['PUBLIC'], 1420c16b537SWarner Losh exported_headers=subdir_glob([ 1430c16b537SWarner Losh ('common', 'mem.h'), 1440c16b537SWarner Losh ]), 1450c16b537SWarner Losh) 1460c16b537SWarner Losh 1470c16b537SWarner Loshcxx_library( 1480c16b537SWarner Losh name='pool', 1490c16b537SWarner Losh header_namespace='', 1500c16b537SWarner Losh visibility=['PUBLIC'], 1510c16b537SWarner Losh exported_headers=subdir_glob([ 1520c16b537SWarner Losh ('common', 'pool.h'), 1530c16b537SWarner Losh ]), 1540c16b537SWarner Losh srcs=['common/pool.c'], 155052d3c12SConrad Meyer deps=[ 156052d3c12SConrad Meyer ':threading', 157052d3c12SConrad Meyer ':zstd_common', 158052d3c12SConrad Meyer ], 1590c16b537SWarner Losh) 1600c16b537SWarner Losh 1610c16b537SWarner Loshcxx_library( 1620c16b537SWarner Losh name='threading', 1630c16b537SWarner Losh header_namespace='', 1640c16b537SWarner Losh visibility=['PUBLIC'], 1650c16b537SWarner Losh exported_headers=subdir_glob([ 1660c16b537SWarner Losh ('common', 'threading.h'), 1670c16b537SWarner Losh ]), 1680c16b537SWarner Losh srcs=['common/threading.c'], 169052d3c12SConrad Meyer exported_preprocessor_flags=[ 170052d3c12SConrad Meyer '-DZSTD_MULTITHREAD', 171052d3c12SConrad Meyer ], 172052d3c12SConrad Meyer exported_linker_flags=[ 173052d3c12SConrad Meyer '-pthread', 174052d3c12SConrad Meyer ], 1750c16b537SWarner Losh) 1760c16b537SWarner Losh 1770c16b537SWarner Loshcxx_library( 1780c16b537SWarner Losh name='xxhash', 1790c16b537SWarner Losh header_namespace='', 1800c16b537SWarner Losh visibility=['PUBLIC'], 1810c16b537SWarner Losh exported_headers=subdir_glob([ 1820c16b537SWarner Losh ('common', 'xxhash.h'), 1830c16b537SWarner Losh ]), 1840c16b537SWarner Losh srcs=['common/xxhash.c'], 185052d3c12SConrad Meyer exported_preprocessor_flags=[ 186052d3c12SConrad Meyer '-DXXH_NAMESPACE=ZSTD_', 187052d3c12SConrad Meyer ], 1880c16b537SWarner Losh) 1890c16b537SWarner Losh 1900c16b537SWarner Loshcxx_library( 1910c16b537SWarner Losh name='zstd_common', 1920c16b537SWarner Losh header_namespace='', 1930c16b537SWarner Losh visibility=['PUBLIC'], 1940c16b537SWarner Losh exported_headers=subdir_glob([ 1950c16b537SWarner Losh ('', 'zstd.h'), 1960c16b537SWarner Losh ('common', 'zstd_internal.h'), 1970c16b537SWarner Losh ]), 1980c16b537SWarner Losh srcs=['common/zstd_common.c'], 1990c16b537SWarner Losh deps=[ 200052d3c12SConrad Meyer ':compiler', 2010c16b537SWarner Losh ':errors', 2020c16b537SWarner Losh ':mem', 2030c16b537SWarner Losh ], 2040c16b537SWarner Losh) 2050c16b537SWarner Losh 2060c16b537SWarner Loshcxx_library( 2070c16b537SWarner Losh name='common', 2080c16b537SWarner Losh deps=[ 2090c16b537SWarner Losh ':bitstream', 210052d3c12SConrad Meyer ':compiler', 211*19fcbaf1SConrad Meyer ':cpu', 2120c16b537SWarner Losh ':entropy', 2130c16b537SWarner Losh ':errors', 2140c16b537SWarner Losh ':mem', 2150c16b537SWarner Losh ':pool', 2160c16b537SWarner Losh ':threading', 2170c16b537SWarner Losh ':xxhash', 2180c16b537SWarner Losh ':zstd_common', 2190c16b537SWarner Losh ] 2200c16b537SWarner Losh) 221