Add .isolate file and _run target for video_engine_tests. Move tools/swarm_client to be untracked in all .isolate file, so refactorings in swarm_client doesn't require us updating all our .isolate files (similar to the changes for the Chromium tests done in: https://src.chromium.org/viewvc/chrome?view=rev&revision=218844) Update modules_unittests.isolate with new NetEq4 reference files needed. TEST=trybots passing I also setup a Chromium workspace where I patched third_party/webrtc with the changes in this CL, followed by compiling with the settings described in https://code.google.com/p/webrtc/issues/detail?id=1882#c11 I then verified that the video_engine_tests_apk dir was created in the output folder. BUG=1916,2462 R=andrew@webrtc.org, henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2344007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4925 4adac7df-926f-26a2-2b94-8c16560cd09d
184 lines
5.4 KiB
Python
184 lines
5.4 KiB
Python
# Copyright (c) 2013 The WebRTC project authors.All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS.All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'video_tests_common',
|
|
'type': 'static_library',
|
|
'sources': [
|
|
'common/direct_transport.cc',
|
|
'common/direct_transport.h',
|
|
'common/fake_decoder.cc',
|
|
'common/fake_decoder.h',
|
|
'common/fake_encoder.cc',
|
|
'common/fake_encoder.h',
|
|
'common/flags.cc',
|
|
'common/flags.h',
|
|
'common/frame_generator_capturer.cc',
|
|
'common/frame_generator_capturer.h',
|
|
'common/generate_ssrcs.cc',
|
|
'common/generate_ssrcs.h',
|
|
'common/gl/gl_renderer.cc',
|
|
'common/gl/gl_renderer.h',
|
|
'common/linux/glx_renderer.cc',
|
|
'common/linux/glx_renderer.h',
|
|
'common/linux/video_renderer_linux.cc',
|
|
'common/mac/run_tests.mm',
|
|
'common/mac/video_renderer_mac.h',
|
|
'common/mac/video_renderer_mac.mm',
|
|
'common/null_platform_renderer.cc',
|
|
'common/null_transport.cc',
|
|
'common/null_transport.h',
|
|
'common/rtp_rtcp_observer.h',
|
|
'common/run_tests.cc',
|
|
'common/run_tests.h',
|
|
'common/run_loop.cc',
|
|
'common/run_loop.h',
|
|
'common/statistics.cc',
|
|
'common/statistics.h',
|
|
'common/vcm_capturer.cc',
|
|
'common/vcm_capturer.h',
|
|
'common/video_capturer.cc',
|
|
'common/video_capturer.h',
|
|
'common/video_renderer.cc',
|
|
'common/video_renderer.h',
|
|
'common/win/d3d_renderer.cc',
|
|
'common/win/d3d_renderer.h',
|
|
'common/win/run_loop_win.cc',
|
|
],
|
|
'conditions': [
|
|
['OS=="linux"', {
|
|
'sources!': [
|
|
'common/null_platform_renderer.cc',
|
|
],
|
|
}],
|
|
['OS=="mac"', {
|
|
'sources!': [
|
|
'common/null_platform_renderer.cc',
|
|
'common/run_tests.cc',
|
|
],
|
|
}],
|
|
['OS!="linux" and OS!="mac"', {
|
|
'sources!' : [
|
|
'common/gl/gl_renderer.cc',
|
|
'common/gl/gl_renderer.h',
|
|
],
|
|
}],
|
|
['OS=="win"', {
|
|
'sources!': [
|
|
'common/null_platform_renderer.cc',
|
|
'common/run_loop.cc',
|
|
],
|
|
}],
|
|
],
|
|
'direct_dependent_settings': {
|
|
'conditions': [
|
|
['OS=="linux"', {
|
|
'libraries': [
|
|
'-lXext',
|
|
'-lX11',
|
|
'-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',
|
|
],
|
|
}],
|
|
['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)/test/test.gyp:test_support',
|
|
'video_engine_core',
|
|
'<(webrtc_root)/common_video/common_video.gyp:frame_generator',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'video_loopback',
|
|
'type': 'executable',
|
|
'sources': [
|
|
'loopback.cc',
|
|
'test_main.cc',
|
|
],
|
|
'dependencies': [
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
'video_tests_common',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'video_engine_tests',
|
|
'type': '<(gtest_target_type)',
|
|
'sources': [
|
|
'call_tests.cc',
|
|
'full_stack.cc',
|
|
'rampup_tests.cc',
|
|
'send_stream_tests.cc',
|
|
'test_main.cc',
|
|
],
|
|
'dependencies': [
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
|
|
'video_tests_common',
|
|
],
|
|
},
|
|
], # targets
|
|
'conditions': [
|
|
# TODO(henrike): remove build_with_chromium==1 when the bots are using
|
|
# Chromium's buildbots.
|
|
['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'video_engine_tests_apk_target',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'<(apk_tests_path):video_engine_tests_apk',
|
|
],
|
|
},
|
|
],
|
|
}],
|
|
['test_isolation_mode != "noop"', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'video_engine_tests_run',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'video_engine_tests',
|
|
],
|
|
'includes': [
|
|
'../../build/isolate.gypi',
|
|
'video_engine_tests.isolate',
|
|
],
|
|
'sources': [
|
|
'video_engine_tests.isolate',
|
|
],
|
|
},
|
|
],
|
|
}],
|
|
], # conditions
|
|
}
|