kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 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 | |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 11 | config("common_video_config") { |
| 12 | include_dirs = [ |
| 13 | "interface", |
| 14 | "libyuv/include", |
| 15 | ] |
| 16 | } |
| 17 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 18 | source_set("common_video") { |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 19 | sources = [ |
| 20 | "i420_video_frame.cc", |
| 21 | "interface/i420_video_frame.h", |
| 22 | "interface/native_handle.h", |
| 23 | "interface/texture_video_frame.h", |
| 24 | "libyuv/include/scaler.h", |
| 25 | "libyuv/include/webrtc_libyuv.h", |
| 26 | "libyuv/scaler.cc", |
| 27 | "libyuv/webrtc_libyuv.cc", |
| 28 | "plane.cc", |
| 29 | "plane.h", |
| 30 | "texture_video_frame.cc" |
| 31 | ] |
| 32 | |
| 33 | include_dirs = [ "../modules/interface" ] |
| 34 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 35 | configs += [ "..:common_config" ] |
| 36 | public_configs = [ |
| 37 | "..:common_inherited_config", |
| 38 | ":common_video_config", |
| 39 | ] |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 40 | |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 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 | |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 47 | deps = [ "../system_wrappers" ] |
| 48 | |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 49 | if (rtc_build_libyuv) { |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 50 | deps += [ "//third_party/libyuv" ] |
kjellander@webrtc.org | d7e34e1 | 2015-01-26 19:17:26 +0000 | [diff] [blame] | 51 | public_deps = [ "//third_party/libyuv" ] |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 52 | } else { |
| 53 | # Need to add a directory normally exported by libyuv. |
| 54 | include_dirs += [ "//third_party/libyuv/include" ] |
| 55 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 56 | } |