OLD | NEW |
| (Empty) |
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': [ | |
17 'call_test.cc', | |
18 'call_test.h', | |
19 'configurable_frame_size_encoder.cc', | |
20 'configurable_frame_size_encoder.h', | |
21 'constants.cc', | |
22 'constants.h', | |
23 'direct_transport.cc', | |
24 'direct_transport.h', | |
25 'drifting_clock.cc', | |
26 'drifting_clock.h', | |
27 'encoder_settings.cc', | |
28 'encoder_settings.h', | |
29 'fake_audio_device.cc', | |
30 'fake_audio_device.h', | |
31 'fake_decoder.cc', | |
32 'fake_decoder.h', | |
33 'fake_encoder.cc', | |
34 'fake_encoder.h', | |
35 'fake_network_pipe.cc', | |
36 'fake_network_pipe.h', | |
37 'frame_generator_capturer.cc', | |
38 'frame_generator_capturer.h', | |
39 'layer_filtering_transport.cc', | |
40 'layer_filtering_transport.h', | |
41 'mock_transport.h', | |
42 'mock_voe_channel_proxy.h', | |
43 'mock_voice_engine.h', | |
44 'null_transport.cc', | |
45 'null_transport.h', | |
46 'rtp_rtcp_observer.h', | |
47 'run_loop.cc', | |
48 'run_loop.h', | |
49 'statistics.cc', | |
50 'statistics.h', | |
51 'vcm_capturer.cc', | |
52 'vcm_capturer.h', | |
53 'video_capturer.cc', | |
54 'video_capturer.h', | |
55 'win/run_loop_win.cc', | |
56 ], | |
57 'conditions': [ | |
58 ['OS=="win"', { | |
59 'sources!': [ | |
60 'run_loop.cc', | |
61 ], | |
62 }], | |
63 ], | |
64 'dependencies': [ | |
65 '<(DEPTH)/testing/gmock.gyp:gmock', | |
66 '<(DEPTH)/testing/gtest.gyp:gtest', | |
67 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', | |
68 '<(webrtc_root)/base/base.gyp:rtc_base', | |
69 '<(webrtc_root)/common.gyp:webrtc_common', | |
70 '<(webrtc_root)/modules/modules.gyp:media_file', | |
71 '<(webrtc_root)/modules/modules.gyp:video_render', | |
72 '<(webrtc_root)/test/test.gyp:video_test_common', | |
73 '<(webrtc_root)/test/test.gyp:test_support', | |
74 '<(webrtc_root)/test/test.gyp:rtp_test_utils', | |
75 '<(webrtc_root)/webrtc.gyp:webrtc', | |
76 ], | |
77 }, | |
78 { | |
79 'target_name': 'webrtc_test_renderer', | |
80 'type': 'static_library', | |
81 'sources': [ | |
82 'gl/gl_renderer.cc', | |
83 'gl/gl_renderer.h', | |
84 'linux/glx_renderer.cc', | |
85 'linux/glx_renderer.h', | |
86 'linux/video_renderer_linux.cc', | |
87 'mac/video_renderer_mac.h', | |
88 'mac/video_renderer_mac.mm', | |
89 'null_platform_renderer.cc', | |
90 'video_renderer.cc', | |
91 'video_renderer.h', | |
92 'win/d3d_renderer.cc', | |
93 'win/d3d_renderer.h', | |
94 ], | |
95 'conditions': [ | |
96 ['OS=="linux"', { | |
97 'sources!': [ | |
98 'null_platform_renderer.cc', | |
99 ], | |
100 }], | |
101 ['OS=="mac"', { | |
102 'sources!': [ | |
103 'null_platform_renderer.cc', | |
104 ], | |
105 }], | |
106 ['OS!="linux" and OS!="mac"', { | |
107 'sources!' : [ | |
108 'gl/gl_renderer.cc', | |
109 'gl/gl_renderer.h', | |
110 ], | |
111 }], | |
112 ['OS=="win"', { | |
113 'sources!': [ | |
114 'null_platform_renderer.cc', | |
115 ], | |
116 'include_dirs': [ | |
117 '<(directx_sdk_path)/Include', | |
118 ], | |
119 }], | |
120 ['OS=="win" and clang==1', { | |
121 'msvs_settings': { | |
122 'VCCLCompilerTool': { | |
123 'AdditionalOptions': [ | |
124 # Disable warnings failing when compiling with Clang on Windows. | |
125 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | |
126 '-Wno-bool-conversion', | |
127 '-Wno-comment', | |
128 '-Wno-delete-non-virtual-dtor', | |
129 ], | |
130 }, | |
131 }, | |
132 }], | |
133 ], | |
134 'dependencies': [ | |
135 '<(DEPTH)/testing/gtest.gyp:gtest', | |
136 '<(webrtc_root)/modules/modules.gyp:media_file', | |
137 '<(webrtc_root)/test/test.gyp:video_test_common', | |
138 '<(webrtc_root)/test/test.gyp:test_support', | |
139 ], | |
140 'direct_dependent_settings': { | |
141 'conditions': [ | |
142 ['OS=="linux"', { | |
143 'libraries': [ | |
144 '-lXext', | |
145 '-lX11', | |
146 '-lGL', | |
147 ], | |
148 }], | |
149 ['OS=="android"', { | |
150 'libraries' : [ | |
151 '-lGLESv2', '-llog', | |
152 ], | |
153 }], | |
154 ['OS=="mac"', { | |
155 'xcode_settings' : { | |
156 'OTHER_LDFLAGS' : [ | |
157 '-framework Cocoa', | |
158 '-framework OpenGL', | |
159 '-framework CoreVideo', | |
160 ], | |
161 }, | |
162 }], | |
163 ], | |
164 }, | |
165 }, | |
166 ], | |
167 'conditions': [ | |
168 ['include_tests==1', { | |
169 'targets': [ | |
170 { | |
171 'target_name': 'webrtc_test_common_unittests', | |
172 'type': '<(gtest_target_type)', | |
173 'dependencies': [ | |
174 'webrtc_test_common', | |
175 '<(DEPTH)/testing/gtest.gyp:gtest', | |
176 '<(DEPTH)/testing/gmock.gyp:gmock', | |
177 '<(webrtc_root)/modules/modules.gyp:video_capture', | |
178 '<(webrtc_root)/test/test.gyp:test_support_main', | |
179 ], | |
180 'sources': [ | |
181 'fake_network_pipe_unittest.cc', | |
182 'frame_generator_unittest.cc', | |
183 'rtp_file_reader_unittest.cc', | |
184 'rtp_file_writer_unittest.cc', | |
185 ], | |
186 }, | |
187 ], #targets | |
188 }], # include_tests | |
189 ], # conditions | |
190 } | |
OLD | NEW |