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 10zstd_rootdir = '../../../..' 11 12pzstd_includes = include_directories(join_paths(zstd_rootdir, 'programs'), 13 join_paths(zstd_rootdir, 'contrib/pzstd')) 14pzstd_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')] 19pzstd = executable('pzstd', 20 pzstd_sources, 21 cpp_args: pzstd_warning_flags, 22 include_directories: pzstd_includes, 23 dependencies: [ libzstd_dep, thread_dep ], 24 override_options: ['b_ndebug=true'], 25 install: true) 26