blob: bec5803fcf36d7e3f6d61adc9a1b55918a33d32a [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',
pbos@webrtc.orgf577ae92014-03-19 08:43:57 +000021 'encoder_settings.cc',
22 'encoder_settings.h',
stefan@webrtc.orgb082ade2013-11-18 11:45:11 +000023 'fake_audio_device.cc',
24 'fake_audio_device.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000025 'fake_decoder.cc',
26 'fake_decoder.h',
27 'fake_encoder.cc',
28 'fake_encoder.h',
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +000029 'fake_network_pipe.cc',
30 'fake_network_pipe.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000031 'flags.cc',
32 'flags.h',
33 'frame_generator_capturer.cc',
34 'frame_generator_capturer.h',
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +000035 'mock_transport.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000036 'null_platform_renderer.cc',
37 'null_transport.cc',
38 'null_transport.h',
39 'rtp_rtcp_observer.h',
40 'run_tests.cc',
41 'run_tests.h',
42 'run_loop.cc',
43 'run_loop.h',
44 'statistics.cc',
45 'statistics.h',
46 'vcm_capturer.cc',
47 'vcm_capturer.h',
48 'video_capturer.cc',
49 'video_capturer.h',
50 'video_renderer.cc',
51 'video_renderer.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000052 ],
pbos@webrtc.org95153cc2014-03-12 13:22:00 +000053 # TODO(pbos): As far as I can tell these are dependencies from
54 # video_render and they should really not be here. This target provides
55 # no platform-specific rendering.
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000056 'direct_dependent_settings': {
57 'conditions': [
58 ['OS=="linux"', {
59 'libraries': [
60 '-lXext',
61 '-lX11',
62 '-lGL',
63 ],
64 }],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000065 ['OS=="android"', {
66 'libraries' : [
67 '-lGLESv2', '-llog',
68 ],
69 }],
70 ['OS=="mac"', {
71 'xcode_settings' : {
72 'OTHER_LDFLAGS' : [
73 '-framework Foundation',
74 '-framework AppKit',
75 '-framework Cocoa',
76 '-framework OpenGL',
77 '-framework CoreVideo',
78 '-framework CoreAudio',
79 '-framework AudioToolbox',
80 ],
81 },
82 }],
83 ],
84 },
85 'dependencies': [
86 '<(DEPTH)/testing/gtest.gyp:gtest',
87 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
88 '<(webrtc_root)/modules/modules.gyp:video_capture_module',
stefan@webrtc.orgb082ade2013-11-18 11:45:11 +000089 '<(webrtc_root)/modules/modules.gyp:media_file',
pbos@webrtc.org724947b2013-12-11 16:26:16 +000090 '<(webrtc_root)/test/test.gyp:frame_generator',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000091 '<(webrtc_root)/test/test.gyp:test_support',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000092 ],
93 },
94 ],
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +000095 'conditions': [
96 ['include_tests==1', {
97 'targets': [
98 {
99 'target_name': 'webrtc_test_common_unittests',
100 'type': '<(gtest_target_type)',
101 'dependencies': [
102 'webrtc_test_common',
103 '<(DEPTH)/testing/gtest.gyp:gtest',
104 '<(DEPTH)/testing/gmock.gyp:gmock',
105 '<(webrtc_root)/test/test.gyp:test_support_main',
106 ],
107 'sources': [
108 'fake_network_pipe_unittest.cc',
109 ],
110 },
111 ], #targets
112 }], # include_tests
113 ], # conditions
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000114}