blob: 6920ab8437b05f0d50171a316d92b46469e3cafa [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': [
sprang@webrtc.org8b881922013-12-10 10:05:17 +000017 'configurable_frame_size_encoder.cc',
18 'configurable_frame_size_encoder.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000019 'direct_transport.cc',
20 'direct_transport.h',
stefan@webrtc.orgb082ade2013-11-18 11:45:11 +000021 'fake_audio_device.cc',
22 'fake_audio_device.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000023 'fake_decoder.cc',
24 'fake_decoder.h',
25 'fake_encoder.cc',
26 'fake_encoder.h',
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +000027 'fake_network_pipe.cc',
28 'fake_network_pipe.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000029 'flags.cc',
30 'flags.h',
31 'frame_generator_capturer.cc',
32 'frame_generator_capturer.h',
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +000033 'mock_transport.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000034 'null_platform_renderer.cc',
35 'null_transport.cc',
36 'null_transport.h',
37 'rtp_rtcp_observer.h',
38 'run_tests.cc',
39 'run_tests.h',
40 'run_loop.cc',
41 'run_loop.h',
42 'statistics.cc',
43 'statistics.h',
44 'vcm_capturer.cc',
45 'vcm_capturer.h',
46 'video_capturer.cc',
47 'video_capturer.h',
48 'video_renderer.cc',
49 'video_renderer.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000050 ],
pbos@webrtc.org95153cc2014-03-12 13:22:00 +000051 # TODO(pbos): As far as I can tell these are dependencies from
52 # video_render and they should really not be here. This target provides
53 # no platform-specific rendering.
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000054 'direct_dependent_settings': {
55 'conditions': [
56 ['OS=="linux"', {
57 'libraries': [
58 '-lXext',
59 '-lX11',
60 '-lGL',
61 ],
62 }],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000063 ['OS=="android"', {
64 'libraries' : [
65 '-lGLESv2', '-llog',
66 ],
67 }],
68 ['OS=="mac"', {
69 'xcode_settings' : {
70 'OTHER_LDFLAGS' : [
71 '-framework Foundation',
72 '-framework AppKit',
73 '-framework Cocoa',
74 '-framework OpenGL',
75 '-framework CoreVideo',
76 '-framework CoreAudio',
77 '-framework AudioToolbox',
78 ],
79 },
80 }],
81 ],
82 },
83 'dependencies': [
84 '<(DEPTH)/testing/gtest.gyp:gtest',
85 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
86 '<(webrtc_root)/modules/modules.gyp:video_capture_module',
stefan@webrtc.orgb082ade2013-11-18 11:45:11 +000087 '<(webrtc_root)/modules/modules.gyp:media_file',
pbos@webrtc.org724947b2013-12-11 16:26:16 +000088 '<(webrtc_root)/test/test.gyp:frame_generator',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000089 '<(webrtc_root)/test/test.gyp:test_support',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000090 ],
91 },
92 ],
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +000093 'conditions': [
94 ['include_tests==1', {
95 'targets': [
96 {
97 'target_name': 'webrtc_test_common_unittests',
98 'type': '<(gtest_target_type)',
99 'dependencies': [
100 'webrtc_test_common',
101 '<(DEPTH)/testing/gtest.gyp:gtest',
102 '<(DEPTH)/testing/gmock.gyp:gmock',
103 '<(webrtc_root)/test/test.gyp:test_support_main',
104 ],
105 'sources': [
106 'fake_network_pipe_unittest.cc',
107 ],
108 },
109 ], #targets
110 }], # include_tests
111 ], # conditions
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000112}