xref: /aosp_15_r20/external/zstd/build/meson/meson_options.txt (revision 01826a4963a0d8a59bc3812d29bdf0fb76416722)
1*01826a49SYabin Cui# #############################################################################
2*01826a49SYabin Cui# Copyright (c) 2018-present     Dima Krasner <[email protected]>
3*01826a49SYabin Cui#                                lzutao <taolzu(at)gmail.com>
4*01826a49SYabin Cui# All rights reserved.
5*01826a49SYabin Cui#
6*01826a49SYabin Cui# This source code is licensed under both the BSD-style license (found in the
7*01826a49SYabin Cui# LICENSE file in the root directory of this source tree) and the GPLv2 (found
8*01826a49SYabin Cui# in the COPYING file in the root directory of this source tree).
9*01826a49SYabin Cui# #############################################################################
10*01826a49SYabin Cui
11*01826a49SYabin Cui# Read guidelines from https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting
12*01826a49SYabin Cui
13*01826a49SYabin Cuioption('legacy_level', type: 'integer', min: 0, max: 7, value: 5,
14*01826a49SYabin Cui  description: 'Support any legacy format: 7 to 1 for v0.7+ to v0.1+')
15*01826a49SYabin Cuioption('debug_level', type: 'integer', min: 0, max: 9, value: 1,
16*01826a49SYabin Cui  description: 'Enable run-time debug. See lib/common/debug.h')
17*01826a49SYabin Cuioption('backtrace', type: 'feature', value: 'disabled',
18*01826a49SYabin Cui  description: 'Display a stack backtrace when execution generates a runtime exception')
19*01826a49SYabin Cuioption('static_runtime', type: 'boolean', value: false,
20*01826a49SYabin Cui  description: 'Link to static run-time libraries on MSVC')
21*01826a49SYabin Cui
22*01826a49SYabin Cuioption('bin_programs', type: 'boolean', value: true,
23*01826a49SYabin Cui  description: 'Enable programs build')
24*01826a49SYabin Cuioption('bin_tests', type: 'boolean', value: false,
25*01826a49SYabin Cui  description: 'Enable tests build')
26*01826a49SYabin Cuioption('bin_contrib', type: 'boolean', value: false,
27*01826a49SYabin Cui  description: 'Enable contrib build')
28*01826a49SYabin Cui
29*01826a49SYabin Cuioption('multi_thread', type: 'feature', value: 'enabled',
30*01826a49SYabin Cui  description: 'Enable multi-threading when pthread is detected')
31*01826a49SYabin Cuioption('zlib', type: 'feature', value: 'auto',
32*01826a49SYabin Cui  description: 'Enable zlib support')
33*01826a49SYabin Cuioption('lzma', type: 'feature', value: 'auto',
34*01826a49SYabin Cui  description: 'Enable lzma support')
35*01826a49SYabin Cuioption('lz4', type: 'feature', value: 'auto',
36*01826a49SYabin Cui  description: 'Enable lz4 support')
37