1 # 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 9 import("../build/webrtc.gni") 10 11 config("common_video_config") { 12 include_dirs = [ 13 "include", 14 "libyuv/include", 15 ] 16 } 17 18 source_set("common_video") { 19 sources = [ 20 "i420_buffer_pool.cc", 21 "include/i420_buffer_pool.h", 22 "include/incoming_video_stream.h", 23 "include/video_frame_buffer.h", 24 "incoming_video_stream.cc", 25 "libyuv/include/scaler.h", 26 "libyuv/include/webrtc_libyuv.h", 27 "libyuv/scaler.cc", 28 "libyuv/webrtc_libyuv.cc", 29 "video_frame.cc", 30 "video_frame_buffer.cc", 31 "video_render_frames.cc", 32 "video_render_frames.h", 33 ] 34 35 include_dirs = [ "../modules/interface" ] 36 37 configs += [ "..:common_config" ] 38 public_configs = [ 39 "..:common_inherited_config", 40 ":common_video_config", 41 ] 42 43 if (is_clang) { 44 # Suppress warnings from Chrome's Clang plugins. 45 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 46 configs -= [ "//build/config/clang:find_bad_constructs" ] 47 } 48 49 deps = [ 50 "..:webrtc_common", 51 "../system_wrappers", 52 ] 53 54 if (rtc_build_libyuv) { 55 deps += [ "$rtc_libyuv_dir" ] 56 public_deps = [ 57 "$rtc_libyuv_dir", 58 ] 59 } else { 60 # Need to add a directory normally exported by libyuv. 61 include_dirs += [ "$rtc_libyuv_dir/include" ] 62 } 63 } 64