blob: c463fce898c13f8873f70fe645f8dd9df51327af [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
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200166# Exclude tools depending on gflags since that's not available in Chromium.
167# There's no point processing WebRTC standalone tests in a Chromium build.
168if (!build_with_chromium) {
169 executable("agc_harness") {
170 testonly = true
171 sources = [
172 "agc/agc_harness.cc",
173 ]
kjellanderbac04122016-06-02 02:18:48 -0700174
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200175 configs += [ "..:common_config" ]
176 public_configs = [ "..:common_inherited_config" ]
kjellanderbac04122016-06-02 02:18:48 -0700177
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200178 if (is_clang) {
179 # Suppress warnings from the Chromium Clang plugin.
180 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
181 configs -= [ "//build/config/clang:find_bad_constructs" ]
182 }
183
184 deps = [
185 "../system_wrappers:system_wrappers_default",
186 "../test:channel_transport",
187 "../test:test_support",
188 "../voice_engine",
189 "//build/win:default_exe_manifest",
190 "//testing/gtest",
191 "//third_party/gflags",
192 ]
kjellanderbac04122016-06-02 02:18:48 -0700193 }
194
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200195 executable("activity_metric") {
196 testonly = true
197 sources = [
198 "agc/activity_metric.cc",
199 ]
kjellanderbac04122016-06-02 02:18:48 -0700200
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200201 configs += [ "..:common_config" ]
202 public_configs = [ "..:common_inherited_config" ]
kjellanderbac04122016-06-02 02:18:48 -0700203
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200204 if (is_clang) {
205 # Suppress warnings from the Chromium Clang plugin.
206 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
207 configs -= [ "//build/config/clang:find_bad_constructs" ]
208 }
kjellanderbac04122016-06-02 02:18:48 -0700209
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200210 deps = [
211 "../modules/audio_processing",
212 "../system_wrappers:metrics_default",
213 "//build/win:default_exe_manifest",
214 "//testing/gtest",
215 "//third_party/gflags",
216 ]
kjellanderbac04122016-06-02 02:18:48 -0700217 }
218
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200219 executable("audio_e2e_harness") {
220 testonly = true
221 sources = [
222 "e2e_quality/audio/audio_e2e_harness.cc",
223 ]
kjellanderbac04122016-06-02 02:18:48 -0700224
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200225 configs += [ "..:common_config" ]
226 public_configs = [ "..:common_inherited_config" ]
kjellanderbac04122016-06-02 02:18:48 -0700227
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200228 if (is_clang) {
229 # Suppress warnings from the Chromium Clang plugin.
230 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
231 configs -= [ "//build/config/clang:find_bad_constructs" ]
232 }
kjellanderbac04122016-06-02 02:18:48 -0700233
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200234 deps = [
235 "../system_wrappers:system_wrappers_default",
236 "../test:channel_transport",
237 "../voice_engine",
238 "//build/win:default_exe_manifest",
239 "//testing/gtest",
240 "//third_party/gflags",
241 ]
kjellanderbac04122016-06-02 02:18:48 -0700242 }
243
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200244 test("tools_unittests") {
245 testonly = true
kjellanderbac04122016-06-02 02:18:48 -0700246
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200247 sources = [
248 "frame_analyzer/video_quality_analysis_unittest.cc",
249 "frame_editing/frame_editing_unittest.cc",
250 "simple_command_line_parser_unittest.cc",
251 ]
kjellanderbac04122016-06-02 02:18:48 -0700252
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200253 configs += [ "..:common_config" ]
254 public_configs = [ "..:common_inherited_config" ]
kjellanderbac04122016-06-02 02:18:48 -0700255
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200256 # TODO(jschuh): Bug 1348: fix this warning.
257 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
kjellanderbac04122016-06-02 02:18:48 -0700258
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200259 if (is_clang) {
260 # Suppress warnings from the Chromium Clang plugin.
261 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
262 configs -= [ "//build/config/clang:find_bad_constructs" ]
263 }
kjellanderbac04122016-06-02 02:18:48 -0700264
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200265 deps = [
266 ":command_line_parser",
267 ":frame_editing_lib",
268 ":video_quality_analysis",
269 "../test:test_support_main",
270 "//testing/gtest",
271 ]
kjellanderbac04122016-06-02 02:18:48 -0700272
kjellander@webrtc.orgdc0dbad2016-06-02 13:29:07 +0200273 if (is_android) {
274 deps += [ "//testing/android/native_test:native_test_support" ]
275 }
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000276 }
277}