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