blob: 24b57f5dadcdac17034c3fa643bfa1412c63f5e4 [file] [log] [blame]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +00001# Copyright (c) 2014 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
kjellanderbac04122016-06-02 02:18:48 -07009import("//testing/test.gni")
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000010import("../build/webrtc.gni")
11
12source_set("tools") {
13 deps = [
14 ":command_line_parser",
kjellanderbac04122016-06-02 02:18:48 -070015 ":frame_analyzer",
16 ":rgba_to_i420_converter",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000017 ]
18}
19
20source_set("command_line_parser") {
21 sources = [
Henrik Kjellanderfa16dda2015-04-01 22:53:56 +020022 "simple_command_line_parser.cc",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020023 "simple_command_line_parser.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000024 ]
Henrik Kjellander67bcb602015-10-07 08:42:52 +020025 deps = [
kjellander988d31e2016-02-05 00:23:50 -080026 "../base:gtest_prod",
Henrik Kjellander67bcb602015-10-07 08:42:52 +020027 ]
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000028 configs += [ "..:common_config" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020029 public_configs = [ "..:common_inherited_config" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000030}
31
Henrik Kjellander67bcb602015-10-07 08:42:52 +020032source_set("video_quality_analysis") {
33 sources = [
34 "frame_analyzer/video_quality_analysis.cc",
35 "frame_analyzer/video_quality_analysis.h",
36 ]
kjellanderbac04122016-06-02 02:18:48 -070037
38 configs += [ "..:common_config" ]
39 public_configs = [ "..:common_inherited_config" ]
40
Henrik Kjellander67bcb602015-10-07 08:42:52 +020041 deps = [
42 "../common_video",
43 ]
44 public_deps = [
45 "../common_video",
46 ]
47}
48
49executable("frame_analyzer") {
50 sources = [
51 "frame_analyzer/frame_analyzer.cc",
52 ]
kjellanderbac04122016-06-02 02:18:48 -070053
54 configs += [ "..:common_config" ]
55 public_configs = [ "..:common_inherited_config" ]
56
57 deps = [
58 ":command_line_parser",
59 ":video_quality_analysis",
60 "//build/win:default_exe_manifest",
61 ]
62}
63
64executable("psnr_ssim_analyzer") {
65 sources = [
66 "psnr_ssim_analyzer/psnr_ssim_analyzer.cc",
67 ]
68
69 configs += [ "..:common_config" ]
70 public_configs = [ "..:common_inherited_config" ]
71
Henrik Kjellander67bcb602015-10-07 08:42:52 +020072 deps = [
73 ":command_line_parser",
74 ":video_quality_analysis",
brucedawson84583e02016-04-28 00:21:08 -070075 "//build/win:default_exe_manifest",
Henrik Kjellander67bcb602015-10-07 08:42:52 +020076 ]
77}
78
79executable("rgba_to_i420_converter") {
80 sources = [
81 "converter/converter.cc",
82 "converter/converter.h",
83 "converter/rgba_to_i420_converter.cc",
84 ]
kjellanderbac04122016-06-02 02:18:48 -070085
86 configs += [ "..:common_config" ]
87 public_configs = [ "..:common_inherited_config" ]
88
Henrik Kjellander67bcb602015-10-07 08:42:52 +020089 deps = [
90 ":command_line_parser",
91 "../common_video",
brucedawson84583e02016-04-28 00:21:08 -070092 "//build/win:default_exe_manifest",
Henrik Kjellander67bcb602015-10-07 08:42:52 +020093 ]
94}
95
kjellanderbac04122016-06-02 02:18:48 -070096source_set("frame_editing_lib") {
97 sources = [
98 "frame_editing/frame_editing_lib.cc",
99 "frame_editing/frame_editing_lib.h",
100 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000101
kjellanderbac04122016-06-02 02:18:48 -0700102 configs += [ "..:common_config" ]
103 public_configs = [ "..:common_inherited_config" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000104
kjellanderbac04122016-06-02 02:18:48 -0700105 # TODO(jschuh): Bug 1348: fix this warning.
106 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000107
kjellanderbac04122016-06-02 02:18:48 -0700108 if (is_clang) {
109 # Suppress warnings from the Chromium Clang plugin.
110 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
111 configs -= [ "//build/config/clang:find_bad_constructs" ]
112 }
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +0000113
kjellanderbac04122016-06-02 02:18:48 -0700114 deps = [
115 "../common_video",
116 ]
117}
118
119executable("frame_editor") {
120 sources = [
121 "frame_editing/frame_editing.cc",
122 ]
123
124 configs += [ "..:common_config" ]
125 public_configs = [ "..:common_inherited_config" ]
126
127 deps = [
128 ":command_line_parser",
129 ":frame_editing_lib",
130 "//build/win:default_exe_manifest",
131 ]
132}
133
134executable("force_mic_volume_max") {
135 sources = [
136 "force_mic_volume_max/force_mic_volume_max.cc",
137 ]
138
139 configs += [ "..:common_config" ]
140 public_configs = [ "..:common_inherited_config" ]
141
142 if (is_clang) {
143 # Suppress warnings from the Chromium Clang plugin.
144 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
145 configs -= [ "//build/config/clang:find_bad_constructs" ]
146 }
147
148 deps = [
149 "../system_wrappers:system_wrappers_default",
150 "../voice_engine",
151 "//build/win:default_exe_manifest",
152 ]
153}
154
155source_set("agc_test_utils") {
156 testonly = true
157 sources = [
158 "agc/test_utils.cc",
159 "agc/test_utils.h",
160 ]
161
162 configs += [ "..:common_config" ]
163 public_configs = [ "..:common_inherited_config" ]
164}
165
166executable("agc_harness") {
167 testonly = true
168 sources = [
169 "agc/agc_harness.cc",
170 ]
171
172 configs += [ "..:common_config" ]
173 public_configs = [ "..:common_inherited_config" ]
174
175 if (is_clang) {
176 # Suppress warnings from the Chromium Clang plugin.
177 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
178 configs -= [ "//build/config/clang:find_bad_constructs" ]
179 }
180
181 deps = [
182 "../system_wrappers:system_wrappers_default",
183 "../test:channel_transport",
184 "../test:test_support",
185 "../voice_engine",
186 "//build/win:default_exe_manifest",
187 "//testing/gtest",
188 "//third_party/gflags",
189 ]
190}
191
192executable("activity_metric") {
193 testonly = true
194 sources = [
195 "agc/activity_metric.cc",
196 ]
197
198 configs += [ "..:common_config" ]
199 public_configs = [ "..:common_inherited_config" ]
200
201 if (is_clang) {
202 # Suppress warnings from the Chromium Clang plugin.
203 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
204 configs -= [ "//build/config/clang:find_bad_constructs" ]
205 }
206
207 deps = [
208 "../modules/audio_processing",
209 "../system_wrappers:metrics_default",
210 "//build/win:default_exe_manifest",
211 "//testing/gtest",
212 "//third_party/gflags",
213 ]
214}
215
216executable("audio_e2e_harness") {
217 testonly = true
218 sources = [
219 "e2e_quality/audio/audio_e2e_harness.cc",
220 ]
221
222 configs += [ "..:common_config" ]
223 public_configs = [ "..:common_inherited_config" ]
224
225 if (is_clang) {
226 # Suppress warnings from the Chromium Clang plugin.
227 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
228 configs -= [ "//build/config/clang:find_bad_constructs" ]
229 }
230
231 deps = [
232 "../system_wrappers:system_wrappers_default",
233 "../test:channel_transport",
234 "../voice_engine",
235 "//build/win:default_exe_manifest",
236 "//testing/gtest",
237 "//third_party/gflags",
238 ]
239}
240
241test("tools_unittests") {
242 testonly = true
243
244 sources = [
245 "frame_analyzer/video_quality_analysis_unittest.cc",
246 "frame_editing/frame_editing_unittest.cc",
247 "simple_command_line_parser_unittest.cc",
248 ]
249
250 configs += [ "..:common_config" ]
251 public_configs = [ "..:common_inherited_config" ]
252
253 # TODO(jschuh): Bug 1348: fix this warning.
254 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
255
256 if (is_clang) {
257 # Suppress warnings from the Chromium Clang plugin.
258 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
259 configs -= [ "//build/config/clang:find_bad_constructs" ]
260 }
261
262 deps = [
263 ":command_line_parser",
264 ":frame_editing_lib",
265 ":video_quality_analysis",
266 "../test:test_support_main",
267 "//testing/gtest",
268 ]
269
270 if (is_android) {
271 deps += [ "//testing/android/native_test:native_test_support" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000272 }
273}