xref: /aosp_15_r20/external/lz4/build/meson/meson_options.txt (revision 27162e4e17433d5aa7cb38e7b6a433a09405fc7f)
1*27162e4eSAndroid Build Coastguard Worker# #############################################################################
2*27162e4eSAndroid Build Coastguard Worker# Copyright (c) 2018-present        lzutao <taolzu(at)gmail.com>
3*27162e4eSAndroid Build Coastguard Worker# Copyright (c) 2022-present        Tristan Partin <tristan(at)partin.io>
4*27162e4eSAndroid Build Coastguard Worker# All rights reserved.
5*27162e4eSAndroid Build Coastguard Worker#
6*27162e4eSAndroid Build Coastguard Worker# This source code is licensed under both the BSD-style license (found in the
7*27162e4eSAndroid Build Coastguard Worker# LICENSE file in the root directory of this source tree) and the GPLv2 (found
8*27162e4eSAndroid Build Coastguard Worker# in the COPYING file in the root directory of this source tree).
9*27162e4eSAndroid Build Coastguard Worker# #############################################################################
10*27162e4eSAndroid Build Coastguard Worker
11*27162e4eSAndroid Build Coastguard Workeroption('enable_multithread', type: 'boolean', value: true,
12*27162e4eSAndroid Build Coastguard Worker  description: 'Enable multi-threading support')
13*27162e4eSAndroid Build Coastguard Workeroption('align-test', type: 'boolean', value: true,
14*27162e4eSAndroid Build Coastguard Worker  description: 'See LZ4_ALIGN_TEST')
15*27162e4eSAndroid Build Coastguard Workeroption('contrib', type: 'boolean', value: false,
16*27162e4eSAndroid Build Coastguard Worker  description: 'Enable contrib')
17*27162e4eSAndroid Build Coastguard Workeroption('debug-level', type: 'integer', min: 0, max: 7, value: 1,
18*27162e4eSAndroid Build Coastguard Worker  description: 'Enable run-time debug. See lib/lz4hc.c')
19*27162e4eSAndroid Build Coastguard Workeroption('disable-memory-allocation', type: 'boolean', value: false,
20*27162e4eSAndroid Build Coastguard Worker  description: 'See LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION. Static builds only')
21*27162e4eSAndroid Build Coastguard Workeroption('distance-max', type: 'integer', min: 0, max: 65535, value: 65535,
22*27162e4eSAndroid Build Coastguard Worker  description: 'See LZ4_DISTANCE_MAX')
23*27162e4eSAndroid Build Coastguard Workeroption('endianness-independent-output', type: 'boolean', value: false,
24*27162e4eSAndroid Build Coastguard Worker  description: 'See LZ4_STATIC_LINKING_ONLY_ENDIANNESS_INDEPENDENT_OUTPUT. Static builds only')
25*27162e4eSAndroid Build Coastguard Workeroption('examples', type: 'boolean', value: false,
26*27162e4eSAndroid Build Coastguard Worker  description: 'Enable examples')
27*27162e4eSAndroid Build Coastguard Workeroption('fast-dec-loop', type: 'feature', value: 'auto',
28*27162e4eSAndroid Build Coastguard Worker  description: 'See LZ4_FAST_DEC_LOOP')
29*27162e4eSAndroid Build Coastguard Workeroption('force-sw-bitcount', type: 'boolean', value: false,
30*27162e4eSAndroid Build Coastguard Worker  description: 'See LZ4_FORCE_SW_BITCOUNT')
31*27162e4eSAndroid Build Coastguard Workeroption('freestanding', type: 'boolean', value: false,
32*27162e4eSAndroid Build Coastguard Worker  description: 'See LZ4_FREESTANDING')
33*27162e4eSAndroid Build Coastguard Workeroption('memory-usage', type: 'integer', min: 0, max: 20, value: 0,
34*27162e4eSAndroid Build Coastguard Worker  description: 'See LZ4_MEMORY_USAGE. 0 means use the LZ4 default')
35*27162e4eSAndroid Build Coastguard Workeroption('ossfuzz', type: 'boolean', value: true,
36*27162e4eSAndroid Build Coastguard Worker  description: 'Enable ossfuzz')
37*27162e4eSAndroid Build Coastguard Workeroption('programs', type: 'boolean', value: false,
38*27162e4eSAndroid Build Coastguard Worker  description: 'Enable programs')
39*27162e4eSAndroid Build Coastguard Workeroption('tests', type: 'boolean', value: false,
40*27162e4eSAndroid Build Coastguard Worker  description: 'Enable tests')
41*27162e4eSAndroid Build Coastguard Workeroption('unstable', type: 'boolean', value: false,
42*27162e4eSAndroid Build Coastguard Worker  description: 'Expose unstable interfaces')
43*27162e4eSAndroid Build Coastguard Workeroption('user-memory-functions', type: 'boolean', value: false,
44*27162e4eSAndroid Build Coastguard Worker  description: 'See LZ4_USER_MEMORY_FUNCTIONS')
45