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