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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 # Suppress warnings from Chrome's Clang plugins. | 144 # Suppress warnings from Chrome's Clang plugins. |
145 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 145 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
146 configs -= [ "//build/config/clang:find_bad_constructs" ] | 146 configs -= [ "//build/config/clang:find_bad_constructs" ] |
147 } | 147 } |
148 | 148 |
149 defines = [] | 149 defines = [] |
150 deps = [ | 150 deps = [ |
151 "../../system_wrappers", | 151 "../../system_wrappers", |
152 ] | 152 ] |
153 | 153 |
| 154 if (is_ios) { |
| 155 sources += [ "codecs/h264/h264_objc.mm" ] |
| 156 deps += [ ":webrtc_h264_video_toolbox" ] |
| 157 } |
| 158 |
154 if (rtc_use_h264) { | 159 if (rtc_use_h264) { |
155 defines += [ "WEBRTC_USE_H264" ] | 160 defines += [ "WEBRTC_USE_H264" ] |
156 if (rtc_initialize_ffmpeg) { | 161 if (rtc_initialize_ffmpeg) { |
157 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ] | 162 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ] |
158 } | 163 } |
159 sources += [ | 164 sources += [ |
160 "codecs/h264/h264_decoder_impl.cc", | 165 "codecs/h264/h264_decoder_impl.cc", |
161 "codecs/h264/h264_decoder_impl.h", | 166 "codecs/h264/h264_decoder_impl.h", |
162 "codecs/h264/h264_encoder_impl.cc", | 167 "codecs/h264/h264_encoder_impl.cc", |
163 "codecs/h264/h264_encoder_impl.h", | 168 "codecs/h264/h264_encoder_impl.h", |
164 ] | 169 ] |
165 deps += [ | 170 deps += [ |
166 "../../common_video", | 171 "../../common_video", |
167 "//third_party/ffmpeg:ffmpeg", | 172 "//third_party/ffmpeg:ffmpeg", |
168 "//third_party/openh264:encoder", | 173 "//third_party/openh264:encoder", |
169 ] | 174 ] |
170 } | 175 } |
171 } | 176 } |
172 | 177 |
173 # TODO(tkchin): Source set for webrtc_h264_video_toolbox. Currently not | 178 if (is_ios) { |
174 # possible to add, see https://crbug.com/297668. | 179 source_set("webrtc_h264_video_toolbox") { |
| 180 sources = [ |
| 181 "codecs/h264/h264_video_toolbox_decoder.cc", |
| 182 "codecs/h264/h264_video_toolbox_decoder.h", |
| 183 "codecs/h264/h264_video_toolbox_encoder.cc", |
| 184 "codecs/h264/h264_video_toolbox_encoder.h", |
| 185 "codecs/h264/h264_video_toolbox_nalu.cc", |
| 186 "codecs/h264/h264_video_toolbox_nalu.h", |
| 187 ] |
| 188 |
| 189 configs += [ "//build/config/compiler:enable_arc" ] |
| 190 |
| 191 cflags = [ "-Wobjc-missing-property-synthesis" ] |
| 192 |
| 193 precompiled_header = "../../sdk/objc/WebRTC-Prefix.pch" |
| 194 precompiled_source = "../../sdk/objc/WebRTC-Prefix.pch" |
| 195 |
| 196 deps = [ |
| 197 "../../sdk:rtc_sdk_common_objc", |
| 198 ] |
| 199 |
| 200 libs = [ |
| 201 "CoreFoundation.framework", |
| 202 "CoreMedia.framework", |
| 203 "CoreVideo.framework", |
| 204 "VideoToolbox.framework", |
| 205 ] |
| 206 |
| 207 if (is_clang) { |
| 208 # Suppress warnings from Chrome's Clang plugins. |
| 209 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 210 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 211 } |
| 212 |
| 213 if (rtc_build_libyuv) { |
| 214 deps += [ "$rtc_libyuv_dir" ] |
| 215 public_deps = [ |
| 216 "$rtc_libyuv_dir", |
| 217 ] |
| 218 } else { |
| 219 # Need to add a directory normally exported by libyuv. |
| 220 include_dirs += [ "$rtc_libyuv_dir/include" ] |
| 221 } |
| 222 } |
| 223 } |
175 | 224 |
176 source_set("webrtc_i420") { | 225 source_set("webrtc_i420") { |
177 sources = [ | 226 sources = [ |
178 "codecs/i420/i420.cc", | 227 "codecs/i420/i420.cc", |
179 "codecs/i420/include/i420.h", | 228 "codecs/i420/include/i420.h", |
180 ] | 229 ] |
181 | 230 |
182 configs += [ "../..:common_config" ] | 231 configs += [ "../..:common_config" ] |
183 public_configs = [ "../..:common_inherited_config" ] | 232 public_configs = [ "../..:common_inherited_config" ] |
184 | 233 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 309 |
261 deps = [ | 310 deps = [ |
262 ":video_coding_utility", | 311 ":video_coding_utility", |
263 "../../common_video", | 312 "../../common_video", |
264 "../../system_wrappers", | 313 "../../system_wrappers", |
265 ] | 314 ] |
266 if (rtc_build_libvpx) { | 315 if (rtc_build_libvpx) { |
267 deps += [ rtc_libvpx_dir ] | 316 deps += [ rtc_libvpx_dir ] |
268 } | 317 } |
269 } | 318 } |
OLD | NEW |