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