1#  Copyright © 2022 Intel Corporation
2#
3#  Licensed under the Apache License, Version 2.0 (the "License");
4#  you may not use this file except in compliance with the License.
5#  You may obtain a copy of the License at:
6#
7#  http://www.apache.org/licenses/LICENSE-2.0
8#
9#  Unless required by applicable law or agreed to in writing, software
10#  distributed under the License is distributed on an "AS IS" BASIS,
11#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12#  See the License for the specific language governing permissions and
13#  limitations under the License.
14
15inc = include_directories('../include')
16
17lc3_sources = [
18	'attdet.c',
19	'bits.c',
20	'bwdet.c',
21	'energy.c',
22	'lc3.c',
23	'ltpf.c',
24	'mdct.c',
25	'plc.c',
26	'sns.c',
27	'spec.c',
28	'tables.c',
29	'tns.c'
30]
31
32lc3lib = library('lc3',
33		lc3_sources,
34		dependencies: m_dep,
35		include_directories: inc,
36		install: true)
37
38install_headers('../include/lc3.h', '../include/lc3_private.h')
39
40pkg_mod = import('pkgconfig')
41
42pkg_mod.generate(libraries : lc3lib,
43                 version : '0.1',
44                 name : 'liblc3',
45                 filebase : 'lc3',
46                 description : 'LC3 codec library')
47