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': [ 11 '../../../../build/common.gypi', 12 ], 13 'targets': [ 14 { 15 'target_name': 'webrtc_vp8', 16 'type': 'static_library', 17 'dependencies': [ 18 '<(webrtc_root)/common.gyp:webrtc_common', 19 '<(webrtc_root)/common_video/common_video.gyp:common_video', 20 '<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility', 21 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', 22 ], 23 'include_dirs': [ 24 '../../../../../../../libyuv/include', 25 ], 26 'conditions': [ 27 ['build_libvpx==1', { 28 'dependencies': [ 29 '<(libvpx_dir)/libvpx.gyp:libvpx', 30 ], 31 },{ 32 'link_settings': { 33 'libraries': [ 34 '$(LIBVPX_OBJ)/libvpx.a', 35 ], 36 }, 37 }], 38 ], 39 'sources': [ 40 'default_temporal_layers.cc', 41 'default_temporal_layers.h', 42 'include/vp8.h', 43 'include/vp8_common_types.h', 44 'realtime_temporal_layers.cc', 45 'reference_picture_selection.cc', 46 'reference_picture_selection.h', 47 'screenshare_layers.cc', 48 'screenshare_layers.h', 49 'simulcast_encoder_adapter.cc', 50 'simulcast_encoder_adapter.h', 51 'temporal_layers.h', 52 'vp8_factory.cc', 53 'vp8_factory.h', 54 'vp8_impl.cc', 55 'vp8_impl.h', 56 ], 57 # Disable warnings to enable Win64 build, issue 1323. 58 'msvs_disabled_warnings': [ 59 4267, # size_t to int truncation. 60 ], 61 }, 62 ], # targets 63 'conditions': [ 64 ['include_tests==1', { 65 'targets': [ 66 { 67 'target_name': 'vp8_coder', 68 'type': 'executable', 69 'dependencies': [ 70 'webrtc_vp8', 71 '<(webrtc_root)/common_video/common_video.gyp:common_video', 72 '<(webrtc_root)/test/metrics.gyp:metrics', 73 '<(DEPTH)/testing/gtest.gyp:gtest', 74 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', 75 '<(webrtc_root)/test/test.gyp:test_support_main', 76 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser', 77 ], 78 'sources': [ 79 'vp8_sequence_coder.cc', 80 ], 81 }, 82 ], # targets 83 }], # include_tests 84 ], 85} 86