OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 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("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("../../build/webrtc.gni") | 10 import("../../build/webrtc.gni") |
11 | 11 |
| 12 source_set("rent_a_codec") { |
| 13 sources = [ |
| 14 "main/acm2/acm_codec_database.cc", |
| 15 "main/acm2/acm_codec_database.h", |
| 16 "main/acm2/rent_a_codec.cc", |
| 17 "main/acm2/rent_a_codec.h", |
| 18 ] |
| 19 configs += [ "../..:common_config" ] |
| 20 public_configs = [ "../..:common_inherited_config" ] |
| 21 deps = [ |
| 22 "../..:webrtc_common", |
| 23 ] |
| 24 |
| 25 defines = [] |
| 26 if (rtc_include_opus) { |
| 27 defines += [ "WEBRTC_CODEC_OPUS" ] |
| 28 } |
| 29 if (!build_with_mozilla) { |
| 30 if (current_cpu == "arm") { |
| 31 defines += [ "WEBRTC_CODEC_ISACFX" ] |
| 32 } else { |
| 33 defines += [ "WEBRTC_CODEC_ISAC" ] |
| 34 } |
| 35 defines += [ "WEBRTC_CODEC_G722" ] |
| 36 } |
| 37 if (!build_with_mozilla && !build_with_chromium) { |
| 38 defines += [ |
| 39 "WEBRTC_CODEC_ILBC", |
| 40 "WEBRTC_CODEC_RED", |
| 41 ] |
| 42 } |
| 43 } |
| 44 |
12 config("audio_coding_config") { | 45 config("audio_coding_config") { |
13 include_dirs = [ | 46 include_dirs = [ |
14 "main/interface", | 47 "main/interface", |
15 "../interface", | 48 "../interface", |
16 ] | 49 ] |
17 } | 50 } |
18 | 51 |
19 source_set("audio_coding") { | 52 source_set("audio_coding") { |
20 sources = [ | 53 sources = [ |
21 "main/acm2/acm_codec_database.cc", | |
22 "main/acm2/acm_codec_database.h", | |
23 "main/acm2/acm_common_defs.h", | 54 "main/acm2/acm_common_defs.h", |
24 "main/acm2/acm_receiver.cc", | 55 "main/acm2/acm_receiver.cc", |
25 "main/acm2/acm_receiver.h", | 56 "main/acm2/acm_receiver.h", |
26 "main/acm2/acm_resampler.cc", | 57 "main/acm2/acm_resampler.cc", |
27 "main/acm2/acm_resampler.h", | 58 "main/acm2/acm_resampler.h", |
28 "main/acm2/audio_coding_module.cc", | 59 "main/acm2/audio_coding_module.cc", |
29 "main/acm2/audio_coding_module_impl.cc", | 60 "main/acm2/audio_coding_module_impl.cc", |
30 "main/acm2/audio_coding_module_impl.h", | 61 "main/acm2/audio_coding_module_impl.h", |
31 "main/acm2/call_statistics.cc", | 62 "main/acm2/call_statistics.cc", |
32 "main/acm2/call_statistics.h", | 63 "main/acm2/call_statistics.h", |
(...skipping 29 matching lines...) Expand all Loading... |
62 # Suppress warnings from Chrome's Clang plugins. | 93 # Suppress warnings from Chrome's Clang plugins. |
63 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 94 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
64 configs -= [ "//build/config/clang:find_bad_constructs" ] | 95 configs -= [ "//build/config/clang:find_bad_constructs" ] |
65 } | 96 } |
66 | 97 |
67 deps = [ | 98 deps = [ |
68 ":cng", | 99 ":cng", |
69 ":g711", | 100 ":g711", |
70 ":neteq", | 101 ":neteq", |
71 ":pcm16b", | 102 ":pcm16b", |
| 103 ":rent_a_codec", |
72 "../..:rtc_event_log", | 104 "../..:rtc_event_log", |
73 "../..:webrtc_common", | 105 "../..:webrtc_common", |
74 "../../common_audio", | 106 "../../common_audio", |
75 "../../system_wrappers", | 107 "../../system_wrappers", |
76 ] | 108 ] |
77 | 109 |
78 if (rtc_include_opus) { | 110 if (rtc_include_opus) { |
79 defines += [ "WEBRTC_CODEC_OPUS" ] | 111 defines += [ "WEBRTC_CODEC_OPUS" ] |
80 deps += [ ":webrtc_opus" ] | 112 deps += [ ":webrtc_opus" ] |
81 } | 113 } |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 deps += [ ":isac" ] | 858 deps += [ ":isac" ] |
827 } | 859 } |
828 defines += [ "WEBRTC_CODEC_G722" ] | 860 defines += [ "WEBRTC_CODEC_G722" ] |
829 deps += [ ":g722" ] | 861 deps += [ ":g722" ] |
830 } | 862 } |
831 if (!build_with_mozilla && !build_with_chromium) { | 863 if (!build_with_mozilla && !build_with_chromium) { |
832 defines += [ "WEBRTC_CODEC_ILBC" ] | 864 defines += [ "WEBRTC_CODEC_ILBC" ] |
833 deps += [ ":ilbc" ] | 865 deps += [ ":ilbc" ] |
834 } | 866 } |
835 } | 867 } |
OLD | NEW |