1 # #############################################################################
2 # Copyright (c) 2018-present lzutao <taolzu(at)gmail.com>
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 # #############################################################################
10 zstd_rootdir = '../../../..'
12 pzstd_includes = include_directories(join_paths(zstd_rootdir, 'programs'),
13 join_paths(zstd_rootdir, 'contrib/pzstd'))
14 pzstd_sources = [join_paths(zstd_rootdir, 'programs/util.c'),
15 join_paths(zstd_rootdir, 'contrib/pzstd/main.cpp'),
16 join_paths(zstd_rootdir, 'contrib/pzstd/Options.cpp'),
17 join_paths(zstd_rootdir, 'contrib/pzstd/Pzstd.cpp'),
18 join_paths(zstd_rootdir, 'contrib/pzstd/SkippableFrame.cpp')]
19 pzstd = executable('pzstd',
21 cpp_args: pzstd_warning_flags,
22 include_directories: pzstd_includes,
23 dependencies: [ libzstd_dep, thread_dep ],
24 override_options: ['b_ndebug=true'],