blob: 8c8774fba2987daa1c8a50beaea7358df3b62985 [file] [log] [blame]
pbos@webrtc.org16e03b72013-10-28 16:32:01 +00001# 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.org994d0b72014-06-27 08:47:52 +000017 'call_test.cc',
18 'call_test.h',
sprang@webrtc.org8b881922013-12-10 10:05:17 +000019 'configurable_frame_size_encoder.cc',
20 'configurable_frame_size_encoder.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000021 'direct_transport.cc',
22 'direct_transport.h',
pbos@webrtc.orgf577ae92014-03-19 08:43:57 +000023 'encoder_settings.cc',
24 'encoder_settings.h',
stefan@webrtc.orgb082ade2013-11-18 11:45:11 +000025 'fake_audio_device.cc',
26 'fake_audio_device.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000027 'fake_decoder.cc',
28 'fake_decoder.h',
29 'fake_encoder.cc',
30 'fake_encoder.h',
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +000031 'fake_network_pipe.cc',
32 'fake_network_pipe.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000033 'frame_generator_capturer.cc',
34 'frame_generator_capturer.h',
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +000035 'mock_transport.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000036 'null_transport.cc',
37 'null_transport.h',
38 'rtp_rtcp_observer.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000039 '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.orgeae79242014-06-05 09:32:51 +000047 '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.orgeae79242014-06-05 09:32:51 +000059 '<(webrtc_root)/modules/modules.gyp:media_file',
pbos@webrtc.org994d0b72014-06-27 08:47:52 +000060 '<(webrtc_root)/modules/modules.gyp:video_capture_module',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000061 '<(webrtc_root)/test/test.gyp:frame_generator',
62 '<(webrtc_root)/test/test.gyp:test_support',
pbos@webrtc.org994d0b72014-06-27 08:47:52 +000063 '<(webrtc_root)/webrtc.gyp:webrtc',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000064 ],
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.org16e03b72013-10-28 16:32:01 +000078 'video_renderer.cc',
79 'video_renderer.h',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000080 'win/d3d_renderer.cc',
81 'win/d3d_renderer.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000082 ],
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000083 '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.org16e03b72013-10-28 16:32:01 +0000113 'direct_dependent_settings': {
114 'conditions': [
115 ['OS=="linux"', {
116 'libraries': [
117 '-lXext',
118 '-lX11',
119 '-lGL',
120 ],
121 }],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000122 ['OS=="android"', {
123 'libraries' : [
124 '-lGLESv2', '-llog',
125 ],
126 }],
127 ['OS=="mac"', {
128 'xcode_settings' : {
129 'OTHER_LDFLAGS' : [
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000130 '-framework Cocoa',
131 '-framework OpenGL',
132 '-framework CoreVideo',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000133 ],
134 },
135 }],
136 ],
137 },
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000138 },
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.org16e03b72013-10-28 16:32:01 +0000171 },
172 ],
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +0000173 '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.org16e03b72013-10-28 16:32:01 +0000192}