BUCK 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. cxx_binary(
  2. name='zstd',
  3. headers=glob(['*.h'], excludes=['datagen.h', 'platform.h', 'util.h']),
  4. srcs=glob(['*.c'], excludes=['datagen.c']),
  5. deps=[
  6. ':datagen',
  7. ':util',
  8. '//lib:zstd',
  9. '//lib:zdict',
  10. '//lib:mem',
  11. '//lib:xxhash',
  12. ],
  13. preprocessor_flags=[
  14. '-DZSTD_GZCOMPRESS',
  15. '-DZSTD_GZDECOMPRESS',
  16. '-DZSTD_LZMACOMPRESS',
  17. '-DZSTD_LZMADECOMPRES',
  18. '-DZSTD_LZ4COMPRESS',
  19. '-DZSTD_LZ4DECOMPRES',
  20. ],
  21. linker_flags=[
  22. '-lz',
  23. '-llzma',
  24. '-llz4',
  25. ],
  26. )
  27. cxx_library(
  28. name='datagen',
  29. visibility=['PUBLIC'],
  30. header_namespace='',
  31. exported_headers=['datagen.h'],
  32. srcs=['datagen.c'],
  33. deps=['//lib:mem'],
  34. )
  35. cxx_library(
  36. name='util',
  37. visibility=['PUBLIC'],
  38. header_namespace='',
  39. exported_headers=['util.h', 'platform.h'],
  40. deps=['//lib:mem'],
  41. )