| OLD | NEW |
| 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../../webrtc.gni") | 9 import("../../webrtc.gni") |
| 10 if (is_android) { | 10 if (is_android) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 ] | 31 ] |
| 32 } | 32 } |
| 33 | 33 |
| 34 rtc_static_library("builtin_audio_decoder_factory") { | 34 rtc_static_library("builtin_audio_decoder_factory") { |
| 35 sources = [ | 35 sources = [ |
| 36 "builtin_audio_decoder_factory.cc", | 36 "builtin_audio_decoder_factory.cc", |
| 37 "builtin_audio_decoder_factory.h", | 37 "builtin_audio_decoder_factory.h", |
| 38 ] | 38 ] |
| 39 deps = [ | 39 deps = [ |
| 40 ":audio_codecs_api", | 40 ":audio_codecs_api", |
| 41 "../../modules/audio_coding:builtin_audio_decoder_factory_internal", |
| 41 "../../rtc_base:rtc_base_approved", | 42 "../../rtc_base:rtc_base_approved", |
| 42 "L16:audio_decoder_L16", | |
| 43 "g711:audio_decoder_g711", | |
| 44 ] | 43 ] |
| 45 defines = [] | |
| 46 if (rtc_include_ilbc) { | |
| 47 deps += [ "ilbc:audio_decoder_ilbc" ] | |
| 48 defines += [ "WEBRTC_USE_BUILTIN_ILBC=1" ] | |
| 49 } else { | |
| 50 defines += [ "WEBRTC_USE_BUILTIN_ILBC=0" ] | |
| 51 } | |
| 52 if (rtc_include_opus) { | |
| 53 deps += [ "opus:audio_decoder_opus" ] | |
| 54 defines += [ "WEBRTC_USE_BUILTIN_OPUS=1" ] | |
| 55 } else { | |
| 56 defines += [ "WEBRTC_USE_BUILTIN_OPUS=0" ] | |
| 57 } | |
| 58 if (build_with_mozilla) { | |
| 59 defines += [ | |
| 60 "WEBRTC_USE_BUILTIN_G722=0", | |
| 61 "WEBRTC_USE_BUILTIN_ISAC_FIX=0", | |
| 62 "WEBRTC_USE_BUILTIN_ISAC_FLOAT=0", | |
| 63 ] | |
| 64 } else { | |
| 65 if (current_cpu == "arm") { | |
| 66 deps += [ "isac:audio_decoder_isac_fix" ] | |
| 67 defines += [ | |
| 68 "WEBRTC_USE_BUILTIN_ISAC_FIX=1", | |
| 69 "WEBRTC_USE_BUILTIN_ISAC_FLOAT=0", | |
| 70 ] | |
| 71 } else { | |
| 72 deps += [ "isac:audio_decoder_isac_float" ] | |
| 73 defines += [ | |
| 74 "WEBRTC_USE_BUILTIN_ISAC_FIX=0", | |
| 75 "WEBRTC_USE_BUILTIN_ISAC_FLOAT=1", | |
| 76 ] | |
| 77 } | |
| 78 deps += [ "g722:audio_decoder_g722" ] | |
| 79 defines += [ "WEBRTC_USE_BUILTIN_G722=1" ] | |
| 80 } | |
| 81 } | 44 } |
| 82 | 45 |
| 83 rtc_static_library("builtin_audio_encoder_factory") { | 46 rtc_static_library("builtin_audio_encoder_factory") { |
| 84 sources = [ | 47 sources = [ |
| 85 "builtin_audio_encoder_factory.cc", | 48 "builtin_audio_encoder_factory.cc", |
| 86 "builtin_audio_encoder_factory.h", | 49 "builtin_audio_encoder_factory.h", |
| 87 ] | 50 ] |
| 88 deps = [ | 51 deps = [ |
| 89 ":audio_codecs_api", | 52 ":audio_codecs_api", |
| 53 "../../modules/audio_coding:builtin_audio_encoder_factory_internal", |
| 90 "../../rtc_base:rtc_base_approved", | 54 "../../rtc_base:rtc_base_approved", |
| 91 "L16:audio_encoder_L16", | |
| 92 "g711:audio_encoder_g711", | |
| 93 ] | 55 ] |
| 94 defines = [] | |
| 95 if (rtc_include_ilbc) { | |
| 96 deps += [ "ilbc:audio_encoder_ilbc" ] | |
| 97 defines += [ "WEBRTC_USE_BUILTIN_ILBC=1" ] | |
| 98 } else { | |
| 99 defines += [ "WEBRTC_USE_BUILTIN_ILBC=0" ] | |
| 100 } | |
| 101 if (rtc_include_opus) { | |
| 102 deps += [ "opus:audio_encoder_opus" ] | |
| 103 defines += [ "WEBRTC_USE_BUILTIN_OPUS=1" ] | |
| 104 } else { | |
| 105 defines += [ "WEBRTC_USE_BUILTIN_OPUS=0" ] | |
| 106 } | |
| 107 if (build_with_mozilla) { | |
| 108 defines += [ | |
| 109 "WEBRTC_USE_BUILTIN_G722=0", | |
| 110 "WEBRTC_USE_BUILTIN_ISAC_FIX=0", | |
| 111 "WEBRTC_USE_BUILTIN_ISAC_FLOAT=0", | |
| 112 ] | |
| 113 } else { | |
| 114 if (current_cpu == "arm") { | |
| 115 deps += [ "isac:audio_encoder_isac_fix" ] | |
| 116 defines += [ | |
| 117 "WEBRTC_USE_BUILTIN_ISAC_FIX=1", | |
| 118 "WEBRTC_USE_BUILTIN_ISAC_FLOAT=0", | |
| 119 ] | |
| 120 } else { | |
| 121 deps += [ "isac:audio_encoder_isac_float" ] | |
| 122 defines += [ | |
| 123 "WEBRTC_USE_BUILTIN_ISAC_FIX=0", | |
| 124 "WEBRTC_USE_BUILTIN_ISAC_FLOAT=1", | |
| 125 ] | |
| 126 } | |
| 127 deps += [ "g722:audio_encoder_g722" ] | |
| 128 defines += [ "WEBRTC_USE_BUILTIN_G722=1" ] | |
| 129 } | |
| 130 } | 56 } |
| OLD | NEW |