| 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("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 "channel_transport/udp_socket_manager_wrapper.h", | 67 "channel_transport/udp_socket_manager_wrapper.h", |
| 68 "channel_transport/udp_socket_posix.cc", | 68 "channel_transport/udp_socket_posix.cc", |
| 69 "channel_transport/udp_socket_posix.h", | 69 "channel_transport/udp_socket_posix.h", |
| 70 "channel_transport/udp_socket_wrapper.cc", | 70 "channel_transport/udp_socket_wrapper.cc", |
| 71 "channel_transport/udp_socket_wrapper.h", | 71 "channel_transport/udp_socket_wrapper.h", |
| 72 "channel_transport/udp_transport.h", | 72 "channel_transport/udp_transport.h", |
| 73 "channel_transport/udp_transport_impl.cc", | 73 "channel_transport/udp_transport_impl.cc", |
| 74 "channel_transport/udp_transport_impl.h", | 74 "channel_transport/udp_transport_impl.h", |
| 75 ] | 75 ] |
| 76 | 76 |
| 77 configs += [ | 77 configs += [ ":channel_transport_warnings_config" ] |
| 78 "..:common_config", | |
| 79 ":channel_transport_warnings_config", | |
| 80 ] | |
| 81 public_configs = [ "..:common_inherited_config" ] | 78 public_configs = [ "..:common_inherited_config" ] |
| 82 | 79 |
| 83 if (is_clang && !is_nacl) { | 80 if (is_clang && !is_nacl) { |
| 84 # Suppress warnings from the Chromium Clang plugin. | 81 # Suppress warnings from the Chromium Clang plugin. |
| 85 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 82 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 86 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 83 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 87 } | 84 } |
| 88 | 85 |
| 89 deps = [ | 86 deps = [ |
| 90 "..:webrtc_common", | 87 "..:webrtc_common", |
| 91 "../system_wrappers", | 88 "../system_wrappers", |
| 92 "//testing/gtest", | 89 "//testing/gtest", |
| 93 ] | 90 ] |
| 94 } | 91 } |
| 95 | 92 |
| 96 rtc_source_set("video_test_common") { | 93 rtc_source_set("video_test_common") { |
| 97 testonly = true | 94 testonly = true |
| 98 sources = [ | 95 sources = [ |
| 99 "fake_texture_frame.cc", | 96 "fake_texture_frame.cc", |
| 100 "fake_texture_frame.h", | 97 "fake_texture_frame.h", |
| 101 "frame_generator.cc", | 98 "frame_generator.cc", |
| 102 "frame_generator.h", | 99 "frame_generator.h", |
| 103 "frame_utils.cc", | 100 "frame_utils.cc", |
| 104 "frame_utils.h", | 101 "frame_utils.h", |
| 105 ] | 102 ] |
| 106 | 103 |
| 107 configs += [ "..:common_config" ] | |
| 108 public_configs = [ "..:common_inherited_config" ] | 104 public_configs = [ "..:common_inherited_config" ] |
| 109 | 105 |
| 110 if (is_clang && !is_nacl) { | 106 if (is_clang && !is_nacl) { |
| 111 # Suppress warnings from the Chromium Clang plugin. | 107 # Suppress warnings from the Chromium Clang plugin. |
| 112 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 108 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 113 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 109 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 114 } | 110 } |
| 115 | 111 |
| 116 deps = [ | 112 deps = [ |
| 117 "../common_video", | 113 "../common_video", |
| 118 ] | 114 ] |
| 119 } | 115 } |
| 120 | 116 |
| 121 rtc_source_set("rtp_test_utils") { | 117 rtc_source_set("rtp_test_utils") { |
| 122 testonly = true | 118 testonly = true |
| 123 sources = [ | 119 sources = [ |
| 124 "rtcp_packet_parser.cc", | 120 "rtcp_packet_parser.cc", |
| 125 "rtcp_packet_parser.h", | 121 "rtcp_packet_parser.h", |
| 126 "rtp_file_reader.cc", | 122 "rtp_file_reader.cc", |
| 127 "rtp_file_reader.h", | 123 "rtp_file_reader.h", |
| 128 "rtp_file_writer.cc", | 124 "rtp_file_writer.cc", |
| 129 "rtp_file_writer.h", | 125 "rtp_file_writer.h", |
| 130 ] | 126 ] |
| 131 | 127 |
| 132 configs += [ "..:common_config" ] | |
| 133 public_configs = [ "..:common_inherited_config" ] | 128 public_configs = [ "..:common_inherited_config" ] |
| 134 | 129 |
| 135 if (is_clang && !is_nacl) { | 130 if (is_clang && !is_nacl) { |
| 136 # Suppress warnings from the Chromium Clang plugin. | 131 # Suppress warnings from the Chromium Clang plugin. |
| 137 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 132 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 138 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 133 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 139 } | 134 } |
| 140 | 135 |
| 141 deps = [ | 136 deps = [ |
| 142 "..:webrtc_common", | 137 "..:webrtc_common", |
| 143 "../modules/rtp_rtcp", | 138 "../modules/rtp_rtcp", |
| 144 "//testing/gtest", | 139 "//testing/gtest", |
| 145 ] | 140 ] |
| 146 } | 141 } |
| 147 | 142 |
| 148 rtc_source_set("field_trial") { | 143 rtc_source_set("field_trial") { |
| 149 testonly = true | 144 testonly = true |
| 150 sources = [ | 145 sources = [ |
| 151 "field_trial.cc", | 146 "field_trial.cc", |
| 152 "field_trial.h", | 147 "field_trial.h", |
| 153 ] | 148 ] |
| 154 | 149 |
| 155 deps = [ | 150 deps = [ |
| 156 "..:webrtc_common", | 151 "..:webrtc_common", |
| 157 "../system_wrappers", | 152 "../system_wrappers", |
| 158 "../system_wrappers:field_trial_default", | 153 "../system_wrappers:field_trial_default", |
| 159 ] | 154 ] |
| 160 | 155 |
| 161 configs += [ "..:common_config" ] | |
| 162 public_configs = [ "..:common_inherited_config" ] | 156 public_configs = [ "..:common_inherited_config" ] |
| 163 } | 157 } |
| 164 | 158 |
| 165 rtc_source_set("test_main") { | 159 rtc_source_set("test_main") { |
| 166 testonly = true | 160 testonly = true |
| 167 sources = [ | 161 sources = [ |
| 168 "test_main.cc", | 162 "test_main.cc", |
| 169 ] | 163 ] |
| 170 | 164 |
| 171 deps = [ | 165 deps = [ |
| 172 ":field_trial", | 166 ":field_trial", |
| 173 ":test_support", | 167 ":test_support", |
| 174 "../system_wrappers:metrics_default", | 168 "../system_wrappers:metrics_default", |
| 175 "//testing/gtest", | 169 "//testing/gtest", |
| 176 "//third_party/gflags", | 170 "//third_party/gflags", |
| 177 ] | 171 ] |
| 178 | 172 |
| 179 configs += [ "..:common_config" ] | |
| 180 public_configs = [ "..:common_inherited_config" ] | 173 public_configs = [ "..:common_inherited_config" ] |
| 181 } | 174 } |
| 182 | 175 |
| 183 rtc_source_set("test_support") { | 176 rtc_source_set("test_support") { |
| 184 testonly = true | 177 testonly = true |
| 185 | 178 |
| 186 sources = [ | 179 sources = [ |
| 187 "testsupport/fileutils.cc", | 180 "testsupport/fileutils.cc", |
| 188 "testsupport/fileutils.h", | 181 "testsupport/fileutils.h", |
| 189 "testsupport/frame_reader.cc", | 182 "testsupport/frame_reader.cc", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 215 } |
| 223 | 216 |
| 224 if (use_x11) { | 217 if (use_x11) { |
| 225 deps += [ "//tools/xdisplaycheck" ] | 218 deps += [ "//tools/xdisplaycheck" ] |
| 226 } | 219 } |
| 227 | 220 |
| 228 if (is_android) { | 221 if (is_android) { |
| 229 deps += [ "//base:base" ] | 222 deps += [ "//base:base" ] |
| 230 } | 223 } |
| 231 | 224 |
| 232 configs += [ "..:common_config" ] | |
| 233 public_configs = [ "..:common_inherited_config" ] | 225 public_configs = [ "..:common_inherited_config" ] |
| 234 } | 226 } |
| 235 | 227 |
| 236 # Depend on this target when you want to have test_support but also the | 228 # Depend on this target when you want to have test_support but also the |
| 237 # main method needed for gtest to execute! | 229 # main method needed for gtest to execute! |
| 238 rtc_source_set("test_support_main") { | 230 rtc_source_set("test_support_main") { |
| 239 testonly = true | 231 testonly = true |
| 240 | 232 |
| 241 sources = [ | 233 sources = [ |
| 242 "run_all_unittests.cc", | 234 "run_all_unittests.cc", |
| 243 "test_suite.cc", | 235 "test_suite.cc", |
| 244 "test_suite.h", | 236 "test_suite.h", |
| 245 ] | 237 ] |
| 246 | 238 |
| 247 deps = [ | 239 deps = [ |
| 248 ":field_trial", | 240 ":field_trial", |
| 249 ":test_support", | 241 ":test_support", |
| 250 "../system_wrappers:metrics_default", | 242 "../system_wrappers:metrics_default", |
| 251 "//testing/gmock", | 243 "//testing/gmock", |
| 252 "//testing/gtest", | 244 "//testing/gtest", |
| 253 "//third_party/gflags", | 245 "//third_party/gflags", |
| 254 ] | 246 ] |
| 255 | 247 |
| 256 configs += [ "..:common_config" ] | |
| 257 public_configs = [ "..:common_inherited_config" ] | 248 public_configs = [ "..:common_inherited_config" ] |
| 258 } | 249 } |
| 259 | 250 |
| 260 # Depend on this target when you want to have test_support and a special | 251 # Depend on this target when you want to have test_support and a special |
| 261 # main for mac which will run your test on a worker thread and consume | 252 # main for mac which will run your test on a worker thread and consume |
| 262 # events on the main thread. Useful if you want to access a webcam. | 253 # events on the main thread. Useful if you want to access a webcam. |
| 263 # This main will provide all the scaffolding and objective-c black magic | 254 # This main will provide all the scaffolding and objective-c black magic |
| 264 # for you. All you need to do is to implement a function in the | 255 # for you. All you need to do is to implement a function in the |
| 265 # run_threaded_main_mac.h file (ImplementThisToRunYourTest). | 256 # run_threaded_main_mac.h file (ImplementThisToRunYourTest). |
| 266 rtc_source_set("test_support_main_threaded_mac") { | 257 rtc_source_set("test_support_main_threaded_mac") { |
| 267 testonly = true | 258 testonly = true |
| 268 | 259 |
| 269 sources = [ | 260 sources = [ |
| 270 "testsupport/mac/run_threaded_main_mac.h", | 261 "testsupport/mac/run_threaded_main_mac.h", |
| 271 "testsupport/mac/run_threaded_main_mac.mm", | 262 "testsupport/mac/run_threaded_main_mac.mm", |
| 272 ] | 263 ] |
| 273 | 264 |
| 274 configs += [ "..:common_config" ] | |
| 275 public_configs = [ "..:common_inherited_config" ] | 265 public_configs = [ "..:common_inherited_config" ] |
| 276 | 266 |
| 277 deps = [ | 267 deps = [ |
| 278 ":test_support", | 268 ":test_support", |
| 279 ] | 269 ] |
| 280 } | 270 } |
| 281 | 271 |
| 282 if (is_android || is_ios) { | 272 if (is_android || is_ios) { |
| 283 test_support_unittests_resources = [ | 273 test_support_unittests_resources = [ |
| 284 "//resources/foreman_cif_short.yuv", | 274 "//resources/foreman_cif_short.yuv", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 315 "testsupport/always_passing_unittest.cc", | 305 "testsupport/always_passing_unittest.cc", |
| 316 "testsupport/fileutils_unittest.cc", | 306 "testsupport/fileutils_unittest.cc", |
| 317 "testsupport/frame_reader_unittest.cc", | 307 "testsupport/frame_reader_unittest.cc", |
| 318 "testsupport/frame_writer_unittest.cc", | 308 "testsupport/frame_writer_unittest.cc", |
| 319 "testsupport/metrics/video_metrics_unittest.cc", | 309 "testsupport/metrics/video_metrics_unittest.cc", |
| 320 "testsupport/packet_reader_unittest.cc", | 310 "testsupport/packet_reader_unittest.cc", |
| 321 "testsupport/perf_test_unittest.cc", | 311 "testsupport/perf_test_unittest.cc", |
| 322 "testsupport/unittest_utils.h", | 312 "testsupport/unittest_utils.h", |
| 323 ] | 313 ] |
| 324 | 314 |
| 325 configs += [ "..:common_config" ] | |
| 326 public_configs = [ "..:common_inherited_config" ] | 315 public_configs = [ "..:common_inherited_config" ] |
| 327 | 316 |
| 328 # TODO(jschuh): Bug 1348: fix this warning. | 317 # TODO(jschuh): Bug 1348: fix this warning. |
| 329 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 318 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 330 | 319 |
| 331 if (is_win) { | 320 if (is_win) { |
| 332 cflags = [ "/wd4373" ] # virtual override w/different const/volatile signat
ure. | 321 cflags = [ "/wd4373" ] # virtual override w/different const/volatile signat
ure. |
| 333 } | 322 } |
| 334 | 323 |
| 335 if (is_clang) { | 324 if (is_clang) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 "video_capturer.h", | 388 "video_capturer.h", |
| 400 "win/run_loop_win.cc", | 389 "win/run_loop_win.cc", |
| 401 ] | 390 ] |
| 402 if (!is_win) { | 391 if (!is_win) { |
| 403 sources += [ | 392 sources += [ |
| 404 "run_loop.cc", | 393 "run_loop.cc", |
| 405 "run_loop.h", | 394 "run_loop.h", |
| 406 ] | 395 ] |
| 407 } | 396 } |
| 408 | 397 |
| 409 configs += [ "..:common_config" ] | |
| 410 public_configs = [ "..:common_inherited_config" ] | 398 public_configs = [ "..:common_inherited_config" ] |
| 411 | 399 |
| 412 if (is_clang && !is_nacl) { | 400 if (is_clang && !is_nacl) { |
| 413 # Suppress warnings from the Chromium Clang plugin. | 401 # Suppress warnings from the Chromium Clang plugin. |
| 414 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 402 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 415 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 403 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 416 } | 404 } |
| 417 | 405 |
| 418 deps = [ | 406 deps = [ |
| 419 ":rtp_test_utils", | 407 ":rtp_test_utils", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 ] | 470 ] |
| 483 } | 471 } |
| 484 if (is_mac) { | 472 if (is_mac) { |
| 485 libs = [ | 473 libs = [ |
| 486 "Cocoa.framework", | 474 "Cocoa.framework", |
| 487 "OpenGL.framework", | 475 "OpenGL.framework", |
| 488 "CoreVideo.framework", | 476 "CoreVideo.framework", |
| 489 ] | 477 ] |
| 490 } | 478 } |
| 491 | 479 |
| 492 configs += [ "..:common_config" ] | |
| 493 public_configs = [ | 480 public_configs = [ |
| 494 "..:common_inherited_config", | 481 "..:common_inherited_config", |
| 495 ":test_renderer_exported_config", | 482 ":test_renderer_exported_config", |
| 496 ] | 483 ] |
| 497 | 484 |
| 498 if (is_clang && !is_nacl) { | 485 if (is_clang && !is_nacl) { |
| 499 # Suppress warnings from the Chromium Clang plugin. | 486 # Suppress warnings from the Chromium Clang plugin. |
| 500 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 487 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 501 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 488 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 502 } | 489 } |
| 503 | 490 |
| 504 deps = [ | 491 deps = [ |
| 505 ":test_support", | 492 ":test_support", |
| 506 ":video_test_common", | 493 ":video_test_common", |
| 507 "../modules/media_file", | 494 "../modules/media_file", |
| 508 "//testing/gtest", | 495 "//testing/gtest", |
| 509 ] | 496 ] |
| 510 } | 497 } |
| OLD | NEW |