Bump to 1.3.8 and fix run_command function

The run_command is run from an unspecified directory. Therefore we cannot assume
which directory it is running our command.
This commit is contained in:
Lzu Tao 2018-11-28 11:57:53 +07:00
parent 8a160680d1
commit 5a36a57cf5

View File

@ -14,7 +14,7 @@ project('zstd',
default_options : ['c_std=c99', default_options : ['c_std=c99',
'cpp_std=c++11', 'cpp_std=c++11',
'buildtype=release'], 'buildtype=release'],
version: '1.3.7', version: '1.3.8',
# for install_man # for install_man
meson_version: '>=0.47.0') meson_version: '>=0.47.0')
@ -63,7 +63,7 @@ CopyFile_py = files('CopyFile.py')
# Getting project version from zstd.h # Getting project version from zstd.h
# ============================================================================= # =============================================================================
zstd_h_file = join_paths(library_dir, 'zstd.h') zstd_h_file = join_paths(meson.current_source_dir(), library_dir, 'zstd.h')
r = run_command(python3, GetZstdLibraryVersion_py, zstd_h_file) r = run_command(python3, GetZstdLibraryVersion_py, zstd_h_file)
if r.returncode() == 0 if r.returncode() == 0
output = r.stdout().strip() output = r.stdout().strip()