xref: /aosp_15_r20/external/lz4/build/meson/meson.build (revision 27162e4e17433d5aa7cb38e7b6a433a09405fc7f)
1# #############################################################################
2# Copyright (c) 2018-present    lzutao <taolzu(at)gmail.com>
3# All rights reserved.
4#
5# This source code is licensed under both the BSD-style license (found in the
6# LICENSE file in the root directory of this source tree) and the GPLv2 (found
7# in the COPYING file in the root directory of this source tree).
8# #############################################################################
9
10# This is a dummy meson file.
11# The intention is that it can be easily moved to the root of the project
12# (together with meson_options.txt) and packaged for wrapdb.
13
14project(
15  'lz4',
16  'c',
17  license: 'BSD-2-Clause-Patent AND GPL-2.0-or-later',
18  default_options: [
19    'c_std=c99',
20    'buildtype=release',
21    'warning_level=3'
22  ],
23  version: run_command(
24    find_program('GetLz4LibraryVersion.py'),
25    '../../lib/lz4.h',
26    check: true
27  ).stdout().strip(),
28  meson_version: '>=0.58.0'
29)
30
31subdir('meson')
32