blob: 9d07c95c91c297ec56a072fe534ffa662b3a2da9 [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") {
16 sources = [
17 "audio_encoder_opus_config.cc",
18 "audio_encoder_opus_config.h",
19 ]
20 deps = [
kwiberg84f6a3f2017-09-05 08:43:13 -070021 "../..:optional",
ehmaldonadof6a861a2017-07-19 10:40:47 -070022 "../../../rtc_base:rtc_base_approved",
kwiberg96da0112017-06-30 04:23:22 -070023 ]
24 defines = []
25 if (rtc_opus_variable_complexity) {
26 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
27 } else {
28 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
29 }
30}
31
32rtc_source_set("audio_encoder_opus") {
Karl Wiberg7275e182017-10-25 09:57:40 +020033 public = [
kwiberg96da0112017-06-30 04:23:22 -070034 "audio_encoder_opus.h",
35 ]
Karl Wiberg7275e182017-10-25 09:57:40 +020036 sources = [
37 "audio_encoder_opus.cc",
38 ]
kwiberg96da0112017-06-30 04:23:22 -070039 deps = [
40 ":audio_encoder_opus_config",
41 "..:audio_codecs_api",
Karl Wiberg7275e182017-10-25 09:57:40 +020042 "../..:optional",
kwiberg96da0112017-06-30 04:23:22 -070043 "../../../modules/audio_coding:webrtc_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -070044 "../../../rtc_base:rtc_base_approved",
kwiberg96da0112017-06-30 04:23:22 -070045 ]
kwiberge5eb7242017-08-25 03:10:50 -070046 public_deps = [
47 # TODO(kwiberg): Remove this public_dep when bug 7847 has been fixed.
48 "../../../rtc_base:protobuf_utils",
49 ]
kwiberg96da0112017-06-30 04:23:22 -070050}
kwiberg96d74bb2017-06-30 05:24:56 -070051
52rtc_static_library("audio_decoder_opus") {
53 sources = [
54 "audio_decoder_opus.cc",
55 "audio_decoder_opus.h",
56 ]
57 deps = [
58 "..:audio_codecs_api",
kwiberg84f6a3f2017-09-05 08:43:13 -070059 "../..:optional",
kwiberg96d74bb2017-06-30 05:24:56 -070060 "../../..: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",
kwiberg96d74bb2017-06-30 05:24:56 -070063 ]
64}