blob: 242b0cdea971f679e64374cd871c3c283fbe9400 [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',
henrik.lundin@webrtc.org38c121c2014-09-30 11:08:44 +000059 '<(webrtc_root)/base/base.gyp:rtc_base',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000060 '<(webrtc_root)/modules/modules.gyp:media_file',
andresp@webrtc.orgab071da2014-09-18 08:58:15 +000061 '<(webrtc_root)/modules/modules.gyp:video_render_module_impl',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000062 '<(webrtc_root)/test/test.gyp:frame_generator',
63 '<(webrtc_root)/test/test.gyp:test_support',
pbos@webrtc.orgaca58032014-10-27 18:01:03 +000064 '<(webrtc_root)/test/test.gyp:rtp_test_utils',
pbos@webrtc.org994d0b72014-06-27 08:47:52 +000065 '<(webrtc_root)/webrtc.gyp:webrtc',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000066 ],
67 },
68 {
69 'target_name': 'webrtc_test_renderer',
70 'type': 'static_library',
71 'sources': [
72 'gl/gl_renderer.cc',
73 'gl/gl_renderer.h',
74 'linux/glx_renderer.cc',
75 'linux/glx_renderer.h',
76 'linux/video_renderer_linux.cc',
77 'mac/video_renderer_mac.h',
78 'mac/video_renderer_mac.mm',
79 'null_platform_renderer.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000080 'video_renderer.cc',
81 'video_renderer.h',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000082 'win/d3d_renderer.cc',
83 'win/d3d_renderer.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000084 ],
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +000085 'conditions': [
86 ['OS=="linux"', {
87 'sources!': [
88 'null_platform_renderer.cc',
89 ],
90 }],
91 ['OS=="mac"', {
92 'sources!': [
93 'null_platform_renderer.cc',
94 ],
95 }],
96 ['OS!="linux" and OS!="mac"', {
97 'sources!' : [
98 'gl/gl_renderer.cc',
99 'gl/gl_renderer.h',
100 ],
101 }],
102 ['OS=="win"', {
103 'sources!': [
104 'null_platform_renderer.cc',
105 ],
andresp@webrtc.orgab071da2014-09-18 08:58:15 +0000106 'include_dirs': [
107 '<(directx_sdk_path)/Include',
108 ],
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000109 }],
110 ],
111 'dependencies': [
112 '<(DEPTH)/testing/gtest.gyp:gtest',
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000113 '<(webrtc_root)/modules/modules.gyp:media_file',
114 '<(webrtc_root)/test/test.gyp:frame_generator',
115 '<(webrtc_root)/test/test.gyp:test_support',
116 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000117 'direct_dependent_settings': {
118 'conditions': [
119 ['OS=="linux"', {
120 'libraries': [
121 '-lXext',
122 '-lX11',
123 '-lGL',
124 ],
125 }],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000126 ['OS=="android"', {
127 'libraries' : [
128 '-lGLESv2', '-llog',
129 ],
130 }],
131 ['OS=="mac"', {
132 'xcode_settings' : {
133 'OTHER_LDFLAGS' : [
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000134 '-framework Cocoa',
135 '-framework OpenGL',
136 '-framework CoreVideo',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000137 ],
138 },
139 }],
140 ],
141 },
mflodman@webrtc.orgeae79242014-06-05 09:32:51 +0000142 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000143 ],
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +0000144 'conditions': [
145 ['include_tests==1', {
146 'targets': [
147 {
148 'target_name': 'webrtc_test_common_unittests',
149 'type': '<(gtest_target_type)',
150 'dependencies': [
151 'webrtc_test_common',
152 '<(DEPTH)/testing/gtest.gyp:gtest',
153 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.orgad553a22014-10-23 08:24:02 +0000154 '<(webrtc_root)/modules/modules.gyp:video_capture_module_impl',
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +0000155 '<(webrtc_root)/test/test.gyp:test_support_main',
156 ],
157 'sources': [
158 'fake_network_pipe_unittest.cc',
pbos@webrtc.org4b5625e2014-08-06 16:26:56 +0000159 'rtp_file_reader_unittest.cc',
henrik.lundin@webrtc.org83317142014-12-01 11:25:04 +0000160 'rtp_file_writer_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}