blob: 13a4b5d3ee1b60341bf7e1b1793ae62e3ce4f27d [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 = [
kwiberg84f6a3f2017-09-05 08:43:13 -070022 "../..:optional",
ehmaldonadof6a861a2017-07-19 10:40:47 -070023 "../../../rtc_base:rtc_base_approved",
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 Wiberg7275e182017-10-25 09:57:40 +020035 public = [
kwiberg96da0112017-06-30 04:23:22 -070036 "audio_encoder_opus.h",
37 ]
Karl Wiberg7275e182017-10-25 09:57:40 +020038 sources = [
39 "audio_encoder_opus.cc",
40 ]
kwiberg96da0112017-06-30 04:23:22 -070041 deps = [
42 ":audio_encoder_opus_config",
43 "..:audio_codecs_api",
Karl Wiberg7275e182017-10-25 09:57:40 +020044 "../..:optional",
kwiberg96da0112017-06-30 04:23:22 -070045 "../../../modules/audio_coding:webrtc_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -070046 "../../../rtc_base:rtc_base_approved",
kwiberg96da0112017-06-30 04:23:22 -070047 ]
kwiberge5eb7242017-08-25 03:10:50 -070048 public_deps = [
49 # TODO(kwiberg): Remove this public_dep when bug 7847 has been fixed.
50 "../../../rtc_base:protobuf_utils",
51 ]
kwiberg96da0112017-06-30 04:23:22 -070052}
kwiberg96d74bb2017-06-30 05:24:56 -070053
54rtc_static_library("audio_decoder_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000055 visibility = [ "*" ]
kwiberg96d74bb2017-06-30 05:24:56 -070056 sources = [
57 "audio_decoder_opus.cc",
58 "audio_decoder_opus.h",
59 ]
60 deps = [
61 "..:audio_codecs_api",
kwiberg84f6a3f2017-09-05 08:43:13 -070062 "../..:optional",
kwiberg96d74bb2017-06-30 05:24:56 -070063 "../../..:webrtc_common",
kwiberg96d74bb2017-06-30 05:24:56 -070064 "../../../modules/audio_coding:webrtc_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -070065 "../../../rtc_base:rtc_base_approved",
kwiberg96d74bb2017-06-30 05:24:56 -070066 ]
67}