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', |
henrik.lundin@webrtc.org | 38c121c | 2014-09-30 11:08:44 +0000 | [diff] [blame] | 59 | '<(webrtc_root)/base/base.gyp:rtc_base', |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 60 | '<(webrtc_root)/common.gyp:webrtc_common', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 61 | '<(webrtc_root)/modules/modules.gyp:media_file', |
kjellander@webrtc.org | f58fe0a | 2015-02-11 07:47:00 +0000 | [diff] [blame] | 62 | '<(webrtc_root)/modules/modules.gyp:video_render', |
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 | aca5803 | 2014-10-27 18:01:03 +0000 | [diff] [blame] | 65 | '<(webrtc_root)/test/test.gyp:rtp_test_utils', |
pbos@webrtc.org | 994d0b7 | 2014-06-27 08:47:52 +0000 | [diff] [blame] | 66 | '<(webrtc_root)/webrtc.gyp:webrtc', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 67 | ], |
| 68 | }, |
| 69 | { |
| 70 | 'target_name': 'webrtc_test_renderer', |
| 71 | 'type': 'static_library', |
| 72 | 'sources': [ |
| 73 | 'gl/gl_renderer.cc', |
| 74 | 'gl/gl_renderer.h', |
| 75 | 'linux/glx_renderer.cc', |
| 76 | 'linux/glx_renderer.h', |
| 77 | 'linux/video_renderer_linux.cc', |
| 78 | 'mac/video_renderer_mac.h', |
| 79 | 'mac/video_renderer_mac.mm', |
| 80 | 'null_platform_renderer.cc', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 81 | 'video_renderer.cc', |
| 82 | 'video_renderer.h', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 83 | 'win/d3d_renderer.cc', |
| 84 | 'win/d3d_renderer.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 85 | ], |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 86 | 'conditions': [ |
| 87 | ['OS=="linux"', { |
| 88 | 'sources!': [ |
| 89 | 'null_platform_renderer.cc', |
| 90 | ], |
| 91 | }], |
| 92 | ['OS=="mac"', { |
| 93 | 'sources!': [ |
| 94 | 'null_platform_renderer.cc', |
| 95 | ], |
| 96 | }], |
| 97 | ['OS!="linux" and OS!="mac"', { |
| 98 | 'sources!' : [ |
| 99 | 'gl/gl_renderer.cc', |
| 100 | 'gl/gl_renderer.h', |
| 101 | ], |
| 102 | }], |
| 103 | ['OS=="win"', { |
| 104 | 'sources!': [ |
| 105 | 'null_platform_renderer.cc', |
| 106 | ], |
andresp@webrtc.org | ab071da | 2014-09-18 08:58:15 +0000 | [diff] [blame] | 107 | 'include_dirs': [ |
| 108 | '<(directx_sdk_path)/Include', |
| 109 | ], |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 110 | }], |
| 111 | ], |
| 112 | 'dependencies': [ |
| 113 | '<(DEPTH)/testing/gtest.gyp:gtest', |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 114 | '<(webrtc_root)/modules/modules.gyp:media_file', |
| 115 | '<(webrtc_root)/test/test.gyp:frame_generator', |
| 116 | '<(webrtc_root)/test/test.gyp:test_support', |
| 117 | ], |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 118 | 'direct_dependent_settings': { |
| 119 | 'conditions': [ |
| 120 | ['OS=="linux"', { |
| 121 | 'libraries': [ |
| 122 | '-lXext', |
| 123 | '-lX11', |
| 124 | '-lGL', |
| 125 | ], |
| 126 | }], |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 127 | ['OS=="android"', { |
| 128 | 'libraries' : [ |
| 129 | '-lGLESv2', '-llog', |
| 130 | ], |
| 131 | }], |
| 132 | ['OS=="mac"', { |
| 133 | 'xcode_settings' : { |
| 134 | 'OTHER_LDFLAGS' : [ |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 135 | '-framework Cocoa', |
| 136 | '-framework OpenGL', |
| 137 | '-framework CoreVideo', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 138 | ], |
| 139 | }, |
| 140 | }], |
| 141 | ], |
| 142 | }, |
mflodman@webrtc.org | eae7924 | 2014-06-05 09:32:51 +0000 | [diff] [blame] | 143 | }, |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 144 | ], |
stefan@webrtc.org | faada6e | 2013-12-18 20:28:25 +0000 | [diff] [blame] | 145 | 'conditions': [ |
| 146 | ['include_tests==1', { |
| 147 | 'targets': [ |
| 148 | { |
| 149 | 'target_name': 'webrtc_test_common_unittests', |
| 150 | 'type': '<(gtest_target_type)', |
| 151 | 'dependencies': [ |
| 152 | 'webrtc_test_common', |
| 153 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 154 | '<(DEPTH)/testing/gmock.gyp:gmock', |
kjellander@webrtc.org | f58fe0a | 2015-02-11 07:47:00 +0000 | [diff] [blame] | 155 | '<(webrtc_root)/modules/modules.gyp:video_capture', |
stefan@webrtc.org | faada6e | 2013-12-18 20:28:25 +0000 | [diff] [blame] | 156 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 157 | ], |
| 158 | 'sources': [ |
| 159 | 'fake_network_pipe_unittest.cc', |
sprang@webrtc.org | 25dd1db | 2015-03-02 11:55:45 +0000 | [diff] [blame^] | 160 | 'frame_generator_unittest.cc', |
pbos@webrtc.org | 4b5625e | 2014-08-06 16:26:56 +0000 | [diff] [blame] | 161 | 'rtp_file_reader_unittest.cc', |
henrik.lundin@webrtc.org | 8331714 | 2014-12-01 11:25:04 +0000 | [diff] [blame] | 162 | 'rtp_file_writer_unittest.cc', |
stefan@webrtc.org | faada6e | 2013-12-18 20:28:25 +0000 | [diff] [blame] | 163 | ], |
| 164 | }, |
| 165 | ], #targets |
| 166 | }], # include_tests |
| 167 | ], # conditions |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 168 | } |