| 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 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 if (!build_with_chromium && is_clang) { | 132 if (!build_with_chromium && is_clang) { |
| 133 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 133 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 134 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 134 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 135 } | 135 } |
| 136 | 136 |
| 137 defines = [] | 137 defines = [] |
| 138 deps = [ | 138 deps = [ |
| 139 "../../system_wrappers", | 139 "../../system_wrappers", |
| 140 ] | 140 ] |
| 141 | 141 |
| 142 if (is_ios) { | |
| 143 sources += [ "codecs/h264/h264_objc.mm" ] | |
| 144 deps += [ ":webrtc_h264_video_toolbox" ] | |
| 145 } | |
| 146 | |
| 147 if (rtc_use_h264) { | 142 if (rtc_use_h264) { |
| 148 defines += [ "WEBRTC_USE_H264" ] | 143 defines += [ "WEBRTC_USE_H264" ] |
| 149 if (rtc_initialize_ffmpeg) { | 144 if (rtc_initialize_ffmpeg) { |
| 150 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ] | 145 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ] |
| 151 } | 146 } |
| 152 sources += [ | 147 sources += [ |
| 153 "codecs/h264/h264_decoder_impl.cc", | 148 "codecs/h264/h264_decoder_impl.cc", |
| 154 "codecs/h264/h264_decoder_impl.h", | 149 "codecs/h264/h264_decoder_impl.h", |
| 155 "codecs/h264/h264_encoder_impl.cc", | 150 "codecs/h264/h264_encoder_impl.cc", |
| 156 "codecs/h264/h264_encoder_impl.h", | 151 "codecs/h264/h264_encoder_impl.h", |
| 157 ] | 152 ] |
| 158 deps += [ | 153 deps += [ |
| 159 "../../common_video", | 154 "../../common_video", |
| 160 "//third_party/ffmpeg:ffmpeg", | 155 "//third_party/ffmpeg:ffmpeg", |
| 161 "//third_party/openh264:encoder", | 156 "//third_party/openh264:encoder", |
| 162 ] | 157 ] |
| 163 } | 158 } |
| 164 } | 159 } |
| 165 | 160 |
| 166 if (is_ios) { | |
| 167 config("webrtc_h264_video_toolbox_warnings_config") { | |
| 168 if (is_clang) { | |
| 169 # TODO(tkchin): Make webrtc_h264_video_toolbox compile with the standard s
et | |
| 170 # of warnings. | |
| 171 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6307 | |
| 172 cflags = [ "-Wno-thread-safety-analysis" ] | |
| 173 } | |
| 174 } | |
| 175 | |
| 176 rtc_static_library("webrtc_h264_video_toolbox") { | |
| 177 sources = [ | |
| 178 "codecs/h264/h264_video_toolbox_decoder.cc", | |
| 179 "codecs/h264/h264_video_toolbox_decoder.h", | |
| 180 "codecs/h264/h264_video_toolbox_encoder.h", | |
| 181 "codecs/h264/h264_video_toolbox_encoder.mm", | |
| 182 "codecs/h264/h264_video_toolbox_nalu.cc", | |
| 183 "codecs/h264/h264_video_toolbox_nalu.h", | |
| 184 ] | |
| 185 | |
| 186 configs += [ | |
| 187 ":webrtc_h264_video_toolbox_warnings_config", | |
| 188 "../..:common_objc", | |
| 189 "//build/config/compiler:enable_arc", | |
| 190 ] | |
| 191 | |
| 192 deps = [ | |
| 193 "../../sdk:rtc_sdk_common_objc", | |
| 194 ] | |
| 195 | |
| 196 libs = [ | |
| 197 "CoreFoundation.framework", | |
| 198 "CoreMedia.framework", | |
| 199 "CoreVideo.framework", | |
| 200 "VideoToolbox.framework", | |
| 201 ] | |
| 202 | |
| 203 if (!build_with_chromium && is_clang) { | |
| 204 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 205 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
| 206 } | |
| 207 | |
| 208 if (rtc_build_libyuv) { | |
| 209 deps += [ "$rtc_libyuv_dir" ] | |
| 210 public_deps = [ | |
| 211 "$rtc_libyuv_dir", | |
| 212 ] | |
| 213 } else { | |
| 214 # Need to add a directory normally exported by libyuv. | |
| 215 include_dirs = [ "$rtc_libyuv_dir/include" ] | |
| 216 } | |
| 217 } | |
| 218 } | |
| 219 | |
| 220 rtc_static_library("webrtc_i420") { | 161 rtc_static_library("webrtc_i420") { |
| 221 sources = [ | 162 sources = [ |
| 222 "codecs/i420/i420.cc", | 163 "codecs/i420/i420.cc", |
| 223 "codecs/i420/include/i420.h", | 164 "codecs/i420/include/i420.h", |
| 224 ] | 165 ] |
| 225 | 166 |
| 226 if (!build_with_chromium && is_clang) { | 167 if (!build_with_chromium && is_clang) { |
| 227 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 168 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 228 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 169 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 229 } | 170 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 if (!build_with_chromium && is_clang) { | 261 if (!build_with_chromium && is_clang) { |
| 321 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 262 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 322 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 263 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 323 } | 264 } |
| 324 | 265 |
| 325 deps = [ | 266 deps = [ |
| 326 "../../test:test_support", | 267 "../../test:test_support", |
| 327 ] | 268 ] |
| 328 } | 269 } |
| 329 } | 270 } |
| OLD | NEW |