| 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("../webrtc.gni") | 9 import("../webrtc.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 if (is_ios && !build_with_chromium) { | 157 if (is_ios && !build_with_chromium) { |
| 158 deps += [ "../sdk:objc_common" ] | 158 deps += [ "../sdk:objc_common" ] |
| 159 } | 159 } |
| 160 | 160 |
| 161 if (rtc_use_memcheck) { | 161 if (rtc_use_memcheck) { |
| 162 data = valgrind_webrtc_dependencies | 162 data = valgrind_webrtc_dependencies |
| 163 } | 163 } |
| 164 } | 164 } |
| 165 | 165 |
| 166 if (!build_with_chromium) { | 166 if (!build_with_chromium) { |
| 167 # This target depends on //third_party/gflags and since chromium does not | |
| 168 # have gflags it causes an error when Gn parses this BUILD.gn file. | |
| 169 # It seems that Gn eagerly tries to understand if all the targets are | |
| 170 # buildable (even deps). Obviously gflags is not buildable in chromium | |
| 171 # so if a target depends on this BUILD.gn file we hit this error. | |
| 172 rtc_source_set("test_main") { | 167 rtc_source_set("test_main") { |
| 173 testonly = true | 168 testonly = true |
| 174 sources = [ | 169 sources = [ |
| 175 "test_main.cc", | 170 "test_main.cc", |
| 176 ] | 171 ] |
| 177 | 172 |
| 178 public_deps = [ | 173 public_deps = [ |
| 179 ":test_support", | 174 ":test_support", |
| 180 ] | 175 ] |
| 181 deps = [ | 176 deps = [ |
| 182 ":field_trial", | 177 ":field_trial", |
| 183 "../rtc_base:rtc_base_approved", | 178 "../rtc_base:rtc_base_approved", |
| 184 "../system_wrappers:metrics_default", | 179 "../system_wrappers:metrics_default", |
| 185 "//testing/gmock", | 180 "//testing/gmock", |
| 186 "//testing/gtest", | 181 "//testing/gtest", |
| 187 "//third_party/gflags", | |
| 188 ] | 182 ] |
| 189 } | 183 } |
| 190 | 184 |
| 191 rtc_source_set("video_test_support") { | 185 rtc_source_set("video_test_support") { |
| 192 testonly = true | 186 testonly = true |
| 193 | 187 |
| 194 sources = [ | 188 sources = [ |
| 195 "testsupport/frame_reader.h", | 189 "testsupport/frame_reader.h", |
| 196 "testsupport/frame_writer.h", | 190 "testsupport/frame_writer.h", |
| 197 "testsupport/metrics/video_metrics.cc", | 191 "testsupport/metrics/video_metrics.cc", |
| 198 "testsupport/metrics/video_metrics.h", | 192 "testsupport/metrics/video_metrics.h", |
| 199 "testsupport/mock/mock_frame_reader.h", | 193 "testsupport/mock/mock_frame_reader.h", |
| 200 "testsupport/mock/mock_frame_writer.h", | 194 "testsupport/mock/mock_frame_writer.h", |
| 201 "testsupport/y4m_frame_writer.cc", | 195 "testsupport/y4m_frame_writer.cc", |
| 202 "testsupport/yuv_frame_reader.cc", | 196 "testsupport/yuv_frame_reader.cc", |
| 203 "testsupport/yuv_frame_writer.cc", | 197 "testsupport/yuv_frame_writer.cc", |
| 204 ] | 198 ] |
| 205 | 199 |
| 206 deps = [ | 200 deps = [ |
| 207 ":test_support", | 201 ":test_support", |
| 208 ":video_test_common", | 202 ":video_test_common", |
| 209 "..:webrtc_common", | 203 "..:webrtc_common", |
| 210 "../api:video_frame_api", | 204 "../api:video_frame_api", |
| 211 "../common_video", | 205 "../common_video", |
| 212 "../rtc_base:rtc_base_approved", | 206 "../rtc_base:rtc_base_approved", |
| 213 "../system_wrappers", | 207 "../system_wrappers", |
| 214 "//testing/gmock", | 208 "//testing/gmock", |
| 215 "//testing/gtest", | 209 "//testing/gtest", |
| 216 "//third_party/gflags", | |
| 217 ] | 210 ] |
| 218 | 211 |
| 219 if (!is_ios) { | 212 if (!is_ios) { |
| 220 deps += [ "//third_party:jpeg" ] | 213 deps += [ "//third_party:jpeg" ] |
| 221 sources += [ "testsupport/jpeg_frame_writer.cc" ] | 214 sources += [ "testsupport/jpeg_frame_writer.cc" ] |
| 222 } | 215 } |
| 223 | 216 |
| 224 public_deps = [ | 217 public_deps = [ |
| 225 ":fileutils", | 218 ":fileutils", |
| 226 ] | 219 ] |
| (...skipping 18 matching lines...) Expand all Loading... |
| 245 | 238 |
| 246 rtc_source_set("test_support_test_output") { | 239 rtc_source_set("test_support_test_output") { |
| 247 testonly = true | 240 testonly = true |
| 248 sources = [ | 241 sources = [ |
| 249 "testsupport/test_output.cc", | 242 "testsupport/test_output.cc", |
| 250 "testsupport/test_output.h", | 243 "testsupport/test_output.h", |
| 251 ] | 244 ] |
| 252 deps = [ | 245 deps = [ |
| 253 ":fileutils", | 246 ":fileutils", |
| 254 "../rtc_base:rtc_base_approved", | 247 "../rtc_base:rtc_base_approved", |
| 255 "//third_party/gflags", | |
| 256 ] | 248 ] |
| 257 } | 249 } |
| 258 | 250 |
| 259 test_support_unittests_resources = [ | 251 test_support_unittests_resources = [ |
| 260 "../../resources/foreman_cif_short.yuv", | 252 "../../resources/foreman_cif_short.yuv", |
| 261 "../../resources/video_coding/frame-ethernet-ii.pcap", | 253 "../../resources/video_coding/frame-ethernet-ii.pcap", |
| 262 "../../resources/video_coding/frame-loopback.pcap", | 254 "../../resources/video_coding/frame-loopback.pcap", |
| 263 "../../resources/video_coding/pltype103.rtp", | 255 "../../resources/video_coding/pltype103.rtp", |
| 264 "../../resources/video_coding/pltype103_header_only.rtp", | 256 "../../resources/video_coding/pltype103_header_only.rtp", |
| 265 "../../resources/video_coding/ssrcs-2.pcap", | 257 "../../resources/video_coding/ssrcs-2.pcap", |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 321 |
| 330 deps += [ | 322 deps += [ |
| 331 ":direct_transport", | 323 ":direct_transport", |
| 332 ":fileutils_unittests", | 324 ":fileutils_unittests", |
| 333 ":test_common", | 325 ":test_common", |
| 334 ":test_main", | 326 ":test_main", |
| 335 ":test_support_test_output", | 327 ":test_support_test_output", |
| 336 ":video_test_common", | 328 ":video_test_common", |
| 337 ":video_test_support", | 329 ":video_test_support", |
| 338 "../modules/video_capture", | 330 "../modules/video_capture", |
| 331 "../rtc_base:rtc_base_approved", |
| 339 "//testing/gmock", | 332 "//testing/gmock", |
| 340 "//testing/gtest", | 333 "//testing/gtest", |
| 341 "//third_party/gflags", | |
| 342 ] | 334 ] |
| 343 } | 335 } |
| 344 } | 336 } |
| 345 | 337 |
| 346 rtc_source_set("fileutils") { | 338 rtc_source_set("fileutils") { |
| 347 testonly = true | 339 testonly = true |
| 348 sources = [ | 340 sources = [ |
| 349 "testsupport/fileutils.cc", | 341 "testsupport/fileutils.cc", |
| 350 "testsupport/fileutils.h", | 342 "testsupport/fileutils.h", |
| 351 ] | 343 ] |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 java_files = [ | 621 java_files = [ |
| 630 "android/org/webrtc/native_test/RTCNativeUnitTest.java", | 622 "android/org/webrtc/native_test/RTCNativeUnitTest.java", |
| 631 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", | 623 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", |
| 632 ] | 624 ] |
| 633 deps = [ | 625 deps = [ |
| 634 "../rtc_base:base_java", | 626 "../rtc_base:base_java", |
| 635 "//testing/android/native_test:native_test_java", | 627 "//testing/android/native_test:native_test_java", |
| 636 ] | 628 ] |
| 637 } | 629 } |
| 638 } | 630 } |
| OLD | NEW |