andrew@webrtc.org | f5a91fd | 2012-07-23 16:28:02 +0000 | [diff] [blame] | 1 | # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 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. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 8 | |
| 9 | { |
andrew@webrtc.org | f5a91fd | 2012-07-23 16:28:02 +0000 | [diff] [blame] | 10 | 'includes': [ |
andrew@webrtc.org | d1f3b1a | 2012-07-27 22:19:16 +0000 | [diff] [blame] | 11 | '../../../../build/common.gypi', |
| 12 | '../test_framework/test_framework.gypi' |
andrew@webrtc.org | f5a91fd | 2012-07-23 16:28:02 +0000 | [diff] [blame] | 13 | ], |
henrikg@webrtc.org | c0ceb82 | 2012-10-24 12:34:28 +0000 | [diff] [blame] | 14 | 'variables': { |
| 15 | 'conditions': [ |
| 16 | ['build_with_chromium==1', { |
| 17 | 'use_temporal_layers%': 0, |
| 18 | }, { |
| 19 | 'use_temporal_layers%': 1, |
| 20 | }], |
| 21 | ], |
| 22 | }, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 23 | 'targets': [ |
| 24 | { |
| 25 | 'target_name': 'webrtc_vp8', |
wjia@webrtc.org | a3c82bf | 2013-01-18 23:42:21 +0000 | [diff] [blame] | 26 | 'type': 'static_library', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 27 | 'dependencies': [ |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 28 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
andrew@webrtc.org | fa418ac | 2012-09-11 01:34:21 +0000 | [diff] [blame] | 29 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 30 | ], |
| 31 | 'include_dirs': [ |
andrew@webrtc.org | d1f3b1a | 2012-07-27 22:19:16 +0000 | [diff] [blame] | 32 | 'include', |
stefan@webrtc.org | 0ee8ba1 | 2011-11-25 12:12:43 +0000 | [diff] [blame] | 33 | '<(webrtc_root)/common_video/interface', |
stefan@webrtc.org | 0ee8ba1 | 2011-11-25 12:12:43 +0000 | [diff] [blame] | 34 | '<(webrtc_root)/modules/video_coding/codecs/interface', |
| 35 | '<(webrtc_root)/modules/interface', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 36 | ], |
| 37 | 'conditions': [ |
sjlee@webrtc.org | 4b42508 | 2012-09-10 17:58:21 +0000 | [diff] [blame] | 38 | ['build_libvpx==1', { |
| 39 | 'dependencies': [ |
| 40 | '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', |
| 41 | ], |
| 42 | }], |
andrew@webrtc.org | d1f3b1a | 2012-07-27 22:19:16 +0000 | [diff] [blame] | 43 | # TODO(mikhal): Investigate this mechanism for handling differences |
| 44 | # between the Chromium and standalone builds. |
| 45 | # http://code.google.com/p/webrtc/issues/detail?id=201 |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 46 | ['build_with_chromium==1', { |
stefan@webrtc.org | 0ee8ba1 | 2011-11-25 12:12:43 +0000 | [diff] [blame] | 47 | 'defines': [ |
| 48 | 'WEBRTC_LIBVPX_VERSION=960' # Bali |
| 49 | ], |
sjlee@webrtc.org | 4b42508 | 2012-09-10 17:58:21 +0000 | [diff] [blame] | 50 | }, { |
mikhal@webrtc.org | 6724cf8 | 2011-08-24 00:51:36 +0000 | [diff] [blame] | 51 | 'defines': [ |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 52 | 'WEBRTC_LIBVPX_VERSION=971' # Cayuga |
mikhal@webrtc.org | 6724cf8 | 2011-08-24 00:51:36 +0000 | [diff] [blame] | 53 | ], |
henrikg@webrtc.org | c0ceb82 | 2012-10-24 12:34:28 +0000 | [diff] [blame] | 54 | }], |
| 55 | ['use_temporal_layers==1', { |
stefan@webrtc.org | 0ae71b9 | 2011-12-05 08:42:52 +0000 | [diff] [blame] | 56 | 'sources': [ |
| 57 | 'temporal_layers.h', |
| 58 | 'temporal_layers.cc', |
| 59 | ], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 60 | }], |
| 61 | ], |
| 62 | 'direct_dependent_settings': { |
| 63 | 'include_dirs': [ |
andrew@webrtc.org | d1f3b1a | 2012-07-27 22:19:16 +0000 | [diff] [blame] | 64 | 'include', |
stefan@webrtc.org | 0ee8ba1 | 2011-11-25 12:12:43 +0000 | [diff] [blame] | 65 | '<(webrtc_root)/common_video/interface', |
| 66 | '<(webrtc_root)/modules/video_coding/codecs/interface', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 67 | ], |
| 68 | }, |
| 69 | 'sources': [ |
stefan@webrtc.org | a4a88f9 | 2011-12-02 08:34:05 +0000 | [diff] [blame] | 70 | 'reference_picture_selection.h', |
| 71 | 'reference_picture_selection.cc', |
andrew@webrtc.org | d1f3b1a | 2012-07-27 22:19:16 +0000 | [diff] [blame] | 72 | 'include/vp8.h', |
| 73 | 'include/vp8_common_types.h', |
pwestin@webrtc.org | 8d89b58 | 2012-09-20 20:49:12 +0000 | [diff] [blame] | 74 | 'vp8_impl.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 75 | ], |
kjellander@webrtc.org | fa53d87 | 2013-02-04 10:07:17 +0000 | [diff] [blame^] | 76 | # Disable warnings to enable Win64 build, issue 1323. |
| 77 | 'msvs_disabled_warnings': [ |
| 78 | 4267, # size_t to int truncation. |
| 79 | ], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 80 | }, |
xians@google.com | 508eba5 | 2011-08-08 12:48:13 +0000 | [diff] [blame] | 81 | ], # targets |
mflodman@webrtc.org | 6af9594 | 2012-05-24 13:23:35 +0000 | [diff] [blame] | 82 | 'conditions': [ |
| 83 | ['include_tests==1', { |
xians@google.com | 508eba5 | 2011-08-08 12:48:13 +0000 | [diff] [blame] | 84 | 'targets': [ |
| 85 | { |
stefan@webrtc.org | 42e78ac | 2012-05-24 14:36:34 +0000 | [diff] [blame] | 86 | 'target_name': 'vp8_integrationtests', |
xians@google.com | 508eba5 | 2011-08-08 12:48:13 +0000 | [diff] [blame] | 87 | 'type': 'executable', |
| 88 | 'dependencies': [ |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 89 | 'test_framework', |
xians@google.com | 508eba5 | 2011-08-08 12:48:13 +0000 | [diff] [blame] | 90 | 'webrtc_vp8', |
andrew@webrtc.org | fa418ac | 2012-09-11 01:34:21 +0000 | [diff] [blame] | 91 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 92 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 93 | '<(webrtc_root)/test/test.gyp:test_support', |
| 94 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 95 | '<(DEPTH)/testing/gtest.gyp:gtest', |
xians@google.com | 508eba5 | 2011-08-08 12:48:13 +0000 | [diff] [blame] | 96 | ], |
| 97 | 'sources': [ |
xians@google.com | 508eba5 | 2011-08-08 12:48:13 +0000 | [diff] [blame] | 98 | # source files |
mikhal@webrtc.org | 251f64e | 2012-12-06 17:56:20 +0000 | [diff] [blame] | 99 | 'test/vp8_impl_unittest.cc', |
stefan@webrtc.org | a4a88f9 | 2011-12-02 08:34:05 +0000 | [diff] [blame] | 100 | ], |
| 101 | }, |
| 102 | { |
| 103 | 'target_name': 'vp8_unittests', |
| 104 | 'type': 'executable', |
| 105 | 'dependencies': [ |
andrew@webrtc.org | f5a91fd | 2012-07-23 16:28:02 +0000 | [diff] [blame] | 106 | 'webrtc_vp8', |
mikhal@webrtc.org | 60d25f9 | 2012-12-06 16:48:18 +0000 | [diff] [blame] | 107 | 'test_framework', |
stefan@webrtc.org | c530043 | 2012-10-08 07:06:53 +0000 | [diff] [blame] | 108 | '<(DEPTH)/testing/gmock.gyp:gmock', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 109 | '<(DEPTH)/testing/gtest.gyp:gtest', |
andrew@webrtc.org | f5a91fd | 2012-07-23 16:28:02 +0000 | [diff] [blame] | 110 | '<(webrtc_root)/test/test.gyp:test_support_main', |
stefan@webrtc.org | a4a88f9 | 2011-12-02 08:34:05 +0000 | [diff] [blame] | 111 | ], |
| 112 | 'include_dirs': [ |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 113 | '<(DEPTH)/third_party/libvpx/source/libvpx', |
stefan@webrtc.org | a4a88f9 | 2011-12-02 08:34:05 +0000 | [diff] [blame] | 114 | ], |
| 115 | 'sources': [ |
| 116 | 'reference_picture_selection_unittest.cc', |
pwestin@webrtc.org | db221d2 | 2011-12-02 11:31:08 +0000 | [diff] [blame] | 117 | 'temporal_layers_unittest.cc', |
xians@google.com | 508eba5 | 2011-08-08 12:48:13 +0000 | [diff] [blame] | 118 | ], |
sjlee@webrtc.org | 4b42508 | 2012-09-10 17:58:21 +0000 | [diff] [blame] | 119 | 'conditions': [ |
| 120 | ['build_libvpx==1', { |
| 121 | 'dependencies': [ |
| 122 | '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', |
| 123 | ], |
| 124 | }], |
| 125 | ], |
xians@google.com | 508eba5 | 2011-08-08 12:48:13 +0000 | [diff] [blame] | 126 | }, |
mikhal@webrtc.org | 451aa5d | 2012-12-07 21:23:02 +0000 | [diff] [blame] | 127 | { |
| 128 | 'target_name': 'vp8_coder', |
| 129 | 'type': 'executable', |
| 130 | 'dependencies': [ |
| 131 | 'webrtc_vp8', |
| 132 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
| 133 | '<(webrtc_root)/test/metrics.gyp:metrics', |
| 134 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 135 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 136 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 137 | '<(webrtc_root)/tools/tools.gyp:command_line_parser', |
| 138 | ], |
| 139 | 'sources': [ |
| 140 | 'vp8_sequence_coder.cc', |
| 141 | ], |
| 142 | }, |
xians@google.com | 508eba5 | 2011-08-08 12:48:13 +0000 | [diff] [blame] | 143 | ], # targets |
mflodman@webrtc.org | 6af9594 | 2012-05-24 13:23:35 +0000 | [diff] [blame] | 144 | }], # include_tests |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 145 | ], |
| 146 | } |