kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 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 | import("../../build/webrtc.gni") |
| 10 | |
| 11 | source_set("video_coding") { |
| 12 | sources = [ |
| 13 | "main/interface/video_coding.h", |
| 14 | "main/interface/video_coding_defines.h", |
| 15 | "main/source/codec_database.cc", |
| 16 | "main/source/codec_database.h", |
| 17 | "main/source/codec_timer.cc", |
| 18 | "main/source/codec_timer.h", |
| 19 | "main/source/content_metrics_processing.cc", |
| 20 | "main/source/content_metrics_processing.h", |
| 21 | "main/source/decoding_state.cc", |
| 22 | "main/source/decoding_state.h", |
| 23 | "main/source/encoded_frame.cc", |
| 24 | "main/source/encoded_frame.h", |
| 25 | "main/source/er_tables_xor.h", |
| 26 | "main/source/fec_tables_xor.h", |
| 27 | "main/source/frame_buffer.cc", |
| 28 | "main/source/frame_buffer.h", |
| 29 | "main/source/generic_decoder.cc", |
| 30 | "main/source/generic_decoder.h", |
| 31 | "main/source/generic_encoder.cc", |
| 32 | "main/source/generic_encoder.h", |
| 33 | "main/source/inter_frame_delay.cc", |
| 34 | "main/source/inter_frame_delay.h", |
| 35 | "main/source/internal_defines.h", |
| 36 | "main/source/jitter_buffer.cc", |
| 37 | "main/source/jitter_buffer.h", |
| 38 | "main/source/jitter_buffer_common.h", |
| 39 | "main/source/jitter_estimator.cc", |
| 40 | "main/source/jitter_estimator.h", |
| 41 | "main/source/media_opt_util.cc", |
| 42 | "main/source/media_opt_util.h", |
| 43 | "main/source/media_optimization.cc", |
| 44 | "main/source/media_optimization.h", |
| 45 | "main/source/nack_fec_tables.h", |
| 46 | "main/source/packet.cc", |
| 47 | "main/source/packet.h", |
| 48 | "main/source/qm_select_data.h", |
| 49 | "main/source/qm_select.cc", |
| 50 | "main/source/qm_select.h", |
| 51 | "main/source/receiver.cc", |
| 52 | "main/source/receiver.h", |
| 53 | "main/source/rtt_filter.cc", |
| 54 | "main/source/rtt_filter.h", |
| 55 | "main/source/session_info.cc", |
| 56 | "main/source/session_info.h", |
| 57 | "main/source/timestamp_map.cc", |
| 58 | "main/source/timestamp_map.h", |
| 59 | "main/source/timing.cc", |
| 60 | "main/source/timing.h", |
| 61 | "main/source/video_coding_impl.cc", |
| 62 | "main/source/video_coding_impl.h", |
| 63 | "main/source/video_receiver.cc", |
| 64 | "main/source/video_sender.cc", |
| 65 | ] |
| 66 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 67 | configs += [ "../..:common_config" ] |
| 68 | public_configs = [ "../..:common_inherited_config" ] |
| 69 | |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 70 | if (is_clang) { |
| 71 | # Suppress warnings from Chrome's Clang plugins. |
| 72 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 73 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 74 | } |
| 75 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 76 | deps = [ |
| 77 | ":video_coding_utility", |
| 78 | ":webrtc_i420", |
| 79 | ":webrtc_vp8", |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 80 | ":webrtc_vp9", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 81 | "../../common_video", |
| 82 | "../../system_wrappers", |
| 83 | ] |
| 84 | } |
| 85 | |
| 86 | source_set("video_coding_utility") { |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 87 | sources = [ |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 88 | "utility/frame_dropper.cc", |
sprang@webrtc.org | 46d4d29 | 2014-12-23 15:19:35 +0000 | [diff] [blame^] | 89 | "utility/include/frame_dropper.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 90 | "utility/quality_scaler.cc", |
| 91 | "utility/quality_scaler.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 92 | ] |
| 93 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 94 | configs += [ "../..:common_config" ] |
| 95 | public_configs = [ "../..:common_inherited_config" ] |
| 96 | |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 97 | if (is_clang) { |
| 98 | # Suppress warnings from Chrome's Clang plugins. |
| 99 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 100 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 101 | } |
| 102 | |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 103 | deps = [ "../../system_wrappers" ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 104 | } |
| 105 | |
| 106 | source_set("webrtc_i420") { |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 107 | sources = [ |
| 108 | "codecs/i420/main/source/i420.cc", |
| 109 | "codecs/i420/main/interface/i420.h", |
| 110 | ] |
| 111 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 112 | configs += [ "../..:common_config" ] |
| 113 | public_configs = [ "../..:common_inherited_config" ] |
| 114 | |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 115 | if (is_clang) { |
| 116 | # Suppress warnings from Chrome's Clang plugins. |
| 117 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 118 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 119 | } |
| 120 | |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 121 | deps = [ "../../system_wrappers" ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 122 | } |
| 123 | |
| 124 | source_set("webrtc_vp8") { |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 125 | sources = [ |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 126 | "codecs/vp8/default_temporal_layers.cc", |
| 127 | "codecs/vp8/default_temporal_layers.h", |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 128 | "codecs/vp8/include/vp8.h", |
| 129 | "codecs/vp8/include/vp8_common_types.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 130 | "codecs/vp8/realtime_temporal_layers.cc", |
| 131 | "codecs/vp8/reference_picture_selection.cc", |
| 132 | "codecs/vp8/reference_picture_selection.h", |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 133 | "codecs/vp8/screenshare_layers.cc", |
| 134 | "codecs/vp8/screenshare_layers.h", |
| 135 | "codecs/vp8/simulcast_encoder_adapter.cc", |
| 136 | "codecs/vp8/simulcast_encoder_adapter.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 137 | "codecs/vp8/temporal_layers.h", |
| 138 | "codecs/vp8/vp8_factory.cc", |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 139 | "codecs/vp8/vp8_factory.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 140 | "codecs/vp8/vp8_impl.cc", |
| 141 | "codecs/vp8/vp8_impl.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 142 | ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 143 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 144 | configs += [ "../..:common_config" ] |
| 145 | public_configs = [ "../..:common_inherited_config" ] |
| 146 | |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 147 | if (is_clang) { |
| 148 | # Suppress warnings from Chrome's Clang plugins. |
| 149 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 150 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 151 | } |
| 152 | |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 153 | # TODO(kjellander): Remove once libvpx has changed it's libvpx_config to be |
| 154 | # in direct_dependent_configs. |
| 155 | configs += [ "//third_party/libvpx:libvpx_config" ] |
| 156 | |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 157 | deps = [ |
| 158 | ":video_coding_utility", |
| 159 | "../../common_video", |
| 160 | "../../system_wrappers", |
| 161 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 162 | if (rtc_build_libvpx) { |
| 163 | deps += [ |
| 164 | "//third_party/libvpx", |
| 165 | ] |
| 166 | } |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 167 | if (rtc_build_libyuv) { |
| 168 | deps += [ "//third_party/libyuv" ] |
| 169 | } else { |
| 170 | # Need to add a directory normally exported by libyuv. |
| 171 | include_dirs += [ "//third_party/libyuv/include" ] |
| 172 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 173 | } |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 174 | |
| 175 | source_set("webrtc_vp9") { |
| 176 | sources = [ |
| 177 | "codecs/vp9/include/vp9.h", |
| 178 | "codecs/vp9/vp9_impl.cc", |
| 179 | "codecs/vp9/vp9_impl.h", |
| 180 | ] |
| 181 | |
| 182 | configs += [ "../..:common_config" ] |
| 183 | public_configs = [ "../..:common_inherited_config" ] |
| 184 | |
| 185 | if (is_clang) { |
| 186 | # Suppress warnings from Chrome's Clang plugins. |
| 187 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 188 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 189 | } |
| 190 | |
| 191 | # TODO(kjellander): Remove once libvpx has changed it's libvpx_config to be |
| 192 | # in direct_dependent_configs. |
| 193 | configs += [ "//third_party/libvpx:libvpx_config" ] |
| 194 | |
| 195 | deps = [ |
| 196 | ":video_coding_utility", |
| 197 | "../../common_video", |
| 198 | "../../system_wrappers", |
| 199 | ] |
| 200 | if (rtc_build_libvpx) { |
| 201 | deps += [ |
| 202 | "//third_party/libvpx", |
| 203 | ] |
| 204 | } |
| 205 | } |