contrib/zstd/lib/BUCK in extzstd-0.2 vs contrib/zstd/lib/BUCK in extzstd-0.3

- old
+ new

@@ -1,8 +1,9 @@ cxx_library( name='zstd', header_namespace='', + exported_headers=['zstd.h'], visibility=['PUBLIC'], deps=[ ':common', ':compress', ':decompress', @@ -15,18 +16,21 @@ header_namespace='', visibility=['PUBLIC'], exported_headers=subdir_glob([ ('compress', 'zstd*.h'), ]), - srcs=glob(['compress/zstd*.c']), + srcs=glob(['compress/zstd*.c', 'compress/hist.c']), deps=[':common'], ) cxx_library( name='decompress', header_namespace='', visibility=['PUBLIC'], + headers=subdir_glob([ + ('decompress', '*_impl.h'), + ]), srcs=glob(['decompress/zstd*.c']), deps=[ ':common', ':legacy', ], @@ -35,11 +39,11 @@ cxx_library( name='deprecated', header_namespace='', visibility=['PUBLIC'], exported_headers=subdir_glob([ - ('decprecated', '*.h'), + ('deprecated', '*.h'), ]), srcs=glob(['deprecated/*.c']), deps=[':common'], ) @@ -64,10 +68,11 @@ exported_headers=subdir_glob([ ('dictBuilder', 'zdict.h'), ]), headers=subdir_glob([ ('dictBuilder', 'divsufsort.h'), + ('dictBuilder', 'cover.h'), ]), srcs=glob(['dictBuilder/*.c']), deps=[':common'], ) @@ -79,10 +84,19 @@ ('common', 'compiler.h'), ]), ) cxx_library( + name='cpu', + header_namespace='', + visibility=['PUBLIC'], + exported_headers=subdir_glob([ + ('common', 'cpu.h'), + ]), +) + +cxx_library( name='bitstream', header_namespace='', visibility=['PUBLIC'], exported_headers=subdir_glob([ ('common', 'bitstream.h'), @@ -103,10 +117,11 @@ 'compress/fse_compress.c', 'compress/huf_compress.c', 'decompress/huf_decompress.c', ], deps=[ + ':debug', ':bitstream', ':compiler', ':errors', ':mem', ], @@ -190,13 +205,25 @@ ':mem', ], ) cxx_library( + name='debug', + header_namespace='', + visibility=['PUBLIC'], + exported_headers=subdir_glob([ + ('common', 'debug.h'), + ]), + srcs=['common/debug.c'], +) + +cxx_library( name='common', deps=[ + ':debug', ':bitstream', ':compiler', + ':cpu', ':entropy', ':errors', ':mem', ':pool', ':threading',