| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | |
| 2 # | |
| 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 | |
| 5 # tree. An additional intellectual property rights grant can be found | |
| 6 # in the file PATENTS. All contributing project authors may | |
| 7 # be found in the AUTHORS file in the root of the source tree. | |
| 8 | |
| 9 # TODO(andrew): consider moving test_support to src/base/test. | |
| 10 { | |
| 11 'includes': [ | |
| 12 '../build/common.gypi', | |
| 13 ], | |
| 14 'targets': [ | |
| 15 { | |
| 16 'target_name': 'video_test_common', | |
| 17 'type': 'static_library', | |
| 18 'sources': [ | |
| 19 'fake_texture_frame.cc', | |
| 20 'fake_texture_frame.h', | |
| 21 'frame_generator.cc', | |
| 22 'frame_generator.h', | |
| 23 'frame_utils.cc', | |
| 24 'frame_utils.h', | |
| 25 ], | |
| 26 'dependencies': [ | |
| 27 '<(webrtc_root)/common_video/common_video.gyp:common_video', | |
| 28 ], | |
| 29 }, | |
| 30 { | |
| 31 'target_name': 'rtp_test_utils', | |
| 32 'type': 'static_library', | |
| 33 'sources': [ | |
| 34 'rtcp_packet_parser.cc', | |
| 35 'rtcp_packet_parser.h', | |
| 36 'rtp_file_reader.cc', | |
| 37 'rtp_file_reader.h', | |
| 38 'rtp_file_writer.cc', | |
| 39 'rtp_file_writer.h', | |
| 40 ], | |
| 41 'dependencies': [ | |
| 42 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 43 '<(webrtc_root)/common.gyp:webrtc_common', | |
| 44 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp', | |
| 45 ], | |
| 46 }, | |
| 47 { | |
| 48 'target_name': 'field_trial', | |
| 49 'type': 'static_library', | |
| 50 'sources': [ | |
| 51 'field_trial.cc', | |
| 52 'field_trial.h', | |
| 53 ], | |
| 54 'dependencies': [ | |
| 55 '<(webrtc_root)/common.gyp:webrtc_common', | |
| 56 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_default'
, | |
| 57 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', | |
| 58 ], | |
| 59 }, | |
| 60 { | |
| 61 'target_name': 'test_main', | |
| 62 'type': 'static_library', | |
| 63 'sources': [ | |
| 64 'test_main.cc', | |
| 65 ], | |
| 66 'dependencies': [ | |
| 67 'field_trial', | |
| 68 'test_support', | |
| 69 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 70 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', | |
| 71 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default', | |
| 72 ], | |
| 73 }, | |
| 74 { | |
| 75 'target_name': 'test_support', | |
| 76 'type': 'static_library', | |
| 77 'dependencies': [ | |
| 78 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 79 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 80 '<(webrtc_root)/base/base.gyp:gtest_prod', | |
| 81 '<(webrtc_root)/base/base.gyp:rtc_base_approved', | |
| 82 '<(webrtc_root)/common_video/common_video.gyp:common_video', | |
| 83 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', | |
| 84 'video_test_common', | |
| 85 ], | |
| 86 'sources': [ | |
| 87 'gmock.h', | |
| 88 'gtest.h', | |
| 89 'testsupport/fileutils.cc', | |
| 90 'testsupport/fileutils.h', | |
| 91 'testsupport/frame_reader.cc', | |
| 92 'testsupport/frame_reader.h', | |
| 93 'testsupport/frame_writer.cc', | |
| 94 'testsupport/frame_writer.h', | |
| 95 'testsupport/iosfileutils.mm', | |
| 96 'testsupport/metrics/video_metrics.h', | |
| 97 'testsupport/metrics/video_metrics.cc', | |
| 98 'testsupport/mock/mock_frame_reader.h', | |
| 99 'testsupport/mock/mock_frame_writer.h', | |
| 100 'testsupport/packet_reader.cc', | |
| 101 'testsupport/packet_reader.h', | |
| 102 'testsupport/perf_test.cc', | |
| 103 'testsupport/perf_test.h', | |
| 104 'testsupport/trace_to_stderr.cc', | |
| 105 'testsupport/trace_to_stderr.h', | |
| 106 ], | |
| 107 'conditions': [ | |
| 108 ['OS=="ios"', { | |
| 109 'xcode_settings': { | |
| 110 'CLANG_ENABLE_OBJC_ARC': 'YES', | |
| 111 }, | |
| 112 }], | |
| 113 ['use_x11==1', { | |
| 114 'dependencies': [ | |
| 115 '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
| 116 ], | |
| 117 }], | |
| 118 ], | |
| 119 }, | |
| 120 { | |
| 121 # Depend on this target when you want to have test_support but also the | |
| 122 # main method needed for gtest to execute! | |
| 123 'target_name': 'test_support_main', | |
| 124 'type': 'static_library', | |
| 125 'dependencies': [ | |
| 126 'field_trial', | |
| 127 'test_support', | |
| 128 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 129 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 130 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', | |
| 131 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default', | |
| 132 ], | |
| 133 'sources': [ | |
| 134 'run_all_unittests.cc', | |
| 135 'test_suite.cc', | |
| 136 'test_suite.h', | |
| 137 ], | |
| 138 }, | |
| 139 { | |
| 140 # Depend on this target when you want to have test_support and a special | |
| 141 # main for mac which will run your test on a worker thread and consume | |
| 142 # events on the main thread. Useful if you want to access a webcam. | |
| 143 # This main will provide all the scaffolding and objective-c black magic | |
| 144 # for you. All you need to do is to implement a function in the | |
| 145 # run_threaded_main_mac.h file (ImplementThisToRunYourTest). | |
| 146 'target_name': 'test_support_main_threaded_mac', | |
| 147 'type': 'static_library', | |
| 148 'dependencies': [ | |
| 149 'test_support', | |
| 150 ], | |
| 151 'sources': [ | |
| 152 'testsupport/mac/run_threaded_main_mac.h', | |
| 153 'testsupport/mac/run_threaded_main_mac.mm', | |
| 154 ], | |
| 155 }, | |
| 156 { | |
| 157 'target_name': 'test_common', | |
| 158 'type': 'static_library', | |
| 159 'sources': [ | |
| 160 'call_test.cc', | |
| 161 'call_test.h', | |
| 162 'configurable_frame_size_encoder.cc', | |
| 163 'configurable_frame_size_encoder.h', | |
| 164 'constants.cc', | |
| 165 'constants.h', | |
| 166 'direct_transport.cc', | |
| 167 'direct_transport.h', | |
| 168 'drifting_clock.cc', | |
| 169 'drifting_clock.h', | |
| 170 'encoder_settings.cc', | |
| 171 'encoder_settings.h', | |
| 172 'fake_audio_device.cc', | |
| 173 'fake_audio_device.h', | |
| 174 'fake_decoder.cc', | |
| 175 'fake_decoder.h', | |
| 176 'fake_encoder.cc', | |
| 177 'fake_encoder.h', | |
| 178 'fake_network_pipe.cc', | |
| 179 'fake_network_pipe.h', | |
| 180 'fake_videorenderer.h', | |
| 181 'frame_generator_capturer.cc', | |
| 182 'frame_generator_capturer.h', | |
| 183 'layer_filtering_transport.cc', | |
| 184 'layer_filtering_transport.h', | |
| 185 'mock_transport.h', | |
| 186 'mock_voe_channel_proxy.h', | |
| 187 'mock_voice_engine.h', | |
| 188 'null_transport.cc', | |
| 189 'null_transport.h', | |
| 190 'rtp_rtcp_observer.h', | |
| 191 'statistics.cc', | |
| 192 'statistics.h', | |
| 193 'vcm_capturer.cc', | |
| 194 'vcm_capturer.h', | |
| 195 'video_capturer.h', | |
| 196 'win/run_loop_win.cc', | |
| 197 ], | |
| 198 'conditions': [ | |
| 199 ['OS!="win"', { | |
| 200 'sources': [ | |
| 201 'run_loop.h', | |
| 202 'run_loop.cc', | |
| 203 ], | |
| 204 }], | |
| 205 ], | |
| 206 'dependencies': [ | |
| 207 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 208 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 209 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', | |
| 210 '<(webrtc_root)/base/base.gyp:rtc_base_approved', | |
| 211 '<(webrtc_root)/common.gyp:webrtc_common', | |
| 212 '<(webrtc_root)/modules/modules.gyp:media_file', | |
| 213 '<(webrtc_root)/webrtc.gyp:webrtc', | |
| 214 'rtp_test_utils', | |
| 215 'test_support', | |
| 216 ], | |
| 217 }, | |
| 218 { | |
| 219 'target_name': 'test_renderer', | |
| 220 'type': 'static_library', | |
| 221 'sources': [ | |
| 222 'linux/glx_renderer.cc', | |
| 223 'linux/glx_renderer.h', | |
| 224 'linux/video_renderer_linux.cc', | |
| 225 'mac/video_renderer_mac.h', | |
| 226 'mac/video_renderer_mac.mm', | |
| 227 'video_renderer.cc', | |
| 228 'video_renderer.h', | |
| 229 'win/d3d_renderer.cc', | |
| 230 'win/d3d_renderer.h', | |
| 231 ], | |
| 232 'conditions': [ | |
| 233 ['OS!="linux" and OS!="mac" and OS!="win"', { | |
| 234 'sources': [ | |
| 235 'null_platform_renderer.cc', | |
| 236 ], | |
| 237 }], | |
| 238 ['OS=="linux" or OS=="mac"', { | |
| 239 'sources' : [ | |
| 240 'gl/gl_renderer.cc', | |
| 241 'gl/gl_renderer.h', | |
| 242 ], | |
| 243 }], | |
| 244 ['OS=="win"', { | |
| 245 'include_dirs': [ | |
| 246 '<(directx_sdk_path)/Include', | |
| 247 ], | |
| 248 }], | |
| 249 ['OS=="win" and clang==1', { | |
| 250 'msvs_settings': { | |
| 251 'VCCLCompilerTool': { | |
| 252 'AdditionalOptions': [ | |
| 253 # Disable warnings failing when compiling with Clang on Windows. | |
| 254 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | |
| 255 '-Wno-bool-conversion', | |
| 256 '-Wno-comment', | |
| 257 '-Wno-delete-non-virtual-dtor', | |
| 258 ], | |
| 259 }, | |
| 260 }, | |
| 261 }], | |
| 262 ], | |
| 263 'dependencies': [ | |
| 264 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 265 '<(webrtc_root)/modules/modules.gyp:media_file', | |
| 266 'test_support', | |
| 267 'video_test_common', | |
| 268 ], | |
| 269 'direct_dependent_settings': { | |
| 270 'conditions': [ | |
| 271 ['OS=="linux"', { | |
| 272 'libraries': [ | |
| 273 '-lXext', | |
| 274 '-lX11', | |
| 275 '-lGL', | |
| 276 ], | |
| 277 }], | |
| 278 ['OS=="android"', { | |
| 279 'libraries' : [ | |
| 280 '-lGLESv2', '-llog', | |
| 281 ], | |
| 282 }], | |
| 283 ['OS=="mac"', { | |
| 284 'xcode_settings' : { | |
| 285 'OTHER_LDFLAGS' : [ | |
| 286 '-framework Cocoa', | |
| 287 '-framework OpenGL', | |
| 288 '-framework CoreVideo', | |
| 289 ], | |
| 290 }, | |
| 291 }], | |
| 292 ], | |
| 293 }, | |
| 294 }, | |
| 295 ], | |
| 296 } | |
| OLD | NEW |