meson.build 1.1 KB

123456789101112131415161718192021222324252627282930
  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. gen_html_includes = include_directories(join_paths(zstd_rootdir, 'programs'),
  11. join_paths(zstd_rootdir, 'lib'),
  12. join_paths(zstd_rootdir, 'lib/common'),
  13. join_paths(zstd_rootdir, 'contrib/gen_html'))
  14. gen_html = executable('gen_html',
  15. join_paths(zstd_rootdir, 'contrib/gen_html/gen_html.cpp'),
  16. include_directories: gen_html_includes,
  17. native: true,
  18. install: false)
  19. # Update zstd manual
  20. zstd_manual_html = custom_target('zstd_manual.html',
  21. output : 'zstd_manual.html',
  22. command : [gen_html,
  23. zstd_version,
  24. join_paths(meson.current_source_dir(), zstd_rootdir, 'lib/zstd.h'),
  25. '@OUTPUT@'],
  26. install : false)