xref: /aosp_15_r20/external/webrtc/api/audio_codecs/g722/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS.  All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("../../../webrtc.gni")
10if (is_android) {
11  import("//build/config/android/config.gni")
12  import("//build/config/android/rules.gni")
13}
14
15rtc_source_set("audio_encoder_g722_config") {
16  visibility = [ "*" ]
17  sources = [ "audio_encoder_g722_config.h" ]
18  deps = [ "..:audio_codecs_api" ]
19}
20
21rtc_library("audio_encoder_g722") {
22  visibility = [ "*" ]
23  poisonous = [ "audio_codecs" ]
24  sources = [
25    "audio_encoder_g722.cc",
26    "audio_encoder_g722.h",
27  ]
28  deps = [
29    ":audio_encoder_g722_config",
30    "..:audio_codecs_api",
31    "../../../api:field_trials_view",
32    "../../../modules/audio_coding:g722",
33    "../../../rtc_base:safe_conversions",
34    "../../../rtc_base:safe_minmax",
35    "../../../rtc_base:stringutils",
36    "../../../rtc_base/system:rtc_export",
37  ]
38  absl_deps = [
39    "//third_party/abseil-cpp/absl/strings",
40    "//third_party/abseil-cpp/absl/types:optional",
41  ]
42}
43
44rtc_library("audio_decoder_g722") {
45  visibility = [ "*" ]
46  poisonous = [ "audio_codecs" ]
47  sources = [
48    "audio_decoder_g722.cc",
49    "audio_decoder_g722.h",
50  ]
51  deps = [
52    "..:audio_codecs_api",
53    "../../../api:field_trials_view",
54    "../../../modules/audio_coding:g722",
55    "../../../rtc_base:safe_conversions",
56    "../../../rtc_base/system:rtc_export",
57  ]
58  absl_deps = [
59    "//third_party/abseil-cpp/absl/strings",
60    "//third_party/abseil-cpp/absl/types:optional",
61  ]
62}
63