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