blob: bd86390a469524908322fe07af45a9ffea271e32 [file] [log] [blame]
andrew@webrtc.orgf5a91fd2012-07-23 16:28:02 +00001# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
xians@google.comd3185fe2011-09-12 12:24:39 +00002#
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.
niklase@google.com470e71d2011-07-07 08:21:25 +00008
9{
andrew@webrtc.orgf5a91fd2012-07-23 16:28:02 +000010 'includes': [
andrew@webrtc.orgd1f3b1a2012-07-27 22:19:16 +000011 '../../../../build/common.gypi',
12 '../test_framework/test_framework.gypi'
andrew@webrtc.orgf5a91fd2012-07-23 16:28:02 +000013 ],
niklase@google.com470e71d2011-07-07 08:21:25 +000014 'targets': [
15 {
16 'target_name': 'webrtc_vp8',
wjia@webrtc.orga3c82bf2013-01-18 23:42:21 +000017 'type': 'static_library',
niklase@google.com470e71d2011-07-07 08:21:25 +000018 'dependencies': [
andrew@webrtc.orgfa418ac2012-09-11 01:34:21 +000019 '<(webrtc_root)/common_video/common_video.gyp:common_video',
stefan@webrtc.orgeb917922013-02-18 14:40:18 +000020 '<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility',
21 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
niklase@google.com470e71d2011-07-07 08:21:25 +000022 ],
23 'include_dirs': [
andrew@webrtc.orgd1f3b1a2012-07-27 22:19:16 +000024 'include',
stefan@webrtc.org0ee8ba12011-11-25 12:12:43 +000025 '<(webrtc_root)/common_video/interface',
stefan@webrtc.org0ee8ba12011-11-25 12:12:43 +000026 '<(webrtc_root)/modules/video_coding/codecs/interface',
27 '<(webrtc_root)/modules/interface',
niklase@google.com470e71d2011-07-07 08:21:25 +000028 ],
29 'conditions': [
sjlee@webrtc.org4b425082012-09-10 17:58:21 +000030 ['build_libvpx==1', {
31 'dependencies': [
32 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
33 ],
34 }],
niklase@google.com470e71d2011-07-07 08:21:25 +000035 ],
36 'direct_dependent_settings': {
37 'include_dirs': [
andrew@webrtc.orgd1f3b1a2012-07-27 22:19:16 +000038 'include',
stefan@webrtc.org0ee8ba12011-11-25 12:12:43 +000039 '<(webrtc_root)/common_video/interface',
40 '<(webrtc_root)/modules/video_coding/codecs/interface',
niklase@google.com470e71d2011-07-07 08:21:25 +000041 ],
42 },
43 'sources': [
stefan@webrtc.orga4a88f92011-12-02 08:34:05 +000044 'reference_picture_selection.h',
45 'reference_picture_selection.cc',
andrew@webrtc.orgd1f3b1a2012-07-27 22:19:16 +000046 'include/vp8.h',
47 'include/vp8_common_types.h',
pwestin@webrtc.org8d89b582012-09-20 20:49:12 +000048 'vp8_impl.cc',
andresp@webrtc.org48c58822013-04-17 15:31:40 +000049 'default_temporal_layers.cc',
50 'default_temporal_layers.h',
51 'temporal_layers.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000052 ],
kjellander@webrtc.orgfa53d872013-02-04 10:07:17 +000053 # Disable warnings to enable Win64 build, issue 1323.
54 'msvs_disabled_warnings': [
55 4267, # size_t to int truncation.
56 ],
niklase@google.com470e71d2011-07-07 08:21:25 +000057 },
xians@google.com508eba52011-08-08 12:48:13 +000058 ], # targets
mflodman@webrtc.org6af95942012-05-24 13:23:35 +000059 'conditions': [
60 ['include_tests==1', {
xians@google.com508eba52011-08-08 12:48:13 +000061 'targets': [
62 {
stefan@webrtc.org42e78ac2012-05-24 14:36:34 +000063 'target_name': 'vp8_integrationtests',
xians@google.com508eba52011-08-08 12:48:13 +000064 'type': 'executable',
65 'dependencies': [
xians@google.comd3185fe2011-09-12 12:24:39 +000066 'test_framework',
xians@google.com508eba52011-08-08 12:48:13 +000067 'webrtc_vp8',
andrew@webrtc.orgfa418ac2012-09-11 01:34:21 +000068 '<(webrtc_root)/common_video/common_video.gyp:common_video',
xians@google.comd3185fe2011-09-12 12:24:39 +000069 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
andrew@webrtc.org81cf5e42012-06-27 01:41:54 +000070 '<(webrtc_root)/test/test.gyp:test_support',
71 '<(webrtc_root)/test/test.gyp:test_support_main',
72 '<(DEPTH)/testing/gtest.gyp:gtest',
xians@google.com508eba52011-08-08 12:48:13 +000073 ],
74 'sources': [
xians@google.com508eba52011-08-08 12:48:13 +000075 # source files
mikhal@webrtc.org251f64e2012-12-06 17:56:20 +000076 'test/vp8_impl_unittest.cc',
stefan@webrtc.orga4a88f92011-12-02 08:34:05 +000077 ],
78 },
79 {
80 'target_name': 'vp8_unittests',
81 'type': 'executable',
82 'dependencies': [
andrew@webrtc.orgf5a91fd2012-07-23 16:28:02 +000083 'webrtc_vp8',
mikhal@webrtc.org60d25f92012-12-06 16:48:18 +000084 'test_framework',
stefan@webrtc.orgc5300432012-10-08 07:06:53 +000085 '<(DEPTH)/testing/gmock.gyp:gmock',
andrew@webrtc.org81cf5e42012-06-27 01:41:54 +000086 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.orgf5a91fd2012-07-23 16:28:02 +000087 '<(webrtc_root)/test/test.gyp:test_support_main',
stefan@webrtc.orga4a88f92011-12-02 08:34:05 +000088 ],
stefan@webrtc.orga4a88f92011-12-02 08:34:05 +000089 'sources': [
stefan@webrtc.orgeb917922013-02-18 14:40:18 +000090 'default_temporal_layers_unittest.cc',
stefan@webrtc.orga4a88f92011-12-02 08:34:05 +000091 'reference_picture_selection_unittest.cc',
xians@google.com508eba52011-08-08 12:48:13 +000092 ],
sjlee@webrtc.org4b425082012-09-10 17:58:21 +000093 'conditions': [
94 ['build_libvpx==1', {
95 'dependencies': [
96 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
97 ],
98 }],
99 ],
xians@google.com508eba52011-08-08 12:48:13 +0000100 },
mikhal@webrtc.org451aa5d2012-12-07 21:23:02 +0000101 {
102 'target_name': 'vp8_coder',
103 'type': 'executable',
104 'dependencies': [
105 'webrtc_vp8',
106 '<(webrtc_root)/common_video/common_video.gyp:common_video',
107 '<(webrtc_root)/test/metrics.gyp:metrics',
108 '<(DEPTH)/testing/gtest.gyp:gtest',
109 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
110 '<(webrtc_root)/test/test.gyp:test_support_main',
phoglund@webrtc.org14d77002013-05-17 11:52:08 +0000111 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
mikhal@webrtc.org451aa5d2012-12-07 21:23:02 +0000112 ],
113 'sources': [
114 'vp8_sequence_coder.cc',
115 ],
116 },
xians@google.com508eba52011-08-08 12:48:13 +0000117 ], # targets
mflodman@webrtc.org6af95942012-05-24 13:23:35 +0000118 }], # include_tests
niklase@google.com470e71d2011-07-07 08:21:25 +0000119 ],
120}