Debian Codegraph @

src/meson.build

raw
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
15 inc = include_directories('../include')
16
17 lc3_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
32 lc3lib = library('lc3',
33 lc3_sources,
34 dependencies: m_dep,
35 include_directories: inc,
36 gnu_symbol_visibility: 'hidden',
37 soversion: 1,
38 install: true)
39
40 lc3_install_headers = [
41 '../include/lc3_private.h',
42 '../include/lc3.h',
43 '../include/lc3_cpp.h'
44 ]
45
46 install_headers(lc3_install_headers)
47
48 pkg_mod = import('pkgconfig')
49
50 pkg_mod.generate(libraries : lc3lib,
51 name : 'liblc3',
52 filebase : 'lc3',
53 description : 'LC3 codec library')
54
55 #Declare dependency
56 liblc3_dep = declare_dependency(
57 link_with : lc3lib,
58 include_directories : inc)
59
60 if meson.version().version_compare('>= 0.54.0')
61 meson.override_dependency('liblc3', liblc3_dep)
62 endif