pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 1 | # Copyright (c) 2013 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 | 'includes': [ |
| 10 | '../build/common.gypi', |
| 11 | ], |
| 12 | 'targets': [ |
| 13 | { |
| 14 | 'target_name': 'webrtc_test_common', |
| 15 | 'type': 'static_library', |
| 16 | 'sources': [ |
pbos@webrtc.org | 994d0b7 | 2014-06-27 08:47:52 +0000 | [diff] [blame] | 17 | 'call_test.cc', |
| 18 | 'call_test.h', |
sprang@webrtc.org | 8b88192 | 2013-12-10 10:05:17 +0000 | [diff] [blame] | 19 | 'configurable_frame_size_encoder.cc', |
| 20 | 'configurable_frame_size_encoder.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 21 | 'direct_transport.cc', |
| 22 | 'direct_transport.h', |
pbos@webrtc.org | f577ae9 | 2014-03-19 08:43:57 +0000 | [diff] [blame] | 23 | 'encoder_settings.cc', |
| 24 | 'encoder_settings.h', |
stefan@webrtc.org | b082ade | 2013-11-18 11:45:11 +0000 | [diff] [blame] | 25 | 'fake_audio_device.cc', |
| 26 | 'fake_audio_device.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 27 | 'fake_decoder.cc', |
| 28 | 'fake_decoder.h', |
| 29 | 'fake_encoder.cc', |
| 30 | 'fake_encoder.h', |
stefan@webrtc.org | faada6e | 2013-12-18 20:28:25 +0000 | [diff] [blame] | 31 | 'fake_network_pipe.cc', |
| 32 | 'fake_network_pipe.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 33 | 'frame_generator_capturer.cc', |
| 34 | 'frame_generator_capturer.h', |
stefan@webrtc.org | 7e9315b | 2013-12-04 10:24:26 +0000 | [diff] [blame] | 35 | 'mock_transport.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 36 | 'null_transport.cc', |
| 37 | 'null_transport.h', |
pbos@webrtc.org | 4b5625e | 2014-08-06 16:26:56 +0000 | [diff] [blame] | 38 | 'rtp_file_reader.cc', |
| 39 | 'rtp_file_reader.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 40 | 'rtp_rtcp_observer.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 41 | 'run_loop.cc', |
| 42 | 'run_loop.h', |
| 43 | 'statistics.cc', |
| 44 | 'statistics.h', |
| 45 | 'vcm_capturer.cc', |
| 46 | 'vcm_capturer.h', |
| 47 | 'video_capturer.cc', |
| 48 | 'video_capturer.h', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 49 | 'win/run_loop_win.cc', |
| 50 | ], |
| 51 | 'conditions': [ |
| 52 | ['OS=="win"', { |
| 53 | 'sources!': [ |
| 54 | 'run_loop.cc', |
| 55 | ], |
| 56 | }], |
| 57 | ], |
| 58 | 'dependencies': [ |
| 59 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 60 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 61 | '<(webrtc_root)/modules/modules.gyp:media_file', |
andresp@webrtc.org | a74eda1 | 2014-09-17 11:50:19 +0000 | [diff] [blame^] | 62 | '<(webrtc_root)/modules/modules.gyp:video_capture_module_impl', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 63 | '<(webrtc_root)/test/test.gyp:frame_generator', |
| 64 | '<(webrtc_root)/test/test.gyp:test_support', |
pbos@webrtc.org | 994d0b7 | 2014-06-27 08:47:52 +0000 | [diff] [blame] | 65 | '<(webrtc_root)/webrtc.gyp:webrtc', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 66 | ], |
| 67 | }, |
| 68 | { |
| 69 | 'target_name': 'webrtc_test_renderer', |
| 70 | 'type': 'static_library', |
| 71 | 'sources': [ |
| 72 | 'gl/gl_renderer.cc', |
| 73 | 'gl/gl_renderer.h', |
| 74 | 'linux/glx_renderer.cc', |
| 75 | 'linux/glx_renderer.h', |
| 76 | 'linux/video_renderer_linux.cc', |
| 77 | 'mac/video_renderer_mac.h', |
| 78 | 'mac/video_renderer_mac.mm', |
| 79 | 'null_platform_renderer.cc', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 80 | 'video_renderer.cc', |
| 81 | 'video_renderer.h', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 82 | 'win/d3d_renderer.cc', |
| 83 | 'win/d3d_renderer.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 84 | ], |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 85 | 'conditions': [ |
| 86 | ['OS=="linux"', { |
| 87 | 'sources!': [ |
| 88 | 'null_platform_renderer.cc', |
| 89 | ], |
| 90 | }], |
| 91 | ['OS=="mac"', { |
| 92 | 'sources!': [ |
| 93 | 'null_platform_renderer.cc', |
| 94 | ], |
| 95 | }], |
| 96 | ['OS!="linux" and OS!="mac"', { |
| 97 | 'sources!' : [ |
| 98 | 'gl/gl_renderer.cc', |
| 99 | 'gl/gl_renderer.h', |
| 100 | ], |
| 101 | }], |
| 102 | ['OS=="win"', { |
| 103 | 'sources!': [ |
| 104 | 'null_platform_renderer.cc', |
| 105 | ], |
| 106 | }], |
| 107 | ], |
| 108 | 'dependencies': [ |
| 109 | '<(DEPTH)/testing/gtest.gyp:gtest', |
andresp@webrtc.org | a74eda1 | 2014-09-17 11:50:19 +0000 | [diff] [blame^] | 110 | '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 111 | '<(webrtc_root)/modules/modules.gyp:media_file', |
| 112 | '<(webrtc_root)/test/test.gyp:frame_generator', |
| 113 | '<(webrtc_root)/test/test.gyp:test_support', |
| 114 | ], |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 115 | 'direct_dependent_settings': { |
| 116 | 'conditions': [ |
| 117 | ['OS=="linux"', { |
| 118 | 'libraries': [ |
| 119 | '-lXext', |
| 120 | '-lX11', |
| 121 | '-lGL', |
| 122 | ], |
| 123 | }], |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 124 | ['OS=="android"', { |
| 125 | 'libraries' : [ |
| 126 | '-lGLESv2', '-llog', |
| 127 | ], |
| 128 | }], |
| 129 | ['OS=="mac"', { |
| 130 | 'xcode_settings' : { |
| 131 | 'OTHER_LDFLAGS' : [ |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 132 | '-framework Cocoa', |
| 133 | '-framework OpenGL', |
| 134 | '-framework CoreVideo', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 135 | ], |
| 136 | }, |
| 137 | }], |
| 138 | ], |
| 139 | }, |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 140 | }, |
| 141 | { |
| 142 | # This target is only needed since the video render module builds platform |
| 143 | # specific code and depends on these libraries. This target should be |
| 144 | # removed as soon as the new video API doesn't depend on the module. |
| 145 | # TODO(mflodman) Remove this target as described above. |
| 146 | 'target_name': 'webrtc_test_video_render_dependencies', |
| 147 | 'type': 'static_library', |
| 148 | 'direct_dependent_settings': { |
| 149 | 'conditions': [ |
| 150 | ['OS=="linux"', { |
| 151 | 'libraries': [ |
| 152 | '-lXext', |
| 153 | '-lX11', |
| 154 | '-lGL', |
| 155 | ], |
| 156 | }], |
| 157 | ['OS=="android"', { |
| 158 | 'libraries' : [ |
| 159 | '-lGLESv2', '-llog', |
| 160 | ], |
| 161 | }], |
| 162 | ['OS=="mac"', { |
| 163 | 'xcode_settings' : { |
| 164 | 'OTHER_LDFLAGS' : [ |
| 165 | '-framework Cocoa', |
| 166 | '-framework OpenGL', |
| 167 | '-framework CoreVideo', |
| 168 | ], |
| 169 | }, |
| 170 | }], |
| 171 | ], |
| 172 | }, |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 173 | }, |
| 174 | ], |
stefan@webrtc.org | faada6e | 2013-12-18 20:28:25 +0000 | [diff] [blame] | 175 | 'conditions': [ |
| 176 | ['include_tests==1', { |
| 177 | 'targets': [ |
| 178 | { |
| 179 | 'target_name': 'webrtc_test_common_unittests', |
| 180 | 'type': '<(gtest_target_type)', |
| 181 | 'dependencies': [ |
| 182 | 'webrtc_test_common', |
| 183 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 184 | '<(DEPTH)/testing/gmock.gyp:gmock', |
| 185 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 186 | ], |
| 187 | 'sources': [ |
| 188 | 'fake_network_pipe_unittest.cc', |
pbos@webrtc.org | 4b5625e | 2014-08-06 16:26:56 +0000 | [diff] [blame] | 189 | 'rtp_file_reader_unittest.cc', |
stefan@webrtc.org | faada6e | 2013-12-18 20:28:25 +0000 | [diff] [blame] | 190 | ], |
| 191 | }, |
| 192 | ], #targets |
| 193 | }], # include_tests |
| 194 | ], # conditions |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 195 | } |