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

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

Issue 2517173004: Move VideoFrame and related declarations to webrtc/api/video. (Closed)
Patch Set: Rebased. Created 4 years 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
OLDNEW
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2015 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("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 if (is_android) { 10 if (is_android) {
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 deps = [ 361 deps = [
362 "../base:rtc_base_approved", 362 "../base:rtc_base_approved",
363 ] 363 ]
364 } 364 }
365 365
366 rtc_source_set("transport_api") { 366 rtc_source_set("transport_api") {
367 sources = [ 367 sources = [
368 "call/transport.h", 368 "call/transport.h",
369 ] 369 ]
370 } 370 }
371
372 rtc_source_set("video_frame_api") {
373 sources = [
374 "video/i420_buffer.cc",
375 "video/i420_buffer.h",
376 "video/video_frame.cc",
377 "video/video_frame.h",
378 "video/video_frame_buffer.h",
379 "video/video_rotation.h",
380 ]
381
382 deps = [
383 "../base:rtc_base_approved",
384 ]
385
386 # TODO(nisse): This logic is duplicated in multiple places.
387 # Define in a single place.
388 if (rtc_build_libyuv) {
389 deps += [ "$rtc_libyuv_dir" ]
390 public_deps = [
391 "$rtc_libyuv_dir",
392 ]
393 } else {
394 # Need to add a directory normally exported by libyuv.
395 include_dirs = [ "$rtc_libyuv_dir/include" ]
396 }
397 }
398
371 if (rtc_include_tests) { 399 if (rtc_include_tests) {
372 config("peerconnection_unittests_config") { 400 config("peerconnection_unittests_config") {
373 # The warnings below are enabled by default. Since GN orders compiler flags 401 # The warnings below are enabled by default. Since GN orders compiler flags
374 # for a target before flags from configs, the only way to disable such 402 # for a target before flags from configs, the only way to disable such
375 # warnings is by having them in a separate config, loaded from the target. 403 # warnings is by having them in a separate config, loaded from the target.
376 # TODO(kjellander): Make the code compile without disabling these flags. 404 # TODO(kjellander): Make the code compile without disabling these flags.
377 # See https://bugs.webrtc.org/3307. 405 # See https://bugs.webrtc.org/3307.
378 if (is_clang && is_win) { 406 if (is_clang && is_win) {
379 cflags = [ 407 cflags = [
380 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267 408 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 527
500 public_deps = [ 528 public_deps = [
501 ":audio_mixer_api", 529 ":audio_mixer_api",
502 ] 530 ]
503 531
504 deps = [ 532 deps = [
505 "//testing/gmock", 533 "//testing/gmock",
506 ] 534 ]
507 } 535 }
508 } 536 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698