Fix build with rtc_libvpx_build_vp9=false

Like aom and openh264, VP9 can be disabled with the gn argument.

Bug: None
Change-Id: I7d67e3946afae0bb4cac8a7e591445604dda9ce1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215260
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33737}
This commit is contained in:
Byoungchan Lee 2021-04-15 07:09:58 +09:00 committed by Commit Bot
parent 980c4601e1
commit 403e32898a

View File

@ -858,9 +858,12 @@ if (rtc_include_tests) {
"codecs/test/video_encoder_decoder_instantiation_tests.cc",
"codecs/test/videocodec_test_libvpx.cc",
"codecs/vp8/test/vp8_impl_unittest.cc",
"codecs/vp9/test/vp9_impl_unittest.cc",
]
if (rtc_libvpx_build_vp9) {
sources += [ "codecs/vp9/test/vp9_impl_unittest.cc" ]
}
# TODO(jianj): Fix crash on iOS and re-enable
if (enable_libaom && !is_ios) {
sources += [ "codecs/test/videocodec_test_libaom.cc" ]