blob: afe2be9bb1cbdbddf86f64c8ec42768cdaa2f1af [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 = [
20 "i420_video_frame.cc",
21 "interface/i420_video_frame.h",
22 "interface/native_handle.h",
magjed@webrtc.org2386d6d2015-03-05 14:03:08 +000023 "interface/video_frame_buffer.h",
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000024 "libyuv/include/scaler.h",
25 "libyuv/include/webrtc_libyuv.h",
26 "libyuv/scaler.cc",
27 "libyuv/webrtc_libyuv.cc",
magjed@webrtc.org2386d6d2015-03-05 14:03:08 +000028 "video_frame_buffer.cc",
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000029 ]
30
31 include_dirs = [ "../modules/interface" ]
32
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000033 configs += [ "..:common_config" ]
34 public_configs = [
35 "..:common_inherited_config",
36 ":common_video_config",
37 ]
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000038
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000039 if (is_clang) {
40 # Suppress warnings from Chrome's Clang plugins.
41 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
42 configs -= [ "//build/config/clang:find_bad_constructs" ]
43 }
44
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000045 deps = [
46 "..:webrtc_common",
47 "../system_wrappers",
48 ]
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000049
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +000050 if (rtc_build_libyuv) {
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +000051 deps += [ "$rtc_libyuv_dir" ]
52 public_deps = [ "$rtc_libyuv_dir" ]
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000053 } else {
54 # Need to add a directory normally exported by libyuv.
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +000055 include_dirs += [ "$rtc_libyuv_dir/include" ]
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000056 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000057}