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

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

Issue 2487723004: Reland of Add a webrtc{en,de}coderfactory implementation for VideoToolbox (Closed)
Patch Set: fix gyp build 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
149 if (rtc_use_h264) { 144 if (rtc_use_h264) {
150 defines += [ "WEBRTC_USE_H264" ] 145 defines += [ "WEBRTC_USE_H264" ]
151 if (rtc_initialize_ffmpeg) { 146 if (rtc_initialize_ffmpeg) {
152 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ] 147 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ]
153 } 148 }
154 sources += [ 149 sources += [
155 "codecs/h264/h264_decoder_impl.cc", 150 "codecs/h264/h264_decoder_impl.cc",
156 "codecs/h264/h264_decoder_impl.h", 151 "codecs/h264/h264_decoder_impl.h",
157 "codecs/h264/h264_encoder_impl.cc", 152 "codecs/h264/h264_encoder_impl.cc",
158 "codecs/h264/h264_encoder_impl.h", 153 "codecs/h264/h264_encoder_impl.h",
159 ] 154 ]
160 deps += [ 155 deps += [
161 "../../common_video", 156 "../../common_video",
162 "//third_party/ffmpeg:ffmpeg", 157 "//third_party/ffmpeg:ffmpeg",
163 "//third_party/openh264:encoder", 158 "//third_party/openh264:encoder",
164 ] 159 ]
165 } 160 }
166 } 161 }
167 162
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
222 rtc_static_library("webrtc_i420") { 163 rtc_static_library("webrtc_i420") {
223 sources = [ 164 sources = [
224 "codecs/i420/i420.cc", 165 "codecs/i420/i420.cc",
225 "codecs/i420/include/i420.h", 166 "codecs/i420/include/i420.h",
226 ] 167 ]
227 168
228 if (!build_with_chromium && is_clang) { 169 if (!build_with_chromium && is_clang) {
229 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 170 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
230 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 171 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
231 } 172 }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 if (!build_with_chromium && is_clang) { 263 if (!build_with_chromium && is_clang) {
323 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 264 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
324 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 265 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
325 } 266 }
326 267
327 deps = [ 268 deps = [
328 "../../test:test_support", 269 "../../test:test_support",
329 ] 270 ]
330 } 271 }
331 } 272 }
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