1 # Copyright (c) 2012 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 { 10 'includes': ['../build/common.gypi'], 11 'targets': [ 12 { 13 'target_name': 'common_video', 14 'type': 'static_library', 15 'include_dirs': [ 16 '<(webrtc_root)/modules/interface/', 17 'interface', 18 'libyuv/include', 19 ], 20 'dependencies': [ 21 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', 22 ], 23 'direct_dependent_settings': { 24 'include_dirs': [ 25 'interface', 26 'libyuv/include', 27 ], 28 }, 29 'conditions': [ 30 ['build_libyuv==1', { 31 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',], 32 }, { 33 # Need to add a directory normally exported by libyuv.gyp. 34 'include_dirs': ['<(libyuv_dir)/include',], 35 }], 36 ], 37 'sources': [ 38 'interface/i420_video_frame.h', 39 'interface/native_handle.h', 40 'interface/texture_video_frame.h', 41 'i420_video_frame.cc', 42 'libyuv/include/webrtc_libyuv.h', 43 'libyuv/include/scaler.h', 44 'libyuv/webrtc_libyuv.cc', 45 'libyuv/scaler.cc', 46 'plane.h', 47 'plane.cc', 48 'texture_video_frame.cc' 49 ], 50 }, 51 ], # targets 52 } 53