blob: 498e45a26ee22cf2b5489bb8a52035204fe018fb [file] [log] [blame]
kwiberg96da0112017-06-30 04:23:22 -07001# 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_static_library("audio_encoder_opus_config") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
kwiberg96da0112017-06-30 04:23:22 -070017 sources = [
Alex Loikoe5b94162019-04-08 17:19:41 +020018 "audio_decoder_multi_channel_opus_config.h",
kwiberg96da0112017-06-30 04:23:22 -070019 "audio_encoder_opus_config.cc",
20 "audio_encoder_opus_config.h",
21 ]
22 deps = [
ehmaldonadof6a861a2017-07-19 10:40:47 -070023 "../../../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +020024 "../../../rtc_base/system:rtc_export",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020025 "//third_party/abseil-cpp/absl/types:optional",
kwiberg96da0112017-06-30 04:23:22 -070026 ]
27 defines = []
28 if (rtc_opus_variable_complexity) {
29 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
30 } else {
31 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
32 }
33}
34
35rtc_source_set("audio_encoder_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000036 visibility = [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +020037 poisonous = [ "audio_codecs" ]
Karl Wiberg7275e182017-10-25 09:57:40 +020038 public = [
kwiberg96da0112017-06-30 04:23:22 -070039 "audio_encoder_opus.h",
40 ]
Karl Wiberg7275e182017-10-25 09:57:40 +020041 sources = [
42 "audio_encoder_opus.cc",
43 ]
kwiberg96da0112017-06-30 04:23:22 -070044 deps = [
45 ":audio_encoder_opus_config",
46 "..:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -070047 "../../../modules/audio_coding:webrtc_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -070048 "../../../rtc_base:rtc_base_approved",
Mirko Bonadei3d255302018-10-11 10:50:45 +020049 "../../../rtc_base/system:rtc_export",
Niels Möller2edab4c2018-10-22 09:48:08 +020050 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020051 "//third_party/abseil-cpp/absl/types:optional",
kwiberg96da0112017-06-30 04:23:22 -070052 ]
53}
kwiberg96d74bb2017-06-30 05:24:56 -070054
55rtc_static_library("audio_decoder_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000056 visibility = [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +020057 poisonous = [ "audio_codecs" ]
kwiberg96d74bb2017-06-30 05:24:56 -070058 sources = [
59 "audio_decoder_opus.cc",
60 "audio_decoder_opus.h",
61 ]
62 deps = [
63 "..:audio_codecs_api",
kwiberg96d74bb2017-06-30 05:24:56 -070064 "../../../modules/audio_coding:webrtc_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -070065 "../../../rtc_base:rtc_base_approved",
Mirko Bonadei3d255302018-10-11 10:50:45 +020066 "../../../rtc_base/system:rtc_export",
Karl Wiberg918f50c2018-07-05 11:40:33 +020067 "//third_party/abseil-cpp/absl/memory",
Niels Möller2edab4c2018-10-22 09:48:08 +020068 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020069 "//third_party/abseil-cpp/absl/types:optional",
kwiberg96d74bb2017-06-30 05:24:56 -070070 ]
71}
Alex Loikoe5b94162019-04-08 17:19:41 +020072
73rtc_static_library("audio_decoder_multiopus") {
74 visibility = [ "*" ]
75 poisonous = [ "audio_codecs" ]
76 sources = [
77 "audio_decoder_multi_channel_opus.cc",
78 "audio_decoder_multi_channel_opus.h",
79 ]
80 deps = [
81 ":audio_encoder_opus_config",
82 "..:audio_codecs_api",
83 "../../../modules/audio_coding:webrtc_multiopus",
84 "../../../rtc_base:rtc_base_approved",
85 "../../../rtc_base/system:rtc_export",
86 "//third_party/abseil-cpp/absl/memory",
87 "//third_party/abseil-cpp/absl/strings",
88 "//third_party/abseil-cpp/absl/types:optional",
89 ]
90}