blob: 29a68ff74e8f97231392d2ce829d56d0cfd18c7e [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 = [
ehmaldonadof6a861a2017-07-19 10:40:47 -070021 "../../../rtc_base:rtc_base_approved",
kwiberg96da0112017-06-30 04:23:22 -070022 ]
23 defines = []
24 if (rtc_opus_variable_complexity) {
25 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
26 } else {
27 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
28 }
29}
30
31rtc_source_set("audio_encoder_opus") {
32 sources = [
33 "audio_encoder_opus.h",
34 ]
35 deps = [
36 ":audio_encoder_opus_config",
37 "..:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -070038 "../../../modules/audio_coding:webrtc_opus",
sakalbcc655c2017-08-22 08:13:37 -070039 "../../../rtc_base:protobuf_utils", # TODO(kwiberg): Why is this needed?
ehmaldonadof6a861a2017-07-19 10:40:47 -070040 "../../../rtc_base:rtc_base_approved",
kwiberg96da0112017-06-30 04:23:22 -070041 ]
42}
kwiberg96d74bb2017-06-30 05:24:56 -070043
44rtc_static_library("audio_decoder_opus") {
45 sources = [
46 "audio_decoder_opus.cc",
47 "audio_decoder_opus.h",
48 ]
49 deps = [
50 "..:audio_codecs_api",
51 "../../..:webrtc_common",
kwiberg96d74bb2017-06-30 05:24:56 -070052 "../../../modules/audio_coding:webrtc_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -070053 "../../../rtc_base:rtc_base_approved",
kwiberg96d74bb2017-06-30 05:24:56 -070054 ]
55}