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/gd/rust/shim:init_flags_bridge_header",
31    "//bt/system/stack/mmc/proto:mmc_config_proto",
32  ]
33  sources = [ "a2dp_aac_mmc_encoder.cc" ]
34  libs = [
35    # Following are for AAC using FFmpeg
36    "avcodec",
37    "avutil",
38  ]
39}
40
41source_set("libcodec_server_hfp_lc3"){
42  configs += [
43    "//bt/system/stack/mmc:target_defaults",
44    "//bt/system/log:log_defaults",
45  ]
46  include_dirs = [
47    "//bt/system",
48    "//bt/system/include",
49    "//bt/system/stack",
50    "//bt/system/stack/include",
51  ]
52  libs = [
53    "lc3",
54  ]
55
56  deps = [
57    "//bt/system/stack/mmc/proto:mmc_config_proto",
58    "//bt/system/osi",
59  ]
60  sources = [
61    "hfp_lc3_mmc_encoder.cc",
62    "hfp_lc3_mmc_decoder.cc",
63  ]
64}
65