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