Added GN target for isac_test.
BUG=webrtc:6191
NOTRY=True
NOPRESUBMIT=True
Review-Url: https://codereview.webrtc.org/2267423002
Cr-Commit-Position: refs/heads/master@{#13884}
diff --git a/.gn b/.gn
index 6bbe648..a5f070a 100644
--- a/.gn
+++ b/.gn
@@ -20,12 +20,13 @@
# "gn check" or "gn gen --check".
# TODO(kjellander): Keep adding paths to this list as work in webrtc:5589 is done.
check_targets = [
- "//webrtc/modules/audio_device/*",
- "//webrtc/voice_engine:level_indicator",
- "//webrtc/modules/audio_coding:isac_fix_test",
- "//webrtc/modules/audio_mixer:audio_conference_mixer",
"//webrtc/modules/audio_coding:g711_test",
"//webrtc/modules/audio_coding:g722_test",
+ "//webrtc/modules/audio_coding:isac_fix_test",
+ "//webrtc/modules/audio_coding:isac_test",
+ "//webrtc/modules/audio_device/*",
+ "//webrtc/modules/audio_mixer:audio_conference_mixer",
+ "//webrtc/voice_engine:level_indicator",
]
# These are the list of GN files that run exec_script. This whitelist exists
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index 5cd6a6d..ce8ab6f 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -1540,6 +1540,35 @@
}
}
+ executable("isac_test") {
+ testonly = true
+
+ sources = [
+ "codecs/isac/main/test/simpleKenny.c",
+ "codecs/isac/main/util/utility.c",
+ ]
+
+ include_dirs = [
+ "codecs/isac/main/include",
+ "codecs/isac/main/test",
+ "codecs/isac/main/util",
+ ]
+
+ deps = [
+ ":isac",
+ "../../base:rtc_base",
+ "//build/config/sanitizers:deps",
+ ]
+
+ if (is_win && is_clang) {
+ cflags = [
+ # Disable warnings failing when compiling with Clang on Windows.
+ # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
+ "-Wno-format",
+ ]
+ }
+ }
+
executable("g711_test") {
testonly = true
diff --git a/webrtc/modules/audio_coding/codecs/isac/isac_test.gypi b/webrtc/modules/audio_coding/codecs/isac/isac_test.gypi
index 54cedb4..4edd01d 100644
--- a/webrtc/modules/audio_coding/codecs/isac/isac_test.gypi
+++ b/webrtc/modules/audio_coding/codecs/isac/isac_test.gypi
@@ -14,10 +14,11 @@
'type': 'executable',
'dependencies': [
'isac',
+ '<(webrtc_root)/base/base.gyp:rtc_base',
],
'include_dirs': [
- './main/test',
'./main/include',
+ './main/test',
'./main/util',
'<(webrtc_root)',
],