Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(978)

Side by Side Diff: webrtc/modules/video_coding/BUILD.gn

Issue 2483273002: Revert of Add a webrtc{en,de}coderfactory implementation for VideoToolbox (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/video_coding/codecs/h264/h264.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 if (!build_with_chromium && is_clang) { 134 if (!build_with_chromium && is_clang) {
135 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 135 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
136 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 136 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
137 } 137 }
138 138
139 defines = [] 139 defines = []
140 deps = [ 140 deps = [
141 "../../system_wrappers", 141 "../../system_wrappers",
142 ] 142 ]
143 143
144 if (is_ios) {
145 sources += [ "codecs/h264/h264_objc.mm" ]
146 deps += [ ":webrtc_h264_video_toolbox" ]
147 }
148
144 if (rtc_use_h264) { 149 if (rtc_use_h264) {
145 defines += [ "WEBRTC_USE_H264" ] 150 defines += [ "WEBRTC_USE_H264" ]
146 if (rtc_initialize_ffmpeg) { 151 if (rtc_initialize_ffmpeg) {
147 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ] 152 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ]
148 } 153 }
149 sources += [ 154 sources += [
150 "codecs/h264/h264_decoder_impl.cc", 155 "codecs/h264/h264_decoder_impl.cc",
151 "codecs/h264/h264_decoder_impl.h", 156 "codecs/h264/h264_decoder_impl.h",
152 "codecs/h264/h264_encoder_impl.cc", 157 "codecs/h264/h264_encoder_impl.cc",
153 "codecs/h264/h264_encoder_impl.h", 158 "codecs/h264/h264_encoder_impl.h",
154 ] 159 ]
155 deps += [ 160 deps += [
156 "../../common_video", 161 "../../common_video",
157 "//third_party/ffmpeg:ffmpeg", 162 "//third_party/ffmpeg:ffmpeg",
158 "//third_party/openh264:encoder", 163 "//third_party/openh264:encoder",
159 ] 164 ]
160 } 165 }
161 } 166 }
162 167
168 if (is_ios) {
169 config("webrtc_h264_video_toolbox_warnings_config") {
170 if (is_clang) {
171 # TODO(tkchin): Make webrtc_h264_video_toolbox compile with the standard s et
172 # of warnings.
173 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6307
174 cflags = [ "-Wno-thread-safety-analysis" ]
175 }
176 }
177
178 rtc_static_library("webrtc_h264_video_toolbox") {
179 sources = [
180 "codecs/h264/h264_video_toolbox_decoder.cc",
181 "codecs/h264/h264_video_toolbox_decoder.h",
182 "codecs/h264/h264_video_toolbox_encoder.h",
183 "codecs/h264/h264_video_toolbox_encoder.mm",
184 "codecs/h264/h264_video_toolbox_nalu.cc",
185 "codecs/h264/h264_video_toolbox_nalu.h",
186 ]
187
188 configs += [
189 ":webrtc_h264_video_toolbox_warnings_config",
190 "../..:common_objc",
191 "//build/config/compiler:enable_arc",
192 ]
193
194 deps = [
195 "../../sdk:rtc_sdk_common_objc",
196 ]
197
198 libs = [
199 "CoreFoundation.framework",
200 "CoreMedia.framework",
201 "CoreVideo.framework",
202 "VideoToolbox.framework",
203 ]
204
205 if (!build_with_chromium && is_clang) {
206 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
207 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
208 }
209
210 if (rtc_build_libyuv) {
211 deps += [ "$rtc_libyuv_dir" ]
212 public_deps = [
213 "$rtc_libyuv_dir",
214 ]
215 } else {
216 # Need to add a directory normally exported by libyuv.
217 include_dirs = [ "$rtc_libyuv_dir/include" ]
218 }
219 }
220 }
221
163 rtc_static_library("webrtc_i420") { 222 rtc_static_library("webrtc_i420") {
164 sources = [ 223 sources = [
165 "codecs/i420/i420.cc", 224 "codecs/i420/i420.cc",
166 "codecs/i420/include/i420.h", 225 "codecs/i420/include/i420.h",
167 ] 226 ]
168 227
169 if (!build_with_chromium && is_clang) { 228 if (!build_with_chromium && is_clang) {
170 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 229 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
171 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 230 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
172 } 231 }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 if (!build_with_chromium && is_clang) { 322 if (!build_with_chromium && is_clang) {
264 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 323 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
265 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 324 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
266 } 325 }
267 326
268 deps = [ 327 deps = [
269 "../../test:test_support", 328 "../../test:test_support",
270 ] 329 ]
271 } 330 }
272 } 331 }
OLDNEW
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/video_coding/codecs/h264/h264.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698