NOTE: This commit only tested on Linux (Ubuntu 18.04). Windows build may not work as expected. * Use meson >= 0.47.0 cause we use install_man function * Add three helper Python script: * CopyFile.py: To copy file * CreateSymlink.py: To make symlink (both Windows and Unix) * GetZstdLibraryVersion.py: Parse lib/zstd.h to get zstd version These help emulating equivalent functions in CMake and Makefile. * Use subdir from meson to split meson.build * Add contrib build * Fix other build * Add new build options * build_programs: Enable programs build * build_contrib: Enable contrib build * build_tests: Enable tests build * use_static_runtime: Link to static run-time libraries on MSVC * zlib_support: Enable zlib support * lzma_support: Enable lzma support
27 lines
1.4 KiB
Meson
27 lines
1.4 KiB
Meson
# #############################################################################
|
|
# Copyright (c) 2018-present Dima Krasner <dima@dimakrasner.com>
|
|
# 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).
|
|
# #############################################################################
|
|
|
|
option('multithread_support', type: 'boolean', value: true,
|
|
description: 'Enable multithreading when pthread is detected')
|
|
option('legacy_support', type: 'string', value: '4',
|
|
description: 'Support any legacy format: true or false, or 7 to 1 for v0.7+ to v0.1+')
|
|
option('build_programs', type: 'boolean', value: true,
|
|
description: 'Enable programs build')
|
|
option('build_contrib', type: 'boolean', value: false,
|
|
description: 'Enable contrib build')
|
|
option('build_tests', type: 'boolean', value: false,
|
|
description: 'Enable tests build')
|
|
option('use_static_runtime', type: 'boolean', value: false,
|
|
description: 'Link to static run-time libraries on MSVC')
|
|
option('zlib_support', type: 'boolean', value: false,
|
|
description: 'Enable zlib support')
|
|
option('lzma_support', type: 'boolean', value: false,
|
|
description: 'Enable lzma support')
|