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