blob: 69915e34ca0c82f974301d69a0279ba141170580 [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",
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
35 direct_dependent_configs = [ ":common_video_config" ]
36
37 deps = [ "../system_wrappers" ]
38
39 if (build_libyuv) {
40 deps += [ "//third_party/libyuv" ]
41 } else {
42 # Need to add a directory normally exported by libyuv.
43 include_dirs += [ "//third_party/libyuv/include" ]
44 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000045}