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") { | 12 source_set("rent_a_codec") { |
13 sources = [ | 13 sources = [ |
14 "acm2/acm_codec_database.cc", | 14 "acm2/acm_codec_database.cc", |
15 "acm2/acm_codec_database.h", | 15 "acm2/acm_codec_database.h", |
16 "acm2/rent_a_codec.cc", | 16 "acm2/rent_a_codec.cc", |
17 "acm2/rent_a_codec.h", | 17 "acm2/rent_a_codec.h", |
18 ] | 18 ] |
19 configs += [ "../..:common_config" ] | 19 configs += [ "../..:common_config" ] |
20 public_configs = [ "../..:common_inherited_config" ] | 20 public_configs = [ "../..:common_inherited_config" ] |
21 deps = [ | 21 deps = [ |
22 ":cng", | |
23 ":g711", | |
24 ":pcm16b", | |
22 "../..:webrtc_common", | 25 "../..:webrtc_common", |
23 ] | 26 ] |
24 | 27 |
25 defines = [] | 28 defines = [] |
26 if (rtc_include_ilbc) { | 29 if (rtc_include_ilbc) { |
27 defines += [ "WEBRTC_CODEC_ILBC" ] | 30 defines += [ "WEBRTC_CODEC_ILBC" ] |
kjellander_webrtc
2016/01/19 07:51:12
There's quite some code duplication now. Do you th
kwiberg-webrtc
2016/01/19 10:58:39
Better now?
| |
31 deps += [ ":ilbc" ] | |
28 } | 32 } |
29 if (rtc_include_opus) { | 33 if (rtc_include_opus) { |
30 defines += [ "WEBRTC_CODEC_OPUS" ] | 34 defines += [ "WEBRTC_CODEC_OPUS" ] |
35 deps += [ ":webrtc_opus" ] | |
31 } | 36 } |
32 if (!build_with_mozilla) { | 37 if (!build_with_mozilla) { |
33 if (current_cpu == "arm") { | 38 if (current_cpu == "arm") { |
34 defines += [ "WEBRTC_CODEC_ISACFX" ] | 39 defines += [ "WEBRTC_CODEC_ISACFX" ] |
40 deps += [ ":isac_fix" ] | |
35 } else { | 41 } else { |
36 defines += [ "WEBRTC_CODEC_ISAC" ] | 42 defines += [ "WEBRTC_CODEC_ISAC" ] |
43 deps += [ ":isac" ] | |
37 } | 44 } |
38 defines += [ "WEBRTC_CODEC_G722" ] | 45 defines += [ "WEBRTC_CODEC_G722" ] |
46 deps += [ ":g722" ] | |
39 } | 47 } |
40 if (!build_with_mozilla && !build_with_chromium) { | 48 if (!build_with_mozilla && !build_with_chromium) { |
41 defines += [ "WEBRTC_CODEC_RED" ] | 49 defines += [ "WEBRTC_CODEC_RED" ] |
50 deps += [ ":red" ] | |
42 } | 51 } |
43 } | 52 } |
44 | 53 |
45 config("audio_coding_config") { | 54 config("audio_coding_config") { |
46 include_dirs = [ | 55 include_dirs = [ |
47 "include", | 56 "include", |
48 "../include", | 57 "../include", |
49 ] | 58 ] |
50 } | 59 } |
51 | 60 |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
861 defines += [ "WEBRTC_CODEC_ISACFX" ] | 870 defines += [ "WEBRTC_CODEC_ISACFX" ] |
862 deps += [ ":isac_fix" ] | 871 deps += [ ":isac_fix" ] |
863 } else { | 872 } else { |
864 defines += [ "WEBRTC_CODEC_ISAC" ] | 873 defines += [ "WEBRTC_CODEC_ISAC" ] |
865 deps += [ ":isac" ] | 874 deps += [ ":isac" ] |
866 } | 875 } |
867 defines += [ "WEBRTC_CODEC_G722" ] | 876 defines += [ "WEBRTC_CODEC_G722" ] |
868 deps += [ ":g722" ] | 877 deps += [ ":g722" ] |
869 } | 878 } |
870 } | 879 } |
OLD | NEW |