1#
2#  Copyright 2023 The Android Open Source Project
3#
4#  Licensed under the Apache License, Version 2.0 (the "License");
5#  you may not use this file except in compliance with the License.
6#  You may obtain a copy of the License at:
7#
8#  http://www.apache.org/licenses/LICENSE-2.0
9#
10#  Unless required by applicable law or agreed to in writing, software
11#  distributed under the License is distributed on an "AS IS" BASIS,
12#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13#  See the License for the specific language governing permissions and
14#  limitations under the License.
15#
16
17source_set("libcodec_server_a2dp_aac") {
18  configs += [
19    "//bt/system:target_defaults",
20    "//bt/system/stack/mmc:target_defaults",
21    "//bt/system/log:log_defaults",
22  ]
23  include_dirs = [
24    "//bt/system",
25    "//bt/system/include",
26    "//bt/system/stack",
27    "//bt/system/stack/include",
28  ]
29  deps = [
30    "//bt/system/stack/mmc/proto:mmc_config_proto",
31  ]
32  sources = [ "a2dp_aac_mmc_encoder.cc" ]
33  libs = [
34    # Following are for AAC using FFmpeg
35    "avcodec",
36    "avutil",
37  ]
38}
39
40source_set("libcodec_server_hfp_lc3"){
41  configs += [
42    "//bt/system/stack/mmc:target_defaults",
43    "//bt/system/log:log_defaults",
44  ]
45  include_dirs = [
46    "//bt/system",
47    "//bt/system/include",
48    "//bt/system/stack",
49    "//bt/system/stack/include",
50  ]
51  libs = [
52    "lc3",
53  ]
54
55  deps = [
56    "//bt/system/stack/mmc/proto:mmc_config_proto",
57    "//bt/system/osi",
58  ]
59  sources = [
60    "hfp_lc3_mmc_encoder.cc",
61    "hfp_lc3_mmc_decoder.cc",
62  ]
63}
64