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