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