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/webrtc.gni") |
| 10 import("audio_coding.gni") |
9 import("//build/config/arm.gni") | 11 import("//build/config/arm.gni") |
10 import("../../build/webrtc.gni") | 12 import("//testing/test.gni") |
| 13 import("//third_party/protobuf/proto_library.gni") |
11 | 14 |
12 audio_codec_deps = [ | 15 audio_codec_deps = [ |
13 ":cng", | 16 ":cng", |
14 ":g711", | 17 ":g711", |
15 ":pcm16b", | 18 ":pcm16b", |
16 ] | 19 ] |
17 audio_codec_defines = [] | |
18 if (rtc_include_ilbc) { | 20 if (rtc_include_ilbc) { |
19 audio_codec_defines += [ "WEBRTC_CODEC_ILBC" ] | |
20 audio_codec_deps += [ ":ilbc" ] | 21 audio_codec_deps += [ ":ilbc" ] |
21 } | 22 } |
22 if (rtc_include_opus) { | 23 if (rtc_include_opus) { |
23 audio_codec_defines += [ "WEBRTC_CODEC_OPUS" ] | |
24 audio_codec_deps += [ ":webrtc_opus" ] | 24 audio_codec_deps += [ ":webrtc_opus" ] |
25 } | 25 } |
26 if (!build_with_mozilla) { | 26 if (!build_with_mozilla) { |
27 if (current_cpu == "arm") { | 27 if (current_cpu == "arm") { |
28 audio_codec_defines += [ "WEBRTC_CODEC_ISACFX" ] | |
29 audio_codec_deps += [ ":isac_fix" ] | 28 audio_codec_deps += [ ":isac_fix" ] |
30 } else { | 29 } else { |
31 audio_codec_defines += [ "WEBRTC_CODEC_ISAC" ] | |
32 audio_codec_deps += [ ":isac" ] | 30 audio_codec_deps += [ ":isac" ] |
33 } | 31 } |
34 audio_codec_defines += [ "WEBRTC_CODEC_G722" ] | |
35 audio_codec_deps += [ ":g722" ] | 32 audio_codec_deps += [ ":g722" ] |
36 } | 33 } |
37 if (!build_with_mozilla && !build_with_chromium) { | 34 if (!build_with_mozilla && !build_with_chromium) { |
38 audio_codec_defines += [ "WEBRTC_CODEC_RED" ] | |
39 audio_codec_deps += [ ":red" ] | 35 audio_codec_deps += [ ":red" ] |
40 } | 36 } |
| 37 audio_coding_deps = audio_codec_deps + [ |
| 38 "../..:webrtc_common", |
| 39 "../../common_audio", |
| 40 "../../system_wrappers", |
| 41 ] |
41 | 42 |
42 source_set("audio_decoder_factory_interface") { | 43 source_set("audio_decoder_factory_interface") { |
43 sources = [ | 44 sources = [ |
44 "codecs/audio_decoder_factory.h", | 45 "codecs/audio_decoder_factory.h", |
45 "codecs/audio_format.cc", | 46 "codecs/audio_format.cc", |
46 "codecs/audio_format.h", | 47 "codecs/audio_format.h", |
47 ] | 48 ] |
48 configs += [ "../..:common_config" ] | 49 configs += [ "../..:common_config" ] |
49 public_configs = [ "../..:common_inherited_config" ] | 50 public_configs = [ "../..:common_inherited_config" ] |
50 deps = [ | 51 deps = [ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 109 |
109 defines = [] | 110 defines = [] |
110 | 111 |
111 configs += [ "../..:common_config" ] | 112 configs += [ "../..:common_config" ] |
112 | 113 |
113 public_configs = [ | 114 public_configs = [ |
114 "../..:common_inherited_config", | 115 "../..:common_inherited_config", |
115 ":audio_coding_config", | 116 ":audio_coding_config", |
116 ] | 117 ] |
117 | 118 |
| 119 if (rtc_include_opus) { |
| 120 public_deps = [ |
| 121 ":webrtc_opus", |
| 122 ] |
| 123 } |
| 124 |
118 if (is_win) { | 125 if (is_win) { |
119 cflags = [ | 126 cflags = [ |
120 # TODO(kjellander): Bug 261: fix this warning. | 127 # TODO(kjellander): Bug 261: fix this warning. |
121 "/wd4373", # virtual function override. | 128 "/wd4373", # virtual function override. |
122 ] | 129 ] |
123 } | 130 } |
124 | 131 |
125 if (is_clang) { | 132 if (is_clang) { |
126 # Suppress warnings from Chrome's Clang plugins. | 133 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
127 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
128 configs -= [ "//build/config/clang:find_bad_constructs" ] | 134 configs -= [ "//build/config/clang:find_bad_constructs" ] |
129 } | 135 } |
130 | 136 |
131 deps = audio_codec_deps + [ | 137 deps = audio_coding_deps + [ |
132 ":neteq", | 138 ":neteq", |
133 ":rent_a_codec", | 139 ":rent_a_codec", |
134 "../..:rtc_event_log", | 140 "../..:rtc_event_log", |
135 "../..:webrtc_common", | |
136 "../../common_audio", | |
137 "../../system_wrappers", | |
138 ] | 141 ] |
139 defines = audio_codec_defines | 142 defines = audio_coding_defines |
140 } | 143 } |
141 | 144 |
142 source_set("audio_decoder_interface") { | 145 source_set("audio_decoder_interface") { |
143 sources = [ | 146 sources = [ |
144 "codecs/audio_decoder.cc", | 147 "codecs/audio_decoder.cc", |
145 "codecs/audio_decoder.h", | 148 "codecs/audio_decoder.h", |
146 ] | 149 ] |
147 configs += [ "../..:common_config" ] | 150 configs += [ "../..:common_config" ] |
148 public_configs = [ "../..:common_inherited_config" ] | 151 public_configs = [ "../..:common_inherited_config" ] |
149 deps = [ | 152 deps = [ |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 defines += [ "WEBRTC_CODEC_ISACFX" ] | 883 defines += [ "WEBRTC_CODEC_ISACFX" ] |
881 deps += [ ":isac_fix" ] | 884 deps += [ ":isac_fix" ] |
882 } else { | 885 } else { |
883 defines += [ "WEBRTC_CODEC_ISAC" ] | 886 defines += [ "WEBRTC_CODEC_ISAC" ] |
884 deps += [ ":isac" ] | 887 deps += [ ":isac" ] |
885 } | 888 } |
886 defines += [ "WEBRTC_CODEC_G722" ] | 889 defines += [ "WEBRTC_CODEC_G722" ] |
887 deps += [ ":g722" ] | 890 deps += [ ":g722" ] |
888 } | 891 } |
889 } | 892 } |
| 893 |
| 894 if (rtc_include_tests) { |
| 895 source_set("acm_receive_test") { |
| 896 testonly = true |
| 897 sources = [ |
| 898 "acm2/acm_receive_test_oldapi.cc", |
| 899 "acm2/acm_receive_test_oldapi.h", |
| 900 ] |
| 901 |
| 902 configs += [ "../..:common_config" ] |
| 903 public_configs = [ "../..:common_inherited_config" ] |
| 904 |
| 905 if (is_clang) { |
| 906 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 907 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 908 } |
| 909 |
| 910 defines = audio_coding_defines |
| 911 |
| 912 deps = audio_coding_deps + [ |
| 913 ":audio_coding", |
| 914 ":neteq_unittest_tools", |
| 915 "//testing/gtest", |
| 916 ] |
| 917 } |
| 918 |
| 919 source_set("acm_send_test") { |
| 920 testonly = true |
| 921 sources = [ |
| 922 "acm2/acm_send_test_oldapi.cc", |
| 923 "acm2/acm_send_test_oldapi.h", |
| 924 ] |
| 925 |
| 926 configs += [ "../..:common_config" ] |
| 927 public_configs = [ "../..:common_inherited_config" ] |
| 928 |
| 929 if (is_clang) { |
| 930 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 931 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 932 } |
| 933 |
| 934 defines = audio_coding_defines |
| 935 |
| 936 deps = audio_coding_deps + [ |
| 937 ":audio_coding", |
| 938 ":neteq_unittest_tools", |
| 939 "//testing/gtest", |
| 940 ] |
| 941 } |
| 942 |
| 943 if (rtc_enable_protobuf) { |
| 944 proto_library("neteq_unittest_proto") { |
| 945 sources = [ |
| 946 "neteq/neteq_unittest.proto", |
| 947 ] |
| 948 proto_out_dir = "webrtc/audio_coding/neteq" |
| 949 } |
| 950 } |
| 951 |
| 952 source_set("neteq_test_support") { |
| 953 testonly = true |
| 954 sources = [ |
| 955 "neteq/tools/neteq_external_decoder_test.cc", |
| 956 "neteq/tools/neteq_external_decoder_test.h", |
| 957 "neteq/tools/neteq_performance_test.cc", |
| 958 "neteq/tools/neteq_performance_test.h", |
| 959 "neteq/tools/neteq_quality_test.cc", |
| 960 "neteq/tools/neteq_quality_test.h", |
| 961 ] |
| 962 |
| 963 configs += [ "../..:common_config" ] |
| 964 public_configs = [ "../..:common_inherited_config" ] |
| 965 |
| 966 if (is_clang) { |
| 967 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 968 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 969 } |
| 970 |
| 971 deps = [ |
| 972 ":neteq", |
| 973 ":neteq_unittest_tools", |
| 974 ":pcm16b", |
| 975 "//testing/gtest", |
| 976 "//third_party/gflags", |
| 977 ] |
| 978 } |
| 979 |
| 980 config("neteq_unittest_tools_config") { |
| 981 include_dirs = [ "tools" ] |
| 982 } |
| 983 |
| 984 source_set("neteq_unittest_tools") { |
| 985 testonly = true |
| 986 sources = [ |
| 987 "neteq/tools/audio_checksum.h", |
| 988 "neteq/tools/audio_loop.cc", |
| 989 "neteq/tools/audio_loop.h", |
| 990 "neteq/tools/audio_sink.h", |
| 991 "neteq/tools/constant_pcm_packet_source.cc", |
| 992 "neteq/tools/constant_pcm_packet_source.h", |
| 993 "neteq/tools/input_audio_file.cc", |
| 994 "neteq/tools/input_audio_file.h", |
| 995 "neteq/tools/output_audio_file.h", |
| 996 "neteq/tools/output_wav_file.h", |
| 997 "neteq/tools/packet.cc", |
| 998 "neteq/tools/packet.h", |
| 999 "neteq/tools/packet_source.h", |
| 1000 "neteq/tools/resample_input_audio_file.cc", |
| 1001 "neteq/tools/resample_input_audio_file.h", |
| 1002 "neteq/tools/rtp_file_source.cc", |
| 1003 "neteq/tools/rtp_file_source.h", |
| 1004 "neteq/tools/rtp_generator.cc", |
| 1005 "neteq/tools/rtp_generator.h", |
| 1006 ] |
| 1007 |
| 1008 configs += [ "../..:common_config" ] |
| 1009 public_configs = [ |
| 1010 "../..:common_inherited_config", |
| 1011 ":neteq_unittest_tools_config", |
| 1012 ] |
| 1013 |
| 1014 if (is_clang) { |
| 1015 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 1016 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1017 } |
| 1018 |
| 1019 deps = [ |
| 1020 "../../common_audio", |
| 1021 "../../test:rtp_test_utils", |
| 1022 "../rtp_rtcp", |
| 1023 ] |
| 1024 } |
| 1025 } |
OLD | NEW |