summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/webrtc/test/webrtc_test_common.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/webrtc/test/webrtc_test_common.gyp')
-rw-r--r--chromium/third_party/webrtc/test/webrtc_test_common.gyp124
1 files changed, 93 insertions, 31 deletions
diff --git a/chromium/third_party/webrtc/test/webrtc_test_common.gyp b/chromium/third_party/webrtc/test/webrtc_test_common.gyp
index eae66a04406..556a4450189 100644
--- a/chromium/third_party/webrtc/test/webrtc_test_common.gyp
+++ b/chromium/third_party/webrtc/test/webrtc_test_common.gyp
@@ -18,31 +18,22 @@
'configurable_frame_size_encoder.h',
'direct_transport.cc',
'direct_transport.h',
+ 'encoder_settings.cc',
+ 'encoder_settings.h',
'fake_audio_device.cc',
'fake_audio_device.h',
'fake_decoder.cc',
'fake_decoder.h',
'fake_encoder.cc',
'fake_encoder.h',
- 'flags.cc',
- 'flags.h',
+ 'fake_network_pipe.cc',
+ 'fake_network_pipe.h',
'frame_generator_capturer.cc',
'frame_generator_capturer.h',
- 'gl/gl_renderer.cc',
- 'gl/gl_renderer.h',
- 'linux/glx_renderer.cc',
- 'linux/glx_renderer.h',
- 'linux/video_renderer_linux.cc',
- 'mac/run_tests.mm',
- 'mac/video_renderer_mac.h',
- 'mac/video_renderer_mac.mm',
'mock_transport.h',
- 'null_platform_renderer.cc',
'null_transport.cc',
'null_transport.h',
'rtp_rtcp_observer.h',
- 'run_tests.cc',
- 'run_tests.h',
'run_loop.cc',
'run_loop.h',
'statistics.cc',
@@ -51,11 +42,40 @@
'vcm_capturer.h',
'video_capturer.cc',
'video_capturer.h',
+ 'win/run_loop_win.cc',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'sources!': [
+ 'run_loop.cc',
+ ],
+ }],
+ ],
+ 'dependencies': [
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
+ '<(webrtc_root)/modules/modules.gyp:video_capture_module',
+ '<(webrtc_root)/modules/modules.gyp:media_file',
+ '<(webrtc_root)/test/test.gyp:frame_generator',
+ '<(webrtc_root)/test/test.gyp:test_support',
+ ],
+ },
+ {
+ 'target_name': 'webrtc_test_renderer',
+ 'type': 'static_library',
+ 'sources': [
+ 'gl/gl_renderer.cc',
+ 'gl/gl_renderer.h',
+ 'linux/glx_renderer.cc',
+ 'linux/glx_renderer.h',
+ 'linux/video_renderer_linux.cc',
+ 'mac/video_renderer_mac.h',
+ 'mac/video_renderer_mac.mm',
+ 'null_platform_renderer.cc',
'video_renderer.cc',
'video_renderer.h',
'win/d3d_renderer.cc',
'win/d3d_renderer.h',
- 'win/run_loop_win.cc',
],
'conditions': [
['OS=="linux"', {
@@ -66,7 +86,6 @@
['OS=="mac"', {
'sources!': [
'null_platform_renderer.cc',
- 'run_tests.cc',
],
}],
['OS!="linux" and OS!="mac"', {
@@ -78,10 +97,49 @@
['OS=="win"', {
'sources!': [
'null_platform_renderer.cc',
- 'run_loop.cc',
],
}],
],
+ 'dependencies': [
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ '<(webrtc_root)/modules/modules.gyp:video_capture_module',
+ '<(webrtc_root)/modules/modules.gyp:media_file',
+ '<(webrtc_root)/test/test.gyp:frame_generator',
+ '<(webrtc_root)/test/test.gyp:test_support',
+ ],
+ 'direct_dependent_settings': {
+ 'conditions': [
+ ['OS=="linux"', {
+ 'libraries': [
+ '-lXext',
+ '-lX11',
+ '-lGL',
+ ],
+ }],
+ ['OS=="android"', {
+ 'libraries' : [
+ '-lGLESv2', '-llog',
+ ],
+ }],
+ ['OS=="mac"', {
+ 'xcode_settings' : {
+ 'OTHER_LDFLAGS' : [
+ '-framework Cocoa',
+ '-framework OpenGL',
+ '-framework CoreVideo',
+ ],
+ },
+ }],
+ ],
+ },
+ },
+ {
+ # This target is only needed since the video render module builds platform
+ # specific code and depends on these libraries. This target should be
+ # removed as soon as the new video API doesn't depend on the module.
+ # TODO(mflodman) Remove this target as described above.
+ 'target_name': 'webrtc_test_video_render_dependencies',
+ 'type': 'static_library',
'direct_dependent_settings': {
'conditions': [
['OS=="linux"', {
@@ -91,9 +149,6 @@
'-lGL',
],
}],
- #TODO(pbos) : These dependencies should not have to be here, they
- # aren't used by test code directly, only by components
- # used by the tests.
['OS=="android"', {
'libraries' : [
'-lGLESv2', '-llog',
@@ -102,26 +157,33 @@
['OS=="mac"', {
'xcode_settings' : {
'OTHER_LDFLAGS' : [
- '-framework Foundation',
- '-framework AppKit',
'-framework Cocoa',
'-framework OpenGL',
'-framework CoreVideo',
- '-framework CoreAudio',
- '-framework AudioToolbox',
],
},
}],
],
},
- 'dependencies': [
- '<(DEPTH)/testing/gtest.gyp:gtest',
- '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
- '<(webrtc_root)/modules/modules.gyp:video_capture_module',
- '<(webrtc_root)/modules/modules.gyp:media_file',
- '<(webrtc_root)/test/test.gyp:frame_generator',
- '<(webrtc_root)/test/test.gyp:test_support',
- ],
},
],
+ 'conditions': [
+ ['include_tests==1', {
+ 'targets': [
+ {
+ 'target_name': 'webrtc_test_common_unittests',
+ 'type': '<(gtest_target_type)',
+ 'dependencies': [
+ 'webrtc_test_common',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ '<(DEPTH)/testing/gmock.gyp:gmock',
+ '<(webrtc_root)/test/test.gyp:test_support_main',
+ ],
+ 'sources': [
+ 'fake_network_pipe_unittest.cc',
+ ],
+ },
+ ], #targets
+ }], # include_tests
+ ], # conditions
}