Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: webrtc/tools/BUILD.gn

Issue 2340753002: GN: Declare resources for targets. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/test/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 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 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 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("//third_party/protobuf/proto_library.gni") 9 import("//third_party/protobuf/proto_library.gni")
10 import("../build/webrtc.gni") 10 import("../build/webrtc.gni")
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 deps = [ 216 deps = [
217 "../modules/audio_processing", 217 "../modules/audio_processing",
218 "../system_wrappers:metrics_default", 218 "../system_wrappers:metrics_default",
219 "//build/win:default_exe_manifest", 219 "//build/win:default_exe_manifest",
220 "//testing/gtest", 220 "//testing/gtest",
221 "//third_party/gflags", 221 "//third_party/gflags",
222 ] 222 ]
223 } 223 }
224 224
225 if (is_android || is_ios) { 225 tools_unittests_resources = [ "//resources/foreman_cif.yuv" ]
226 tools_unittests_resources = [ "//resources/foreman_cif.yuv" ]
227 }
228 226
229 if (is_ios) { 227 if (is_ios) {
230 bundle_data("tools_unittests_bundle_data") { 228 bundle_data("tools_unittests_bundle_data") {
231 testonly = true 229 testonly = true
232 sources = tools_unittests_resources 230 sources = tools_unittests_resources
233 outputs = [ 231 outputs = [
234 "{{bundle_resources_dir}}/{{source_file_part}}", 232 "{{bundle_resources_dir}}/{{source_file_part}}",
235 ] 233 ]
236 } 234 }
237 } 235 }
(...skipping 17 matching lines...) Expand all
255 } 253 }
256 254
257 deps = [ 255 deps = [
258 ":command_line_parser", 256 ":command_line_parser",
259 ":frame_editing_lib", 257 ":frame_editing_lib",
260 ":video_quality_analysis", 258 ":video_quality_analysis",
261 "../test:test_support_main", 259 "../test:test_support_main",
262 "//testing/gtest", 260 "//testing/gtest",
263 ] 261 ]
264 262
263 data = tools_unittests_resources
265 if (is_android) { 264 if (is_android) {
266 deps += [ "//testing/android/native_test:native_test_support" ] 265 deps += [ "//testing/android/native_test:native_test_support" ]
267 data = tools_unittests_resources
268 shard_timeout = 900 266 shard_timeout = 900
269 } 267 }
270 if (is_ios) { 268 if (is_ios) {
271 deps += [ ":tools_unittests_bundle_data" ] 269 deps += [ ":tools_unittests_bundle_data" ]
272 } 270 }
273 } 271 }
274 272
275 if (rtc_enable_protobuf) { 273 if (rtc_enable_protobuf) {
276 copy("rtp_analyzer") { 274 copy("rtp_analyzer") {
277 sources = [ 275 sources = [
278 "py_event_log_analyzer/misc.py", 276 "py_event_log_analyzer/misc.py",
279 "py_event_log_analyzer/pb_parse.py", 277 "py_event_log_analyzer/pb_parse.py",
280 "py_event_log_analyzer/rtp_analyzer.py", 278 "py_event_log_analyzer/rtp_analyzer.py",
281 "py_event_log_analyzer/rtp_analyzer.sh", 279 "py_event_log_analyzer/rtp_analyzer.sh",
282 ] 280 ]
283 outputs = [ 281 outputs = [
284 "$root_build_dir/{{source_file_part}}", 282 "$root_build_dir/{{source_file_part}}",
285 ] 283 ]
286 deps = [ 284 deps = [
287 "..:rtc_event_log_proto", 285 "..:rtc_event_log_proto",
288 ] 286 ]
289 } 287 }
290 } 288 }
291 } 289 }
OLDNEW
« no previous file with comments | « webrtc/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698