2011-09-12 12:24:39 +00:00
|
|
|
# Copyright (c) 2011 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.
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
'includes': [
|
2011-09-17 00:06:08 +00:00
|
|
|
'../build/common.gypi',
|
2011-11-17 13:33:11 +00:00
|
|
|
'audio_coding/codecs/cng/cng.gypi',
|
2011-11-17 13:48:36 +00:00
|
|
|
'audio_coding/codecs/g711/g711.gypi',
|
2011-11-17 13:56:54 +00:00
|
|
|
'audio_coding/codecs/g722/g722.gypi',
|
2011-11-07 15:27:11 +00:00
|
|
|
'audio_coding/codecs/ilbc/ilbc.gypi',
|
2012-08-09 18:35:39 +00:00
|
|
|
'audio_coding/codecs/isac/main/source/isac.gypi',
|
|
|
|
|
'audio_coding/codecs/isac/fix/source/isacfix.gypi',
|
2011-11-17 13:39:15 +00:00
|
|
|
'audio_coding/codecs/pcm16b/pcm16b.gypi',
|
2011-09-12 12:24:39 +00:00
|
|
|
'audio_coding/main/source/audio_coding_module.gypi',
|
2011-11-07 16:05:19 +00:00
|
|
|
'audio_coding/neteq/neteq.gypi',
|
2013-01-29 12:09:21 +00:00
|
|
|
'audio_coding/neteq4/neteq.gypi',
|
2011-09-12 12:24:39 +00:00
|
|
|
'audio_conference_mixer/source/audio_conference_mixer.gypi',
|
2012-09-21 20:46:40 +00:00
|
|
|
'audio_device/audio_device.gypi',
|
2011-10-19 01:40:33 +00:00
|
|
|
'audio_processing/audio_processing.gypi',
|
2012-04-19 12:13:52 +00:00
|
|
|
'bitrate_controller/bitrate_controller.gypi',
|
2013-04-29 20:10:57 +00:00
|
|
|
'desktop_capture/desktop_capture.gypi',
|
2011-09-12 12:24:39 +00:00
|
|
|
'media_file/source/media_file.gypi',
|
2012-11-09 20:56:23 +00:00
|
|
|
'pacing/pacing.gypi',
|
2012-06-07 08:10:14 +00:00
|
|
|
'remote_bitrate_estimator/remote_bitrate_estimator.gypi',
|
2012-10-30 21:58:00 +00:00
|
|
|
'rtp_rtcp/source/rtp_rtcp.gypi',
|
2011-09-12 12:24:39 +00:00
|
|
|
'utility/source/utility.gypi',
|
|
|
|
|
'video_coding/codecs/i420/main/source/i420.gypi',
|
|
|
|
|
'video_coding/main/source/video_coding.gypi',
|
2012-10-30 21:58:00 +00:00
|
|
|
'video_capture/video_capture.gypi',
|
2011-09-12 12:24:39 +00:00
|
|
|
'video_processing/main/source/video_processing.gypi',
|
2012-10-31 05:22:11 +00:00
|
|
|
'video_render/video_render.gypi',
|
2011-09-12 12:24:39 +00:00
|
|
|
],
|
|
|
|
|
'conditions': [
|
2012-10-19 07:13:52 +00:00
|
|
|
['include_opus==1', {
|
|
|
|
|
'includes': ['audio_coding/codecs/opus/opus.gypi',],
|
|
|
|
|
}],
|
2012-05-24 13:23:35 +00:00
|
|
|
['include_tests==1', {
|
2011-09-12 12:24:39 +00:00
|
|
|
'includes': [
|
2012-08-09 18:35:39 +00:00
|
|
|
'audio_coding/codecs/isac/isac_test.gypi',
|
|
|
|
|
'audio_coding/codecs/isac/isacfix_test.gypi',
|
2012-09-10 16:33:43 +00:00
|
|
|
'audio_processing/audio_processing_tests.gypi',
|
2011-09-12 12:24:39 +00:00
|
|
|
'rtp_rtcp/test/testFec/test_fec.gypi',
|
|
|
|
|
'video_coding/main/source/video_coding_test.gypi',
|
2011-10-06 06:44:54 +00:00
|
|
|
'video_coding/codecs/test/video_codecs_test_framework.gypi',
|
|
|
|
|
'video_coding/codecs/tools/video_codecs_tools.gypi',
|
2011-09-12 12:24:39 +00:00
|
|
|
'video_processing/main/test/vpm_tests.gypi',
|
|
|
|
|
], # includes
|
2013-06-11 08:29:17 +00:00
|
|
|
'variables': {
|
|
|
|
|
'conditions': [
|
|
|
|
|
# Desktop capturer is supported only on Windows, OSX and Linux.
|
|
|
|
|
['OS=="win" or OS=="mac" or OS=="linux"', {
|
|
|
|
|
'desktop_capture_supported%': 1,
|
|
|
|
|
}, {
|
|
|
|
|
'desktop_capture_supported%': 0,
|
|
|
|
|
}],
|
|
|
|
|
],
|
|
|
|
|
},
|
2013-04-11 17:48:02 +00:00
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'modules_unittests',
|
|
|
|
|
'type': 'executable',
|
|
|
|
|
'dependencies': [
|
2013-06-11 08:29:17 +00:00
|
|
|
'bitrate_controller',
|
|
|
|
|
'desktop_capture',
|
|
|
|
|
'media_file',
|
|
|
|
|
'paced_sender',
|
|
|
|
|
'remote_bitrate_estimator',
|
|
|
|
|
'rtp_rtcp',
|
2013-06-05 08:58:46 +00:00
|
|
|
'webrtc_utility',
|
2013-06-11 08:29:17 +00:00
|
|
|
'<(DEPTH)/testing/gmock.gyp:gmock',
|
2013-04-11 17:48:02 +00:00
|
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
2013-06-11 08:29:17 +00:00
|
|
|
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
|
2013-04-11 17:48:02 +00:00
|
|
|
'<(webrtc_root)/test/test.gyp:test_support_main',
|
|
|
|
|
],
|
|
|
|
|
'sources': [
|
|
|
|
|
'module_common_types_unittest.cc',
|
2013-06-11 08:29:17 +00:00
|
|
|
'bitrate_controller/bitrate_controller_unittest.cc',
|
|
|
|
|
'desktop_capture/desktop_region_unittest.cc',
|
|
|
|
|
'desktop_capture/differ_block_unittest.cc',
|
|
|
|
|
'desktop_capture/differ_unittest.cc',
|
|
|
|
|
'desktop_capture/screen_capturer_helper_unittest.cc',
|
|
|
|
|
'desktop_capture/screen_capturer_mac_unittest.cc',
|
|
|
|
|
'desktop_capture/screen_capturer_mock_objects.h',
|
|
|
|
|
'desktop_capture/screen_capturer_unittest.cc',
|
|
|
|
|
'desktop_capture/window_capturer_unittest.cc',
|
|
|
|
|
"desktop_capture/win/cursor_unittest.cc",
|
|
|
|
|
"desktop_capture/win/cursor_unittest_resources.h",
|
|
|
|
|
"desktop_capture/win/cursor_unittest_resources.rc",
|
|
|
|
|
'media_file/source/media_file_unittest.cc',
|
|
|
|
|
'pacing/paced_sender_unittest.cc',
|
|
|
|
|
'remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h',
|
|
|
|
|
'remote_bitrate_estimator/bitrate_estimator_unittest.cc',
|
|
|
|
|
'remote_bitrate_estimator/remote_bitrate_estimator_multi_stream_unittest.cc',
|
|
|
|
|
'remote_bitrate_estimator/remote_bitrate_estimator_single_stream_unittest.cc',
|
|
|
|
|
'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc',
|
|
|
|
|
'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.h',
|
|
|
|
|
'remote_bitrate_estimator/rtp_to_ntp_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/mock/mock_rtp_payload_strategy.h',
|
|
|
|
|
'rtp_rtcp/source/mock/mock_rtp_receiver_video.h',
|
|
|
|
|
'rtp_rtcp/source/fec_test_helper.cc',
|
|
|
|
|
'rtp_rtcp/source/fec_test_helper.h',
|
|
|
|
|
'rtp_rtcp/source/nack_rtx_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/producer_fec_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/receiver_fec_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtcp_format_remb_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtcp_sender_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtcp_receiver_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtp_fec_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtp_format_vp8_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtp_format_vp8_test_helper.cc',
|
|
|
|
|
'rtp_rtcp/source/rtp_format_vp8_test_helper.h',
|
|
|
|
|
'rtp_rtcp/source/rtp_packet_history_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtp_payload_registry_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtp_utility_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtp_header_extension_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/rtp_sender_unittest.cc',
|
|
|
|
|
'rtp_rtcp/source/vp8_partition_aggregator_unittest.cc',
|
|
|
|
|
'rtp_rtcp/test/testAPI/test_api.cc',
|
|
|
|
|
'rtp_rtcp/test/testAPI/test_api.h',
|
|
|
|
|
'rtp_rtcp/test/testAPI/test_api_audio.cc',
|
|
|
|
|
'rtp_rtcp/test/testAPI/test_api_rtcp.cc',
|
|
|
|
|
'rtp_rtcp/test/testAPI/test_api_video.cc',
|
2013-06-05 08:58:46 +00:00
|
|
|
'utility/source/audio_frame_operations_unittest.cc',
|
2013-04-11 17:48:02 +00:00
|
|
|
],
|
2013-06-11 08:29:17 +00:00
|
|
|
'conditions': [
|
|
|
|
|
# Run screen/window capturer tests only on platforms where they are
|
|
|
|
|
# supported.
|
|
|
|
|
['desktop_capture_supported==1', {
|
|
|
|
|
'sources!': [
|
|
|
|
|
'desktop_capture/screen_capturer_helper_unittest.cc',
|
|
|
|
|
'desktop_capture/screen_capturer_mac_unittest.cc',
|
|
|
|
|
'desktop_capture/screen_capturer_mock_objects.h',
|
|
|
|
|
'desktop_capture/screen_capturer_unittest.cc',
|
|
|
|
|
'desktop_capture/window_capturer_unittest.cc',
|
|
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
],
|
|
|
|
|
# Disable warnings to enable Win64 build, issue 1323.
|
|
|
|
|
'msvs_disabled_warnings': [
|
|
|
|
|
4267, # size_t to int truncation.
|
|
|
|
|
],
|
2013-04-11 17:48:02 +00:00
|
|
|
},
|
|
|
|
|
],
|
2012-05-24 13:23:35 +00:00
|
|
|
}], # include_tests
|
2011-09-12 12:24:39 +00:00
|
|
|
], # conditions
|
|
|
|
|
}
|