You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.2 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # 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. import("../../../webrtc.gni")
  9. if (is_android) {
  10. import("//build/config/android/config.gni")
  11. import("//build/config/android/rules.gni")
  12. }
  13. rtc_library("audio_encoder_opus_config") {
  14. visibility = [ "*" ]
  15. sources = [
  16. "audio_encoder_multi_channel_opus_config.cc",
  17. "audio_encoder_multi_channel_opus_config.h",
  18. "audio_encoder_opus_config.cc",
  19. "audio_encoder_opus_config.h",
  20. ]
  21. deps = [
  22. "../../../rtc_base:rtc_base_approved",
  23. "../../../rtc_base/system:rtc_export",
  24. "//third_party/abseil-cpp/absl/types:optional",
  25. ]
  26. defines = []
  27. if (rtc_opus_variable_complexity) {
  28. defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
  29. } else {
  30. defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
  31. }
  32. }
  33. rtc_source_set("audio_decoder_opus_config") {
  34. visibility = [ "*" ]
  35. sources = [
  36. "audio_decoder_multi_channel_opus_config.h",
  37. ]
  38. }
  39. rtc_library("audio_encoder_opus") {
  40. visibility = [ "*" ]
  41. poisonous = [ "audio_codecs" ]
  42. public = [
  43. "audio_encoder_opus.h",
  44. ]
  45. sources = [
  46. "audio_encoder_opus.cc",
  47. ]
  48. deps = [
  49. ":audio_encoder_opus_config",
  50. "..:audio_codecs_api",
  51. "../../../modules/audio_coding:webrtc_opus",
  52. "../../../rtc_base:rtc_base_approved",
  53. "../../../rtc_base/system:rtc_export",
  54. "//third_party/abseil-cpp/absl/strings",
  55. "//third_party/abseil-cpp/absl/types:optional",
  56. ]
  57. }
  58. rtc_library("audio_decoder_opus") {
  59. visibility = [ "*" ]
  60. poisonous = [ "audio_codecs" ]
  61. sources = [
  62. "audio_decoder_opus.cc",
  63. "audio_decoder_opus.h",
  64. ]
  65. deps = [
  66. "..:audio_codecs_api",
  67. "../../../modules/audio_coding:webrtc_opus",
  68. "../../../rtc_base:rtc_base_approved",
  69. "../../../rtc_base/system:rtc_export",
  70. "//third_party/abseil-cpp/absl/strings",
  71. "//third_party/abseil-cpp/absl/types:optional",
  72. ]
  73. }
  74. rtc_library("audio_encoder_multiopus") {
  75. visibility = [ "*" ]
  76. poisonous = [ "audio_codecs" ]
  77. public = [
  78. "audio_encoder_multi_channel_opus.h",
  79. ]
  80. sources = [
  81. "audio_encoder_multi_channel_opus.cc",
  82. ]
  83. deps = [
  84. "..:audio_codecs_api",
  85. "../../../modules/audio_coding:webrtc_multiopus",
  86. "../../../rtc_base:rtc_base_approved",
  87. "../../../rtc_base/system:rtc_export",
  88. "../opus:audio_encoder_opus_config",
  89. "//third_party/abseil-cpp/absl/types:optional",
  90. ]
  91. }
  92. rtc_library("audio_decoder_multiopus") {
  93. visibility = [ "*" ]
  94. poisonous = [ "audio_codecs" ]
  95. sources = [
  96. "audio_decoder_multi_channel_opus.cc",
  97. "audio_decoder_multi_channel_opus.h",
  98. ]
  99. deps = [
  100. ":audio_decoder_opus_config",
  101. "..:audio_codecs_api",
  102. "../../../modules/audio_coding:webrtc_multiopus",
  103. "../../../rtc_base:rtc_base_approved",
  104. "../../../rtc_base/system:rtc_export",
  105. "//third_party/abseil-cpp/absl/memory",
  106. "//third_party/abseil-cpp/absl/strings",
  107. "//third_party/abseil-cpp/absl/types:optional",
  108. ]
  109. }