blob: 24423f5d331f53edc6eda335aba0785cb2b1fa1b [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# 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
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000011config("common_video_config") {
12 include_dirs = [
13 "interface",
14 "libyuv/include",
15 ]
16}
17
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000018source_set("common_video") {
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000019 sources = [
magjed@webrtc.org73d763e2015-03-17 11:40:45 +000020 "i420_buffer_pool.cc",
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000021 "i420_video_frame.cc",
22 "interface/i420_video_frame.h",
magjed@webrtc.org73d763e2015-03-17 11:40:45 +000023 "interface/i420_buffer_pool.h",
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000024 "interface/native_handle.h",
magjed@webrtc.org2386d6d2015-03-05 14:03:08 +000025 "interface/video_frame_buffer.h",
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000026 "libyuv/include/scaler.h",
27 "libyuv/include/webrtc_libyuv.h",
28 "libyuv/scaler.cc",
29 "libyuv/webrtc_libyuv.cc",
magjed@webrtc.org2386d6d2015-03-05 14:03:08 +000030 "video_frame_buffer.cc",
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000031 ]
32
33 include_dirs = [ "../modules/interface" ]
34
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000035 configs += [ "..:common_config" ]
36 public_configs = [
37 "..:common_inherited_config",
38 ":common_video_config",
39 ]
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000040
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000041 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
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000047 deps = [
48 "..:webrtc_common",
49 "../system_wrappers",
50 ]
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000051
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +000052 if (rtc_build_libyuv) {
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +000053 deps += [ "$rtc_libyuv_dir" ]
54 public_deps = [ "$rtc_libyuv_dir" ]
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000055 } else {
56 # Need to add a directory normally exported by libyuv.
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +000057 include_dirs += [ "$rtc_libyuv_dir/include" ]
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000058 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000059}