meson.build 1.1 KB

123456789101112131415161718192021222324
  1. # #############################################################################
  2. # Copyright (c) 2018-present lzutao <taolzu(at)gmail.com>
  3. # All rights reserved.
  4. #
  5. # This source code is licensed under both the BSD-style license (found in the
  6. # LICENSE file in the root directory of this source tree) and the GPLv2 (found
  7. # in the COPYING file in the root directory of this source tree).
  8. # #############################################################################
  9. zstd_rootdir = '../../../..'
  10. pzstd_includes = include_directories(join_paths(zstd_rootdir, 'programs'),
  11. join_paths(zstd_rootdir, 'contrib/pzstd'))
  12. pzstd_sources = [join_paths(zstd_rootdir, 'programs/util.c'),
  13. join_paths(zstd_rootdir, 'contrib/pzstd/main.cpp'),
  14. join_paths(zstd_rootdir, 'contrib/pzstd/Options.cpp'),
  15. join_paths(zstd_rootdir, 'contrib/pzstd/Pzstd.cpp'),
  16. join_paths(zstd_rootdir, 'contrib/pzstd/SkippableFrame.cpp')]
  17. pzstd = executable('pzstd',
  18. pzstd_sources,
  19. cpp_args: [ '-DNDEBUG', '-Wno-shadow', '-Wno-deprecated-declarations' ],
  20. include_directories: pzstd_includes,
  21. dependencies: [ libzstd_dep, thread_dep ],
  22. install: true)