| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../../build/webrtc.gni") | 9 import("../../build/webrtc.gni") |
| 10 | 10 |
| 11 source_set("video_coding") { | 11 rtc_source_set("video_coding") { |
| 12 sources = [ | 12 sources = [ |
| 13 "codec_database.cc", | 13 "codec_database.cc", |
| 14 "codec_database.h", | 14 "codec_database.h", |
| 15 "codec_timer.cc", | 15 "codec_timer.cc", |
| 16 "codec_timer.h", | 16 "codec_timer.h", |
| 17 "decoding_state.cc", | 17 "decoding_state.cc", |
| 18 "decoding_state.h", | 18 "decoding_state.h", |
| 19 "encoded_frame.cc", | 19 "encoded_frame.cc", |
| 20 "encoded_frame.h", | 20 "encoded_frame.h", |
| 21 "fec_tables_xor.h", | 21 "fec_tables_xor.h", |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 configs += [ "../..:common_config" ] | 77 configs += [ "../..:common_config" ] |
| 78 public_configs = [ "../..:common_inherited_config" ] | 78 public_configs = [ "../..:common_inherited_config" ] |
| 79 | 79 |
| 80 # TODO(jschuh): Bug 1348: fix this warning. | 80 # TODO(jschuh): Bug 1348: fix this warning. |
| 81 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 81 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 82 | 82 |
| 83 if (is_clang) { | 83 if (is_clang) { |
| 84 # Suppress warnings from Chrome's Clang plugins. | 84 # Suppress warnings from Chrome's Clang plugins. |
| 85 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 85 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 86 configs -= [ "//build/config/clang:find_bad_constructs" ] | 86 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 87 } | 87 } |
| 88 | 88 |
| 89 deps = [ | 89 deps = [ |
| 90 ":video_coding_utility", | 90 ":video_coding_utility", |
| 91 ":webrtc_h264", | 91 ":webrtc_h264", |
| 92 ":webrtc_i420", | 92 ":webrtc_i420", |
| 93 ":webrtc_vp8", | 93 ":webrtc_vp8", |
| 94 ":webrtc_vp9", | 94 ":webrtc_vp9", |
| 95 "../..:webrtc_common", | 95 "../..:webrtc_common", |
| 96 "../../common_video", | 96 "../../common_video", |
| 97 "../../system_wrappers", | 97 "../../system_wrappers", |
| 98 ] | 98 ] |
| 99 } | 99 } |
| 100 | 100 |
| 101 source_set("video_coding_utility") { | 101 rtc_source_set("video_coding_utility") { |
| 102 sources = [ | 102 sources = [ |
| 103 "utility/frame_dropper.cc", | 103 "utility/frame_dropper.cc", |
| 104 "utility/frame_dropper.h", | 104 "utility/frame_dropper.h", |
| 105 "utility/h264_bitstream_parser.cc", | 105 "utility/h264_bitstream_parser.cc", |
| 106 "utility/h264_bitstream_parser.h", | 106 "utility/h264_bitstream_parser.h", |
| 107 "utility/ivf_file_writer.cc", | 107 "utility/ivf_file_writer.cc", |
| 108 "utility/ivf_file_writer.h", | 108 "utility/ivf_file_writer.h", |
| 109 "utility/moving_average.h", | 109 "utility/moving_average.h", |
| 110 "utility/qp_parser.cc", | 110 "utility/qp_parser.cc", |
| 111 "utility/qp_parser.h", | 111 "utility/qp_parser.h", |
| 112 "utility/quality_scaler.cc", | 112 "utility/quality_scaler.cc", |
| 113 "utility/quality_scaler.h", | 113 "utility/quality_scaler.h", |
| 114 "utility/vp8_header_parser.cc", | 114 "utility/vp8_header_parser.cc", |
| 115 "utility/vp8_header_parser.h", | 115 "utility/vp8_header_parser.h", |
| 116 ] | 116 ] |
| 117 | 117 |
| 118 configs += [ "../..:common_config" ] | 118 configs += [ "../..:common_config" ] |
| 119 public_configs = [ "../..:common_inherited_config" ] | 119 public_configs = [ "../..:common_inherited_config" ] |
| 120 | 120 |
| 121 if (is_clang) { | 121 if (is_clang) { |
| 122 # Suppress warnings from Chrome's Clang plugins. | 122 # Suppress warnings from Chrome's Clang plugins. |
| 123 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 123 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 124 configs -= [ "//build/config/clang:find_bad_constructs" ] | 124 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 125 } | 125 } |
| 126 | 126 |
| 127 deps = [ | 127 deps = [ |
| 128 "../../common_video", | 128 "../../common_video", |
| 129 "../../system_wrappers", | 129 "../../system_wrappers", |
| 130 ] | 130 ] |
| 131 } | 131 } |
| 132 | 132 |
| 133 source_set("webrtc_h264") { | 133 rtc_source_set("webrtc_h264") { |
| 134 sources = [ | 134 sources = [ |
| 135 "codecs/h264/h264.cc", | 135 "codecs/h264/h264.cc", |
| 136 "codecs/h264/include/h264.h", | 136 "codecs/h264/include/h264.h", |
| 137 ] | 137 ] |
| 138 | 138 |
| 139 configs += [ "../..:common_config" ] | 139 configs += [ "../..:common_config" ] |
| 140 public_configs = [ "../..:common_inherited_config" ] | 140 public_configs = [ "../..:common_inherited_config" ] |
| 141 | 141 |
| 142 if (is_clang) { | 142 if (is_clang) { |
| 143 # Suppress warnings from Chrome's Clang plugins. | 143 # Suppress warnings from Chrome's Clang plugins. |
| 144 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 144 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 145 configs -= [ "//build/config/clang:find_bad_constructs" ] | 145 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 146 } | 146 } |
| 147 | 147 |
| 148 defines = [] | 148 defines = [] |
| 149 deps = [ | 149 deps = [ |
| 150 "../../system_wrappers", | 150 "../../system_wrappers", |
| 151 ] | 151 ] |
| 152 | 152 |
| 153 if (is_ios) { | 153 if (is_ios) { |
| 154 sources += [ "codecs/h264/h264_objc.mm" ] | 154 sources += [ "codecs/h264/h264_objc.mm" ] |
| 155 deps += [ ":webrtc_h264_video_toolbox" ] | 155 deps += [ ":webrtc_h264_video_toolbox" ] |
| (...skipping 12 matching lines...) Expand all Loading... |
| 168 ] | 168 ] |
| 169 deps += [ | 169 deps += [ |
| 170 "../../common_video", | 170 "../../common_video", |
| 171 "//third_party/ffmpeg:ffmpeg", | 171 "//third_party/ffmpeg:ffmpeg", |
| 172 "//third_party/openh264:encoder", | 172 "//third_party/openh264:encoder", |
| 173 ] | 173 ] |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 | 176 |
| 177 if (is_ios) { | 177 if (is_ios) { |
| 178 source_set("webrtc_h264_video_toolbox") { | 178 rtc_source_set("webrtc_h264_video_toolbox") { |
| 179 sources = [ | 179 sources = [ |
| 180 "codecs/h264/h264_video_toolbox_decoder.cc", | 180 "codecs/h264/h264_video_toolbox_decoder.cc", |
| 181 "codecs/h264/h264_video_toolbox_decoder.h", | 181 "codecs/h264/h264_video_toolbox_decoder.h", |
| 182 "codecs/h264/h264_video_toolbox_encoder.h", | 182 "codecs/h264/h264_video_toolbox_encoder.h", |
| 183 "codecs/h264/h264_video_toolbox_encoder.mm", | 183 "codecs/h264/h264_video_toolbox_encoder.mm", |
| 184 "codecs/h264/h264_video_toolbox_nalu.cc", | 184 "codecs/h264/h264_video_toolbox_nalu.cc", |
| 185 "codecs/h264/h264_video_toolbox_nalu.h", | 185 "codecs/h264/h264_video_toolbox_nalu.h", |
| 186 ] | 186 ] |
| 187 | 187 |
| 188 configs += [ | 188 configs += [ |
| 189 "../..:common_objc", | 189 "../..:common_objc", |
| 190 "//build/config/compiler:enable_arc", | 190 "//build/config/compiler:enable_arc", |
| 191 ] | 191 ] |
| 192 | 192 |
| 193 deps = [ | 193 deps = [ |
| 194 "../../sdk:rtc_sdk_common_objc", | 194 "../../sdk:rtc_sdk_common_objc", |
| 195 ] | 195 ] |
| 196 | 196 |
| 197 libs = [ | 197 libs = [ |
| 198 "CoreFoundation.framework", | 198 "CoreFoundation.framework", |
| 199 "CoreMedia.framework", | 199 "CoreMedia.framework", |
| 200 "CoreVideo.framework", | 200 "CoreVideo.framework", |
| 201 "VideoToolbox.framework", | 201 "VideoToolbox.framework", |
| 202 ] | 202 ] |
| 203 | 203 |
| 204 if (is_clang) { | 204 if (is_clang) { |
| 205 # Suppress warnings from Chrome's Clang plugins. | 205 # Suppress warnings from Chrome's Clang plugins. |
| 206 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 206 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 207 configs -= [ "//build/config/clang:find_bad_constructs" ] | 207 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 208 } | 208 } |
| 209 | 209 |
| 210 if (rtc_build_libyuv) { | 210 if (rtc_build_libyuv) { |
| 211 deps += [ "$rtc_libyuv_dir" ] | 211 deps += [ "$rtc_libyuv_dir" ] |
| 212 public_deps = [ | 212 public_deps = [ |
| 213 "$rtc_libyuv_dir", | 213 "$rtc_libyuv_dir", |
| 214 ] | 214 ] |
| 215 } else { | 215 } else { |
| 216 # Need to add a directory normally exported by libyuv. | 216 # Need to add a directory normally exported by libyuv. |
| 217 include_dirs += [ "$rtc_libyuv_dir/include" ] | 217 include_dirs += [ "$rtc_libyuv_dir/include" ] |
| 218 } | 218 } |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 | 221 |
| 222 source_set("webrtc_i420") { | 222 rtc_source_set("webrtc_i420") { |
| 223 sources = [ | 223 sources = [ |
| 224 "codecs/i420/i420.cc", | 224 "codecs/i420/i420.cc", |
| 225 "codecs/i420/include/i420.h", | 225 "codecs/i420/include/i420.h", |
| 226 ] | 226 ] |
| 227 | 227 |
| 228 configs += [ "../..:common_config" ] | 228 configs += [ "../..:common_config" ] |
| 229 public_configs = [ "../..:common_inherited_config" ] | 229 public_configs = [ "../..:common_inherited_config" ] |
| 230 | 230 |
| 231 if (is_clang) { | 231 if (is_clang) { |
| 232 # Suppress warnings from Chrome's Clang plugins. | 232 # Suppress warnings from Chrome's Clang plugins. |
| 233 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 233 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 234 configs -= [ "//build/config/clang:find_bad_constructs" ] | 234 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 235 } | 235 } |
| 236 | 236 |
| 237 deps = [ | 237 deps = [ |
| 238 "../../system_wrappers", | 238 "../../system_wrappers", |
| 239 ] | 239 ] |
| 240 } | 240 } |
| 241 | 241 |
| 242 source_set("webrtc_vp8") { | 242 rtc_source_set("webrtc_vp8") { |
| 243 sources = [ | 243 sources = [ |
| 244 "codecs/vp8/default_temporal_layers.cc", | 244 "codecs/vp8/default_temporal_layers.cc", |
| 245 "codecs/vp8/default_temporal_layers.h", | 245 "codecs/vp8/default_temporal_layers.h", |
| 246 "codecs/vp8/include/vp8.h", | 246 "codecs/vp8/include/vp8.h", |
| 247 "codecs/vp8/include/vp8_common_types.h", | 247 "codecs/vp8/include/vp8_common_types.h", |
| 248 "codecs/vp8/realtime_temporal_layers.cc", | 248 "codecs/vp8/realtime_temporal_layers.cc", |
| 249 "codecs/vp8/reference_picture_selection.cc", | 249 "codecs/vp8/reference_picture_selection.cc", |
| 250 "codecs/vp8/reference_picture_selection.h", | 250 "codecs/vp8/reference_picture_selection.h", |
| 251 "codecs/vp8/screenshare_layers.cc", | 251 "codecs/vp8/screenshare_layers.cc", |
| 252 "codecs/vp8/screenshare_layers.h", | 252 "codecs/vp8/screenshare_layers.h", |
| 253 "codecs/vp8/simulcast_encoder_adapter.cc", | 253 "codecs/vp8/simulcast_encoder_adapter.cc", |
| 254 "codecs/vp8/simulcast_encoder_adapter.h", | 254 "codecs/vp8/simulcast_encoder_adapter.h", |
| 255 "codecs/vp8/temporal_layers.h", | 255 "codecs/vp8/temporal_layers.h", |
| 256 "codecs/vp8/vp8_impl.cc", | 256 "codecs/vp8/vp8_impl.cc", |
| 257 "codecs/vp8/vp8_impl.h", | 257 "codecs/vp8/vp8_impl.h", |
| 258 ] | 258 ] |
| 259 | 259 |
| 260 configs += [ "../..:common_config" ] | 260 configs += [ "../..:common_config" ] |
| 261 public_configs = [ "../..:common_inherited_config" ] | 261 public_configs = [ "../..:common_inherited_config" ] |
| 262 | 262 |
| 263 # TODO(jschuh): Bug 1348: fix this warning. | 263 # TODO(jschuh): Bug 1348: fix this warning. |
| 264 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 264 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 265 | 265 |
| 266 if (is_clang) { | 266 if (is_clang) { |
| 267 # Suppress warnings from Chrome's Clang plugins. | 267 # Suppress warnings from Chrome's Clang plugins. |
| 268 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 268 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 269 configs -= [ "//build/config/clang:find_bad_constructs" ] | 269 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 270 } | 270 } |
| 271 | 271 |
| 272 deps = [ | 272 deps = [ |
| 273 ":video_coding_utility", | 273 ":video_coding_utility", |
| 274 "../..:webrtc_common", | 274 "../..:webrtc_common", |
| 275 "../../common_video", | 275 "../../common_video", |
| 276 "../../system_wrappers", | 276 "../../system_wrappers", |
| 277 ] | 277 ] |
| 278 if (rtc_build_libvpx) { | 278 if (rtc_build_libvpx) { |
| 279 deps += [ rtc_libvpx_dir ] | 279 deps += [ rtc_libvpx_dir ] |
| 280 } | 280 } |
| 281 } | 281 } |
| 282 | 282 |
| 283 source_set("webrtc_vp9") { | 283 rtc_source_set("webrtc_vp9") { |
| 284 sources = [ | 284 sources = [ |
| 285 "codecs/vp9/include/vp9.h", | 285 "codecs/vp9/include/vp9.h", |
| 286 "codecs/vp9/screenshare_layers.cc", | 286 "codecs/vp9/screenshare_layers.cc", |
| 287 "codecs/vp9/screenshare_layers.h", | 287 "codecs/vp9/screenshare_layers.h", |
| 288 "codecs/vp9/vp9_frame_buffer_pool.cc", | 288 "codecs/vp9/vp9_frame_buffer_pool.cc", |
| 289 "codecs/vp9/vp9_frame_buffer_pool.h", | 289 "codecs/vp9/vp9_frame_buffer_pool.h", |
| 290 "codecs/vp9/vp9_impl.cc", | 290 "codecs/vp9/vp9_impl.cc", |
| 291 "codecs/vp9/vp9_impl.h", | 291 "codecs/vp9/vp9_impl.h", |
| 292 ] | 292 ] |
| 293 | 293 |
| 294 configs += [ "../..:common_config" ] | 294 configs += [ "../..:common_config" ] |
| 295 public_configs = [ "../..:common_inherited_config" ] | 295 public_configs = [ "../..:common_inherited_config" ] |
| 296 | 296 |
| 297 if (is_clang) { | 297 if (is_clang) { |
| 298 # Suppress warnings from Chrome's Clang plugins. | 298 # Suppress warnings from Chrome's Clang plugins. |
| 299 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 299 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 300 configs -= [ "//build/config/clang:find_bad_constructs" ] | 300 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 301 } | 301 } |
| 302 | 302 |
| 303 deps = [ | 303 deps = [ |
| 304 ":video_coding_utility", | 304 ":video_coding_utility", |
| 305 "../../common_video", | 305 "../../common_video", |
| 306 "../../system_wrappers", | 306 "../../system_wrappers", |
| 307 ] | 307 ] |
| 308 if (rtc_build_libvpx) { | 308 if (rtc_build_libvpx) { |
| 309 deps += [ rtc_libvpx_dir ] | 309 deps += [ rtc_libvpx_dir ] |
| 310 } | 310 } |
| 311 } | 311 } |
| 312 | 312 |
| 313 if (rtc_include_tests) { | 313 if (rtc_include_tests) { |
| 314 source_set("video_codecs_test_framework") { | 314 rtc_source_set("video_codecs_test_framework") { |
| 315 testonly = true | 315 testonly = true |
| 316 sources = [ | 316 sources = [ |
| 317 "codecs/test/mock/mock_packet_manipulator.h", | 317 "codecs/test/mock/mock_packet_manipulator.h", |
| 318 "codecs/test/packet_manipulator.cc", | 318 "codecs/test/packet_manipulator.cc", |
| 319 "codecs/test/packet_manipulator.h", | 319 "codecs/test/packet_manipulator.h", |
| 320 "codecs/test/predictive_packet_manipulator.cc", | 320 "codecs/test/predictive_packet_manipulator.cc", |
| 321 "codecs/test/predictive_packet_manipulator.h", | 321 "codecs/test/predictive_packet_manipulator.h", |
| 322 "codecs/test/stats.cc", | 322 "codecs/test/stats.cc", |
| 323 "codecs/test/stats.h", | 323 "codecs/test/stats.h", |
| 324 "codecs/test/videoprocessor.cc", | 324 "codecs/test/videoprocessor.cc", |
| 325 "codecs/test/videoprocessor.h", | 325 "codecs/test/videoprocessor.h", |
| 326 ] | 326 ] |
| 327 | 327 |
| 328 configs += [ "../..:common_config" ] | 328 configs += [ "../..:common_config" ] |
| 329 public_configs = [ "../..:common_inherited_config" ] | 329 public_configs = [ "../..:common_inherited_config" ] |
| 330 | 330 |
| 331 if (is_clang) { | 331 if (is_clang) { |
| 332 # Suppress warnings from Chrome's Clang plugins. | 332 # Suppress warnings from Chrome's Clang plugins. |
| 333 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 333 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 334 configs -= [ "//build/config/clang:find_bad_constructs" ] | 334 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 335 } | 335 } |
| 336 | 336 |
| 337 deps = [ | 337 deps = [ |
| 338 "../../test:test_support", | 338 "../../test:test_support", |
| 339 ] | 339 ] |
| 340 } | 340 } |
| 341 } | 341 } |
| OLD | NEW |