blob: 800abbe279bfe3a65d16bb637bcdff053f092e7a [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 = [
18 "audio_encoder_opus_config.cc",
19 "audio_encoder_opus_config.h",
20 ]
21 deps = [
ehmaldonadof6a861a2017-07-19 10:40:47 -070022 "../../../rtc_base:rtc_base_approved",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020023 "//third_party/abseil-cpp/absl/types:optional",
kwiberg96da0112017-06-30 04:23:22 -070024 ]
25 defines = []
26 if (rtc_opus_variable_complexity) {
27 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
28 } else {
29 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
30 }
31}
32
33rtc_source_set("audio_encoder_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000034 visibility = [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +020035 poisonous = [ "audio_codecs" ]
Karl Wiberg7275e182017-10-25 09:57:40 +020036 public = [
kwiberg96da0112017-06-30 04:23:22 -070037 "audio_encoder_opus.h",
38 ]
Karl Wiberg7275e182017-10-25 09:57:40 +020039 sources = [
40 "audio_encoder_opus.cc",
41 ]
kwiberg96da0112017-06-30 04:23:22 -070042 deps = [
43 ":audio_encoder_opus_config",
44 "..:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -070045 "../../../modules/audio_coding:webrtc_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -070046 "../../../rtc_base:rtc_base_approved",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020047 "//third_party/abseil-cpp/absl/types:optional",
kwiberg96da0112017-06-30 04:23:22 -070048 ]
49}
kwiberg96d74bb2017-06-30 05:24:56 -070050
51rtc_static_library("audio_decoder_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000052 visibility = [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +020053 poisonous = [ "audio_codecs" ]
kwiberg96d74bb2017-06-30 05:24:56 -070054 sources = [
55 "audio_decoder_opus.cc",
56 "audio_decoder_opus.h",
57 ]
58 deps = [
59 "..:audio_codecs_api",
60 "../../..:webrtc_common",
kwiberg96d74bb2017-06-30 05:24:56 -070061 "../../../modules/audio_coding:webrtc_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -070062 "../../../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +020063 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020064 "//third_party/abseil-cpp/absl/types:optional",
kwiberg96d74bb2017-06-30 05:24:56 -070065 ]
66}