aboutsummaryrefslogtreecommitdiff
path: root/contrib/meson/meson/examples/meson.build
blob: 65f54ca09d6a1386463cbe18a2dad2843c3c0fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# #############################################################################
# Copyright (c) 2018-present        lzutao <taolzu(at)gmail.com>
# Copyright (c) 2022-present        Tristan Partin <tristan(at)partin.io>
# 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).
# #############################################################################

lz4_source_root = '../../../..'

examples = {
  'printVersion': 'printVersion.c',
  'doubleBuffer': 'blockStreaming_doubleBuffer.c',
  'dictionaryRandomAccess': 'dictionaryRandomAccess.c',
  'ringBuffer': 'blockStreaming_ringBuffer.c',
  'ringBufferHC': 'HCStreaming_ringBuffer.c',
  'lineCompress': 'blockStreaming_lineByLine.c',
  'frameCompress': 'frameCompress.c',
  'compressFunctions': 'compress_functions.c',
  'simpleBuffer': 'simple_buffer.c',
}

foreach e, src : examples
  executable(
    e,
    lz4_source_root / 'examples' / src,
    dependencies: [liblz4_internal_dep],
    install: false
  )
endforeach