blob: c7f6df5f568148d9498a3dc5266d48cbd5ff8308 [file] [log] [blame]
pbos@webrtc.org16e03b72013-10-28 16:32:011# 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': [
sprang@webrtc.org8b881922013-12-10 10:05:1717 'configurable_frame_size_encoder.cc',
18 'configurable_frame_size_encoder.h',
pbos@webrtc.org16e03b72013-10-28 16:32:0119 'direct_transport.cc',
20 'direct_transport.h',
stefan@webrtc.orgb082ade2013-11-18 11:45:1121 'fake_audio_device.cc',
22 'fake_audio_device.h',
pbos@webrtc.org16e03b72013-10-28 16:32:0123 'fake_decoder.cc',
24 'fake_decoder.h',
25 'fake_encoder.cc',
26 'fake_encoder.h',
27 'flags.cc',
28 'flags.h',
29 'frame_generator_capturer.cc',
30 'frame_generator_capturer.h',
pbos@webrtc.org16e03b72013-10-28 16:32:0131 'gl/gl_renderer.cc',
32 'gl/gl_renderer.h',
33 'linux/glx_renderer.cc',
34 'linux/glx_renderer.h',
35 'linux/video_renderer_linux.cc',
36 'mac/run_tests.mm',
37 'mac/video_renderer_mac.h',
38 'mac/video_renderer_mac.mm',
stefan@webrtc.org7e9315b2013-12-04 10:24:2639 'mock_transport.h',
pbos@webrtc.org16e03b72013-10-28 16:32:0140 'null_platform_renderer.cc',
41 'null_transport.cc',
42 'null_transport.h',
43 'rtp_rtcp_observer.h',
44 'run_tests.cc',
45 'run_tests.h',
46 'run_loop.cc',
47 'run_loop.h',
48 'statistics.cc',
49 'statistics.h',
50 'vcm_capturer.cc',
51 'vcm_capturer.h',
52 'video_capturer.cc',
53 'video_capturer.h',
54 'video_renderer.cc',
55 'video_renderer.h',
56 'win/d3d_renderer.cc',
57 'win/d3d_renderer.h',
58 'win/run_loop_win.cc',
59 ],
60 'conditions': [
61 ['OS=="linux"', {
62 'sources!': [
63 'null_platform_renderer.cc',
64 ],
65 }],
66 ['OS=="mac"', {
67 'sources!': [
68 'null_platform_renderer.cc',
69 'run_tests.cc',
70 ],
71 }],
72 ['OS!="linux" and OS!="mac"', {
73 'sources!' : [
74 'gl/gl_renderer.cc',
75 'gl/gl_renderer.h',
76 ],
77 }],
78 ['OS=="win"', {
79 'sources!': [
80 'null_platform_renderer.cc',
81 'run_loop.cc',
82 ],
83 }],
84 ],
85 'direct_dependent_settings': {
86 'conditions': [
87 ['OS=="linux"', {
88 'libraries': [
89 '-lXext',
90 '-lX11',
91 '-lGL',
92 ],
93 }],
94 #TODO(pbos) : These dependencies should not have to be here, they
95 # aren't used by test code directly, only by components
96 # used by the tests.
97 ['OS=="android"', {
98 'libraries' : [
99 '-lGLESv2', '-llog',
100 ],
101 }],
102 ['OS=="mac"', {
103 'xcode_settings' : {
104 'OTHER_LDFLAGS' : [
105 '-framework Foundation',
106 '-framework AppKit',
107 '-framework Cocoa',
108 '-framework OpenGL',
109 '-framework CoreVideo',
110 '-framework CoreAudio',
111 '-framework AudioToolbox',
112 ],
113 },
114 }],
115 ],
116 },
117 'dependencies': [
118 '<(DEPTH)/testing/gtest.gyp:gtest',
119 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
120 '<(webrtc_root)/modules/modules.gyp:video_capture_module',
stefan@webrtc.orgb082ade2013-11-18 11:45:11121 '<(webrtc_root)/modules/modules.gyp:media_file',
pbos@webrtc.org16e03b72013-10-28 16:32:01122 '<(webrtc_root)/test/test.gyp:test_support',
123 '<(webrtc_root)/common_video/common_video.gyp:frame_generator',
124 ],
125 },
126 ],
127}