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