1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

Move contrib/meson to build/meson

This commit is contained in:
Lzu Tao
2018-11-29 11:45:57 +07:00
parent c0e71cae55
commit beb13bd87e
11 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,32 @@
# #############################################################################
# Copyright (c) 2018-present lzutao <taolzu(at)gmail.com>
# All rights reserved.
#
# This source code is licensed under both the BSD-style license (found in the
# LICENSE file in the root directory of this source tree) and the GPLv2 (found
# in the COPYING file in the root directory of this source tree).
# #############################################################################
zstd_source_dir = join_paths('..', '..', '..', '..')
library_dir = join_paths(zstd_source_dir, 'lib')
library_common_dir = join_paths(library_dir, 'common')
programs_dir = join_paths(zstd_source_dir, 'programs')
contrib_pzstd_dir = join_paths(zstd_source_dir, 'contrib', 'pzstd')
pzstd_includes = include_directories(programs_dir,
library_dir,
library_common_dir,
contrib_pzstd_dir)
pzstd_sources = [join_paths(programs_dir, 'util.c'),
join_paths(contrib_pzstd_dir, 'main.cpp'),
join_paths(contrib_pzstd_dir, 'Options.cpp'),
join_paths(contrib_pzstd_dir, 'Pzstd.cpp'),
join_paths(contrib_pzstd_dir, 'SkippableFrame.cpp')]
pzstd = executable('pzstd',
pzstd_sources,
cpp_args: [ '-DNDEBUG', '-Wno-shadow', '-pedantic' ],
include_directories: pzstd_includes,
link_with: libzstd,
dependencies: [ thread_dep ],
install: true)