blob: 0a38c90282b39d2de073b307b4fc4603b1c69a75 [file] [log] [blame]
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +00001# Copyright (c) 2012 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': [
11 '../build/common.gypi',
12 ],
13 'targets': [
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000014 {
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000015 'target_name': 'video_quality_analysis',
wjia@webrtc.org2e2a4cf2013-01-18 17:13:47 +000016 'type': 'static_library',
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000017 'dependencies': [
18 '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
19 ],
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000020 'export_dependent_settings': [
21 '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
22 ],
23 'sources': [
24 'frame_analyzer/video_quality_analysis.h',
25 'frame_analyzer/video_quality_analysis.cc',
26 ],
27 }, # video_quality_analysis
28 {
29 'target_name': 'frame_analyzer',
30 'type': 'executable',
31 'dependencies': [
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000032 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000033 'video_quality_analysis',
34 ],
35 'sources': [
36 'frame_analyzer/frame_analyzer.cc',
37 ],
38 }, # frame_analyzer
39 {
40 'target_name': 'psnr_ssim_analyzer',
41 'type': 'executable',
42 'dependencies': [
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000043 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000044 'video_quality_analysis',
45 ],
46 'sources': [
47 'psnr_ssim_analyzer/psnr_ssim_analyzer.cc',
48 ],
49 }, # psnr_ssim_analyzer
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +000050 {
51 'target_name': 'rgba_to_i420_converter',
52 'type': 'executable',
53 'dependencies': [
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000054 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +000055 '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
56 ],
57 'sources': [
58 'converter/converter.h',
59 'converter/converter.cc',
60 'converter/rgba_to_i420_converter.cc',
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +000061 ],
vspasova@webrtc.orgac410e22012-08-27 14:57:19 +000062 }, # rgba_to_i420_converter
brykt@google.com4de3dfe2012-11-27 13:44:07 +000063 {
brykt@google.comf5568902012-12-20 11:42:45 +000064 'target_name': 'frame_editing_lib',
wjia@webrtc.org2e2a4cf2013-01-18 17:13:47 +000065 'type': 'static_library',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000066 'dependencies': [
andrew@webrtc.orgdddc02b2012-11-30 02:28:27 +000067 '<(webrtc_root)/common_video/common_video.gyp:common_video',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000068 ],
69 'sources': [
brykt@google.comf5568902012-12-20 11:42:45 +000070 'frame_editing/frame_editing_lib.cc',
71 'frame_editing/frame_editing_lib.h',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000072 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +000073 # Disable warnings to enable Win64 build, issue 1323.
74 'msvs_disabled_warnings': [
75 4267, # size_t to int truncation.
76 ],
brykt@google.comf5568902012-12-20 11:42:45 +000077 }, # frame_editing_lib
brykt@google.com4de3dfe2012-11-27 13:44:07 +000078 {
brykt@google.comf5568902012-12-20 11:42:45 +000079 'target_name': 'frame_editor',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000080 'type': 'executable',
81 'dependencies': [
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000082 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
brykt@google.comf5568902012-12-20 11:42:45 +000083 'frame_editing_lib',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000084 ],
85 'sources': [
brykt@google.comf5568902012-12-20 11:42:45 +000086 'frame_editing/frame_editing.cc',
brykt@google.com4de3dfe2012-11-27 13:44:07 +000087 ],
brykt@google.comf5568902012-12-20 11:42:45 +000088 }, # frame_editing
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000089 {
90 'target_name': 'force_mic_volume_max',
91 'type': 'executable',
92 'dependencies': [
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000093 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +000094 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
phoglund@webrtc.org14d77002013-05-17 11:52:08 +000095 ],
96 'sources': [
97 'force_mic_volume_max/force_mic_volume_max.cc',
98 ],
99 }, # force_mic_volume_max
vspasova@webrtc.orgf61dc9b2012-08-22 08:12:00 +0000100 ],
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000101 'conditions': [
102 ['include_tests==1', {
103 'targets' : [
104 {
kjellander@webrtc.orgeb61a852013-10-21 08:40:56 +0000105 'target_name': 'audio_e2e_harness',
106 'type': 'executable',
107 'dependencies': [
108 '<(webrtc_root)/test/test.gyp:channel_transport',
109 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +0000110 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
kjellander@webrtc.orgeb61a852013-10-21 08:40:56 +0000111 '<(DEPTH)/testing/gtest.gyp:gtest',
112 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
113 ],
114 'sources': [
115 'e2e_quality/audio/audio_e2e_harness.cc',
116 ],
117 }, # audio_e2e_harness
118 {
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000119 'target_name': 'tools_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000120 'type': '<(gtest_target_type)',
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000121 'dependencies': [
brykt@google.comf5568902012-12-20 11:42:45 +0000122 'frame_editing_lib',
kjellander@webrtc.orgf880f862013-09-10 12:10:01 +0000123 'video_quality_analysis',
phoglund@webrtc.org14d77002013-05-17 11:52:08 +0000124 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000125 '<(webrtc_root)/test/test.gyp:test_support_main',
126 '<(DEPTH)/testing/gtest.gyp:gtest',
127 ],
128 'sources': [
kjellander@webrtc.orgb2d74972013-01-26 16:36:40 +0000129 'simple_command_line_parser_unittest.cc',
brykt@google.comf5568902012-12-20 11:42:45 +0000130 'frame_editing/frame_editing_unittest.cc',
kjellander@webrtc.orgf880f862013-09-10 12:10:01 +0000131 'frame_analyzer/video_quality_analysis_unittest.cc',
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000132 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +0000133 # Disable warnings to enable Win64 build, issue 1323.
134 'msvs_disabled_warnings': [
135 4267, # size_t to int truncation.
136 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000137 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000138 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000139 'dependencies': [
140 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
141 ],
142 }],
143 ],
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000144 }, # tools_unittests
145 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000146 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000147 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000148 'targets': [
149 {
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000150 'target_name': 'tools_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000151 'type': 'none',
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000152 'variables': {
153 'test_suite_name': 'tools_unittests',
154 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)tools_unittests<(SHARED_LIB_SUFFIX)',
155 },
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000156 'dependencies': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000157 'tools_unittests',
158 ],
159 'includes': [
160 '../../build/apk_test.gypi',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000161 ],
162 },
163 ],
164 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000165 ['test_isolation_mode != "noop"', {
166 'targets': [
167 {
168 'target_name': 'tools_unittests_run',
169 'type': 'none',
170 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000171 'tools_unittests',
172 ],
173 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000174 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000175 'tools_unittests.isolate',
176 ],
177 'sources': [
178 'tools_unittests.isolate',
179 ],
180 },
181 ],
182 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000183 ],
brykt@google.com4de3dfe2012-11-27 13:44:07 +0000184 }], # include_tests
185 ], # conditions
wjia@webrtc.org2e2a4cf2013-01-18 17:13:47 +0000186}