blob: 477ec0fc1a7a2747665fb7160ef82e2f4b15fb25 [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',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +000038 'rtp_file_reader.cc',
39 'rtp_file_reader.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000040 'rtp_rtcp_observer.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000041 '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.orgeae79242014-06-05 09:32:51 +000049 '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',
henrik.lundin@webrtc.org38c121c2014-09-30 11:08:44 +000061 '<(webrtc_root)/base/base.gyp:rtc_base',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000062 '<(webrtc_root)/modules/modules.gyp:media_file',
andresp@webrtc.orga74eda12014-09-17 11:50:19 +000063 '<(webrtc_root)/modules/modules.gyp:video_capture_module_impl',
andresp@webrtc.orgab071da2014-09-18 08:58:15 +000064 '<(webrtc_root)/modules/modules.gyp:video_render_module_impl',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000065 '<(webrtc_root)/test/test.gyp:frame_generator',
66 '<(webrtc_root)/test/test.gyp:test_support',
pbos@webrtc.org994d0b72014-06-27 08:47:52 +000067 '<(webrtc_root)/webrtc.gyp:webrtc',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000068 ],
69 },
70 {
71 'target_name': 'webrtc_test_renderer',
72 'type': 'static_library',
73 'sources': [
74 'gl/gl_renderer.cc',
75 'gl/gl_renderer.h',
76 'linux/glx_renderer.cc',
77 'linux/glx_renderer.h',
78 'linux/video_renderer_linux.cc',
79 'mac/video_renderer_mac.h',
80 'mac/video_renderer_mac.mm',
81 'null_platform_renderer.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000082 'video_renderer.cc',
83 'video_renderer.h',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000084 'win/d3d_renderer.cc',
85 'win/d3d_renderer.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000086 ],
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000087 'conditions': [
88 ['OS=="linux"', {
89 'sources!': [
90 'null_platform_renderer.cc',
91 ],
92 }],
93 ['OS=="mac"', {
94 'sources!': [
95 'null_platform_renderer.cc',
96 ],
97 }],
98 ['OS!="linux" and OS!="mac"', {
99 'sources!' : [
100 'gl/gl_renderer.cc',
101 'gl/gl_renderer.h',
102 ],
103 }],
104 ['OS=="win"', {
105 'sources!': [
106 'null_platform_renderer.cc',
107 ],
andresp@webrtc.orgab071da2014-09-18 08:58:15 +0000108 'include_dirs': [
109 '<(directx_sdk_path)/Include',
110 ],
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000111 }],
112 ],
113 'dependencies': [
114 '<(DEPTH)/testing/gtest.gyp:gtest',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000115 '<(webrtc_root)/modules/modules.gyp:media_file',
116 '<(webrtc_root)/test/test.gyp:frame_generator',
117 '<(webrtc_root)/test/test.gyp:test_support',
118 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000119 'direct_dependent_settings': {
120 'conditions': [
121 ['OS=="linux"', {
122 'libraries': [
123 '-lXext',
124 '-lX11',
125 '-lGL',
126 ],
127 }],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000128 ['OS=="android"', {
129 'libraries' : [
130 '-lGLESv2', '-llog',
131 ],
132 }],
133 ['OS=="mac"', {
134 'xcode_settings' : {
135 'OTHER_LDFLAGS' : [
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000136 '-framework Cocoa',
137 '-framework OpenGL',
138 '-framework CoreVideo',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000139 ],
140 },
141 }],
142 ],
143 },
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000144 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000145 ],
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +0000146 'conditions': [
147 ['include_tests==1', {
148 'targets': [
149 {
150 'target_name': 'webrtc_test_common_unittests',
151 'type': '<(gtest_target_type)',
152 'dependencies': [
153 'webrtc_test_common',
154 '<(DEPTH)/testing/gtest.gyp:gtest',
155 '<(DEPTH)/testing/gmock.gyp:gmock',
156 '<(webrtc_root)/test/test.gyp:test_support_main',
157 ],
158 'sources': [
159 'fake_network_pipe_unittest.cc',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000160 'rtp_file_reader_unittest.cc',
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +0000161 ],
162 },
163 ], #targets
164 }], # include_tests
165 ], # conditions
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000166}