blob: 9193a25dc7482dbac767ddb9051462fbf36b3782 [file] [log] [blame]
xians@google.comd3185fe2011-09-12 12:24:39 +00001# Copyright (c) 2011 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{
10 'includes': [
wjia@google.comfdaee9c2011-09-17 00:06:08 +000011 '../build/common.gypi',
kjellander@webrtc.org64a897a2011-11-17 13:33:11 +000012 'audio_coding/codecs/cng/cng.gypi',
kjellander@webrtc.orgcc2ecb32011-11-17 13:48:36 +000013 'audio_coding/codecs/g711/g711.gypi',
kjellander@webrtc.org3f1cb8e2011-11-17 13:56:54 +000014 'audio_coding/codecs/g722/g722.gypi',
kjellander@webrtc.org36e1ad92011-11-07 15:27:11 +000015 'audio_coding/codecs/ilbc/ilbc.gypi',
andrew@webrtc.org6a16e742012-08-09 18:35:39 +000016 'audio_coding/codecs/isac/main/source/isac.gypi',
17 'audio_coding/codecs/isac/fix/source/isacfix.gypi',
kjellander@webrtc.orgb72268e2011-11-17 13:39:15 +000018 'audio_coding/codecs/pcm16b/pcm16b.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000019 'audio_coding/main/source/audio_coding_module.gypi',
kjellander@webrtc.orgbf483842011-11-07 16:05:19 +000020 'audio_coding/neteq/neteq.gypi',
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000021 'audio_coding/neteq4/neteq.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000022 'audio_conference_mixer/source/audio_conference_mixer.gypi',
andrew@webrtc.org236d5d32012-09-21 20:46:40 +000023 'audio_device/audio_device.gypi',
andrew@webrtc.org4d5d5c12011-10-19 01:40:33 +000024 'audio_processing/audio_processing.gypi',
pwestin@webrtc.org1cd11622012-04-19 12:13:52 +000025 'bitrate_controller/bitrate_controller.gypi',
sergeyu@chromium.org15e32cc2013-04-29 20:10:57 +000026 'desktop_capture/desktop_capture.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000027 'media_file/source/media_file.gypi',
pwestin@webrtc.orgb5180172012-11-09 20:56:23 +000028 'pacing/pacing.gypi',
stefan@webrtc.org9354cc92012-06-07 08:10:14 +000029 'remote_bitrate_estimator/remote_bitrate_estimator.gypi',
andrew@webrtc.org94caca72012-10-30 21:58:00 +000030 'rtp_rtcp/source/rtp_rtcp.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000031 'utility/source/utility.gypi',
32 'video_coding/codecs/i420/main/source/i420.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000033 'video_coding/main/source/video_coding.gypi',
andrew@webrtc.org94caca72012-10-30 21:58:00 +000034 'video_capture/video_capture.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000035 'video_processing/main/source/video_processing.gypi',
andrew@webrtc.org9841d922012-10-31 05:22:11 +000036 'video_render/video_render.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000037 ],
xians@google.comd3185fe2011-09-12 12:24:39 +000038 'conditions': [
andrew@webrtc.orgc0773fc2012-10-19 07:13:52 +000039 ['include_opus==1', {
40 'includes': ['audio_coding/codecs/opus/opus.gypi',],
41 }],
mflodman@webrtc.org6af95942012-05-24 13:23:35 +000042 ['include_tests==1', {
xians@google.comd3185fe2011-09-12 12:24:39 +000043 'includes': [
andrew@webrtc.org6a16e742012-08-09 18:35:39 +000044 'audio_coding/codecs/isac/isac_test.gypi',
45 'audio_coding/codecs/isac/isacfix_test.gypi',
andrew@webrtc.orgc732ca62012-09-10 16:33:43 +000046 'audio_processing/audio_processing_tests.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000047 'rtp_rtcp/test/testFec/test_fec.gypi',
48 'video_coding/main/source/video_coding_test.gypi',
kjellander@webrtc.org35a17562011-10-06 06:44:54 +000049 'video_coding/codecs/test/video_codecs_test_framework.gypi',
50 'video_coding/codecs/tools/video_codecs_tools.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000051 'video_processing/main/test/vpm_tests.gypi',
52 ], # includes
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000053 'variables': {
54 'conditions': [
55 # Desktop capturer is supported only on Windows, OSX and Linux.
56 ['OS=="win" or OS=="mac" or OS=="linux"', {
57 'desktop_capture_supported%': 1,
58 }, {
59 'desktop_capture_supported%': 0,
60 }],
61 ],
62 },
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +000063 'targets': [
64 {
65 'target_name': 'modules_unittests',
66 'type': 'executable',
67 'dependencies': [
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000068 'bitrate_controller',
69 'desktop_capture',
70 'media_file',
71 'paced_sender',
72 'remote_bitrate_estimator',
73 'rtp_rtcp',
kjellander@webrtc.orgfec34d72013-06-05 08:58:46 +000074 'webrtc_utility',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000075 '<(DEPTH)/testing/gmock.gyp:gmock',
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +000076 '<(DEPTH)/testing/gtest.gyp:gtest',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000077 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +000078 '<(webrtc_root)/test/test.gyp:test_support_main',
79 ],
80 'sources': [
81 'module_common_types_unittest.cc',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +000082 'bitrate_controller/bitrate_controller_unittest.cc',
83 'desktop_capture/desktop_region_unittest.cc',
84 'desktop_capture/differ_block_unittest.cc',
85 'desktop_capture/differ_unittest.cc',
86 'desktop_capture/screen_capturer_helper_unittest.cc',
87 'desktop_capture/screen_capturer_mac_unittest.cc',
88 'desktop_capture/screen_capturer_mock_objects.h',
89 'desktop_capture/screen_capturer_unittest.cc',
90 'desktop_capture/window_capturer_unittest.cc',
91 "desktop_capture/win/cursor_unittest.cc",
92 "desktop_capture/win/cursor_unittest_resources.h",
93 "desktop_capture/win/cursor_unittest_resources.rc",
94 'media_file/source/media_file_unittest.cc',
95 'pacing/paced_sender_unittest.cc',
96 'remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h',
97 'remote_bitrate_estimator/bitrate_estimator_unittest.cc',
98 'remote_bitrate_estimator/remote_bitrate_estimator_multi_stream_unittest.cc',
99 'remote_bitrate_estimator/remote_bitrate_estimator_single_stream_unittest.cc',
100 'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc',
101 'remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.h',
102 'remote_bitrate_estimator/rtp_to_ntp_unittest.cc',
103 'rtp_rtcp/source/mock/mock_rtp_payload_strategy.h',
104 'rtp_rtcp/source/mock/mock_rtp_receiver_video.h',
105 'rtp_rtcp/source/fec_test_helper.cc',
106 'rtp_rtcp/source/fec_test_helper.h',
107 'rtp_rtcp/source/nack_rtx_unittest.cc',
108 'rtp_rtcp/source/producer_fec_unittest.cc',
109 'rtp_rtcp/source/receiver_fec_unittest.cc',
110 'rtp_rtcp/source/rtcp_format_remb_unittest.cc',
111 'rtp_rtcp/source/rtcp_sender_unittest.cc',
112 'rtp_rtcp/source/rtcp_receiver_unittest.cc',
113 'rtp_rtcp/source/rtp_fec_unittest.cc',
114 'rtp_rtcp/source/rtp_format_vp8_unittest.cc',
115 'rtp_rtcp/source/rtp_format_vp8_test_helper.cc',
116 'rtp_rtcp/source/rtp_format_vp8_test_helper.h',
117 'rtp_rtcp/source/rtp_packet_history_unittest.cc',
118 'rtp_rtcp/source/rtp_payload_registry_unittest.cc',
119 'rtp_rtcp/source/rtp_utility_unittest.cc',
120 'rtp_rtcp/source/rtp_header_extension_unittest.cc',
121 'rtp_rtcp/source/rtp_sender_unittest.cc',
122 'rtp_rtcp/source/vp8_partition_aggregator_unittest.cc',
123 'rtp_rtcp/test/testAPI/test_api.cc',
124 'rtp_rtcp/test/testAPI/test_api.h',
125 'rtp_rtcp/test/testAPI/test_api_audio.cc',
126 'rtp_rtcp/test/testAPI/test_api_rtcp.cc',
127 'rtp_rtcp/test/testAPI/test_api_video.cc',
kjellander@webrtc.orgfec34d72013-06-05 08:58:46 +0000128 'utility/source/audio_frame_operations_unittest.cc',
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +0000129 ],
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000130 'conditions': [
131 # Run screen/window capturer tests only on platforms where they are
132 # supported.
133 ['desktop_capture_supported==1', {
134 'sources!': [
135 'desktop_capture/screen_capturer_helper_unittest.cc',
136 'desktop_capture/screen_capturer_mac_unittest.cc',
137 'desktop_capture/screen_capturer_mock_objects.h',
138 'desktop_capture/screen_capturer_unittest.cc',
139 'desktop_capture/window_capturer_unittest.cc',
140 ],
141 }],
142 ],
143 # Disable warnings to enable Win64 build, issue 1323.
144 'msvs_disabled_warnings': [
145 4267, # size_t to int truncation.
146 ],
stefan@webrtc.org7bc465b2013-04-11 17:48:02 +0000147 },
148 ],
mflodman@webrtc.org6af95942012-05-24 13:23:35 +0000149 }], # include_tests
xians@google.comd3185fe2011-09-12 12:24:39 +0000150 ], # conditions
151}