• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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      'conditions': [
24        ['build_libvpx==1', {
25          'dependencies': [
26            '<(libvpx_dir)/libvpx.gyp:libvpx_new',
27          ],
28        }],
29      ],
30      'sources': [
31        'default_temporal_layers.cc',
32        'default_temporal_layers.h',
33        'include/vp8.h',
34        'include/vp8_common_types.h',
35        'realtime_temporal_layers.cc',
36        'reference_picture_selection.cc',
37        'reference_picture_selection.h',
38        'screenshare_layers.cc',
39        'screenshare_layers.h',
40        'simulcast_encoder_adapter.cc',
41        'simulcast_encoder_adapter.h',
42        'temporal_layers.h',
43        'vp8_factory.cc',
44        'vp8_factory.h',
45        'vp8_impl.cc',
46        'vp8_impl.h',
47      ],
48      # Disable warnings to enable Win64 build, issue 1323.
49      'msvs_disabled_warnings': [
50        4267,  # size_t to int truncation.
51      ],
52    },
53  ], # targets
54  'conditions': [
55    ['include_tests==1', {
56      'targets': [
57        {
58          'target_name': 'vp8_coder',
59          'type': 'executable',
60          'dependencies': [
61            'webrtc_vp8',
62            '<(webrtc_root)/common_video/common_video.gyp:common_video',
63            '<(webrtc_root)/test/metrics.gyp:metrics',
64            '<(DEPTH)/testing/gtest.gyp:gtest',
65            '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
66            '<(webrtc_root)/test/test.gyp:test_support_main',
67            '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
68          ],
69          'sources': [
70            'vp8_sequence_coder.cc',
71          ],
72        },
73      ], # targets
74    }], # include_tests
75  ],
76}
77