pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 1 | # 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.org | 8b88192 | 2013-12-10 10:05:17 +0000 | [diff] [blame] | 17 | 'configurable_frame_size_encoder.cc', |
| 18 | 'configurable_frame_size_encoder.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 19 | 'direct_transport.cc', |
| 20 | 'direct_transport.h', |
stefan@webrtc.org | b082ade | 2013-11-18 11:45:11 +0000 | [diff] [blame] | 21 | 'fake_audio_device.cc', |
| 22 | 'fake_audio_device.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 23 | 'fake_decoder.cc', |
| 24 | 'fake_decoder.h', |
| 25 | 'fake_encoder.cc', |
| 26 | 'fake_encoder.h', |
stefan@webrtc.org | faada6e | 2013-12-18 20:28:25 +0000 | [diff] [blame] | 27 | 'fake_network_pipe.cc', |
| 28 | 'fake_network_pipe.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 29 | 'flags.cc', |
| 30 | 'flags.h', |
| 31 | 'frame_generator_capturer.cc', |
| 32 | 'frame_generator_capturer.h', |
stefan@webrtc.org | 7e9315b | 2013-12-04 10:24:26 +0000 | [diff] [blame] | 33 | 'mock_transport.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 34 | '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.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 50 | ], |
pbos@webrtc.org | 95153cc | 2014-03-12 13:22:00 +0000 | [diff] [blame^] | 51 | # 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.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 54 | 'direct_dependent_settings': { |
| 55 | 'conditions': [ |
| 56 | ['OS=="linux"', { |
| 57 | 'libraries': [ |
| 58 | '-lXext', |
| 59 | '-lX11', |
| 60 | '-lGL', |
| 61 | ], |
| 62 | }], |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 63 | ['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.org | b082ade | 2013-11-18 11:45:11 +0000 | [diff] [blame] | 87 | '<(webrtc_root)/modules/modules.gyp:media_file', |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 +0000 | [diff] [blame] | 88 | '<(webrtc_root)/test/test.gyp:frame_generator', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 89 | '<(webrtc_root)/test/test.gyp:test_support', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 90 | ], |
| 91 | }, |
| 92 | ], |
stefan@webrtc.org | faada6e | 2013-12-18 20:28:25 +0000 | [diff] [blame] | 93 | '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.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 112 | } |