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") | 9 import("../../build/webrtc.gni") |
10 import("audio_coding.gni") | 10 import("audio_coding.gni") |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1202 ] | 1202 ] |
1203 | 1203 |
1204 if (is_win) { | 1204 if (is_win) { |
1205 cflags = [ | 1205 cflags = [ |
1206 # Disable warnings to enable Win64 build, issue 1323. | 1206 # Disable warnings to enable Win64 build, issue 1323. |
1207 "/wd4267", # size_t to int truncation | 1207 "/wd4267", # size_t to int truncation |
1208 ] | 1208 ] |
1209 } | 1209 } |
1210 } | 1210 } |
1211 | 1211 |
1212 config("RTPencode_config") { | |
1213 defines = [ | |
1214 "CODEC_ILBC", | |
1215 "CODEC_PCM16B", | |
1216 "CODEC_G711", | |
1217 "CODEC_G722", | |
1218 "CODEC_ISAC", | |
1219 "CODEC_PCM16B_WB", | |
1220 "CODEC_ISAC_SWB", | |
1221 "CODEC_PCM16B_32KHZ", | |
1222 "CODEC_PCM16B_48KHZ", | |
1223 "CODEC_CNGCODEC8", | |
1224 "CODEC_CNGCODEC16", | |
1225 "CODEC_CNGCODEC32", | |
1226 "CODEC_ATEVENT_DECODE", | |
1227 "CODEC_RED", | |
1228 "CODEC_OPUS", | |
1229 ] | |
1230 } | |
1231 | |
1232 executable("RTPencode") { | |
aleloi
2016/08/01 14:31:34
Added target here instead of in neteq because othe
| |
1233 testonly = true | |
1234 | |
1235 deps = [ | |
1236 # TODO(hlundin): Make RTPencode use ACM to encode files. | |
aleloi
2016/08/01 14:31:34
Copied TODO from gyp build file.
| |
1237 ":cng", | |
1238 ":g711", | |
1239 ":g722", | |
1240 ":ilbc", | |
1241 ":isac", | |
1242 ":neteq_test_tools", | |
1243 ":pcm16b", | |
1244 ":webrtc_opus", | |
1245 "../../common_audio", | |
1246 ] | |
1247 | |
1248 configs += [ ":RTPencode_config" ] | |
1249 | |
1250 sources = [ | |
1251 "neteq/test/RTPencode.cc", | |
1252 ] | |
1253 | |
1254 include_dirs = [ | |
aleloi
2016/08/01 14:31:34
Removed webrtc root as it is included by default.
| |
1255 "neteq/include", | |
1256 "neteq/test", | |
1257 ] | |
1258 | |
1259 if (is_win) { | |
1260 cflags = [ | |
1261 # Disable warnings to enable Win64 build, issue 1323. | |
1262 "/wd4267", # size_t to int truncation | |
1263 ] | |
1264 } | |
1265 } | |
1266 | |
1212 executable("rtp_analyze") { | 1267 executable("rtp_analyze") { |
1213 testonly = true | 1268 testonly = true |
1214 | 1269 |
1215 sources = [ | 1270 sources = [ |
1216 "neteq/tools/rtp_analyze.cc", | 1271 "neteq/tools/rtp_analyze.cc", |
1217 ] | 1272 ] |
1218 | 1273 |
1219 deps = [ | 1274 deps = [ |
1220 ":neteq", | 1275 ":neteq", |
1221 ":neteq_unittest_tools", | 1276 ":neteq_unittest_tools", |
1222 ":pcm16b", | 1277 ":pcm16b", |
1223 "../../system_wrappers:system_wrappers_default", | 1278 "../../system_wrappers:system_wrappers_default", |
1224 "//testing/gtest", | 1279 "//testing/gtest", |
1225 "//third_party/gflags:gflags", | 1280 "//third_party/gflags:gflags", |
1226 ] | 1281 ] |
1227 | 1282 |
1228 if (is_clang) { | 1283 if (is_clang) { |
1229 # Suppress warnings from Chrome's Clang plugins. | 1284 # Suppress warnings from Chrome's Clang plugins. |
1230 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 1285 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
1231 configs -= [ "//build/config/clang:find_bad_constructs" ] | 1286 configs -= [ "//build/config/clang:find_bad_constructs" ] |
1232 } | 1287 } |
1233 } | 1288 } |
1234 } | 1289 } |
OLD | NEW |