xref: /aosp_15_r20/external/lz4/build/meson/meson/examples/meson.build (revision 27162e4e17433d5aa7cb38e7b6a433a09405fc7f)
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
11lz4_source_root = '../../../..'
12
13examples = {
14  'print_version': 'print_version.c',
15  'blockStreaming_doubleBuffer': 'blockStreaming_doubleBuffer.c',
16  'dictionaryRandomAccess': 'dictionaryRandomAccess.c',
17  'blockStreaming_ringBuffer': 'blockStreaming_ringBuffer.c',
18  'streamingHC_ringBuffer': 'streamingHC_ringBuffer.c',
19  'blockStreaming_lineByLine': 'blockStreaming_lineByLine.c',
20  'frameCompress': 'frameCompress.c',
21  'bench_functions': 'bench_functions.c',
22  'simple_buffer': 'simple_buffer.c',
23}
24
25foreach e, src : examples
26  executable(
27    e,
28    lz4_source_root / 'examples' / src,
29    dependencies: [liblz4_internal_dep],
30    install: false
31  )
32endforeach
33