xref: /btstack/3rd-party/lc3-google/tools/meson.build (revision 6897da5c53aac5b1f90f41b5b15d0bd43d61dfff)
1*6897da5cSDirk Helbig#  Copyright © 2022 Intel Corporation
2*6897da5cSDirk Helbig#
3*6897da5cSDirk Helbig#  Licensed under the Apache License, Version 2.0 (the "License");
4*6897da5cSDirk Helbig#  you may not use this file except in compliance with the License.
5*6897da5cSDirk Helbig#  You may obtain a copy of the License at:
6*6897da5cSDirk Helbig#
7*6897da5cSDirk Helbig#  http://www.apache.org/licenses/LICENSE-2.0
8*6897da5cSDirk Helbig#
9*6897da5cSDirk Helbig#  Unless required by applicable law or agreed to in writing, software
10*6897da5cSDirk Helbig#  distributed under the License is distributed on an "AS IS" BASIS,
11*6897da5cSDirk Helbig#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*6897da5cSDirk Helbig#  See the License for the specific language governing permissions and
13*6897da5cSDirk Helbig#  limitations under the License.
14*6897da5cSDirk Helbig
15*6897da5cSDirk Helbiginc = include_directories('../include')
16*6897da5cSDirk Helbig
17*6897da5cSDirk Helbiglc3toolslib = static_library('lc3toolslib',
18*6897da5cSDirk Helbig    ['lc3bin.c', 'wave.c'],
19*6897da5cSDirk Helbig    link_with: lc3lib,
20*6897da5cSDirk Helbig    include_directories: inc,
21*6897da5cSDirk Helbig    dependencies: m_dep,
22*6897da5cSDirk Helbig)
23*6897da5cSDirk Helbig
24*6897da5cSDirk Helbigexecutable('elc3', ['elc3.c'],
25*6897da5cSDirk Helbig    link_with : lc3toolslib,
26*6897da5cSDirk Helbig    include_directories: inc,
27*6897da5cSDirk Helbig    install: true,
28*6897da5cSDirk Helbig    install_rpath: join_paths(get_option('prefix'), get_option('libdir')))
29*6897da5cSDirk Helbig
30*6897da5cSDirk Helbigexecutable('dlc3', ['dlc3.c'],
31*6897da5cSDirk Helbig    link_with : lc3toolslib,
32*6897da5cSDirk Helbig    include_directories: inc,
33*6897da5cSDirk Helbig    install: true,
34*6897da5cSDirk Helbig    install_rpath: join_paths(get_option('prefix'), get_option('libdir')))
35