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

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

Issue 2361623004: GN: Change rtc_source_set targets --> rtc_static_library (Closed)
Patch Set: Restored accidental rebase errors. Created 4 years, 3 months 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/video_capture/BUILD.gn ('k') | webrtc/modules/video_processing/BUILD.gn » ('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
11 rtc_source_set("video_coding") { 11 rtc_static_library("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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ":webrtc_h264", 88 ":webrtc_h264",
89 ":webrtc_i420", 89 ":webrtc_i420",
90 ":webrtc_vp8", 90 ":webrtc_vp8",
91 ":webrtc_vp9", 91 ":webrtc_vp9",
92 "../..:webrtc_common", 92 "../..:webrtc_common",
93 "../../common_video", 93 "../../common_video",
94 "../../system_wrappers", 94 "../../system_wrappers",
95 ] 95 ]
96 } 96 }
97 97
98 rtc_source_set("video_coding_utility") { 98 rtc_static_library("video_coding_utility") {
99 sources = [ 99 sources = [
100 "utility/frame_dropper.cc", 100 "utility/frame_dropper.cc",
101 "utility/frame_dropper.h", 101 "utility/frame_dropper.h",
102 "utility/h264_bitstream_parser.cc", 102 "utility/h264_bitstream_parser.cc",
103 "utility/h264_bitstream_parser.h", 103 "utility/h264_bitstream_parser.h",
104 "utility/ivf_file_writer.cc", 104 "utility/ivf_file_writer.cc",
105 "utility/ivf_file_writer.h", 105 "utility/ivf_file_writer.h",
106 "utility/moving_average.cc", 106 "utility/moving_average.cc",
107 "utility/moving_average.h", 107 "utility/moving_average.h",
108 "utility/qp_parser.cc", 108 "utility/qp_parser.cc",
(...skipping 11 matching lines...) Expand all
120 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 120 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
121 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 121 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
122 } 122 }
123 123
124 deps = [ 124 deps = [
125 "../../common_video", 125 "../../common_video",
126 "../../system_wrappers", 126 "../../system_wrappers",
127 ] 127 ]
128 } 128 }
129 129
130 rtc_source_set("webrtc_h264") { 130 rtc_static_library("webrtc_h264") {
131 sources = [ 131 sources = [
132 "codecs/h264/h264.cc", 132 "codecs/h264/h264.cc",
133 "codecs/h264/include/h264.h", 133 "codecs/h264/include/h264.h",
134 ] 134 ]
135 135
136 if (is_clang) { 136 if (is_clang) {
137 # Suppress warnings from Chrome's Clang plugins. 137 # Suppress warnings from Chrome's Clang plugins.
138 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 138 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
139 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 139 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
140 } 140 }
(...skipping 30 matching lines...) Expand all
171 if (is_ios) { 171 if (is_ios) {
172 config("webrtc_h264_video_toolbox_warnings_config") { 172 config("webrtc_h264_video_toolbox_warnings_config") {
173 if (is_clang) { 173 if (is_clang) {
174 # TODO(tkchin): Make webrtc_h264_video_toolbox compile with the standard s et 174 # TODO(tkchin): Make webrtc_h264_video_toolbox compile with the standard s et
175 # of warnings. 175 # of warnings.
176 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6307 176 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6307
177 cflags = [ "-Wno-thread-safety-analysis" ] 177 cflags = [ "-Wno-thread-safety-analysis" ]
178 } 178 }
179 } 179 }
180 180
181 rtc_source_set("webrtc_h264_video_toolbox") { 181 rtc_static_library("webrtc_h264_video_toolbox") {
182 sources = [ 182 sources = [
183 "codecs/h264/h264_video_toolbox_decoder.cc", 183 "codecs/h264/h264_video_toolbox_decoder.cc",
184 "codecs/h264/h264_video_toolbox_decoder.h", 184 "codecs/h264/h264_video_toolbox_decoder.h",
185 "codecs/h264/h264_video_toolbox_encoder.h", 185 "codecs/h264/h264_video_toolbox_encoder.h",
186 "codecs/h264/h264_video_toolbox_encoder.mm", 186 "codecs/h264/h264_video_toolbox_encoder.mm",
187 "codecs/h264/h264_video_toolbox_nalu.cc", 187 "codecs/h264/h264_video_toolbox_nalu.cc",
188 "codecs/h264/h264_video_toolbox_nalu.h", 188 "codecs/h264/h264_video_toolbox_nalu.h",
189 ] 189 ]
190 190
191 configs += [ 191 configs += [
(...skipping 24 matching lines...) Expand all
216 public_deps = [ 216 public_deps = [
217 "$rtc_libyuv_dir", 217 "$rtc_libyuv_dir",
218 ] 218 ]
219 } else { 219 } else {
220 # Need to add a directory normally exported by libyuv. 220 # Need to add a directory normally exported by libyuv.
221 include_dirs += [ "$rtc_libyuv_dir/include" ] 221 include_dirs += [ "$rtc_libyuv_dir/include" ]
222 } 222 }
223 } 223 }
224 } 224 }
225 225
226 rtc_source_set("webrtc_i420") { 226 rtc_static_library("webrtc_i420") {
227 sources = [ 227 sources = [
228 "codecs/i420/i420.cc", 228 "codecs/i420/i420.cc",
229 "codecs/i420/include/i420.h", 229 "codecs/i420/include/i420.h",
230 ] 230 ]
231 231
232 if (is_clang) { 232 if (is_clang) {
233 # Suppress warnings from Chrome's Clang plugins. 233 # Suppress warnings from Chrome's Clang plugins.
234 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 234 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
236 } 236 }
237 237
238 deps = [ 238 deps = [
239 "../../system_wrappers", 239 "../../system_wrappers",
240 ] 240 ]
241 } 241 }
242 242
243 rtc_source_set("webrtc_vp8") { 243 rtc_static_library("webrtc_vp8") {
244 sources = [ 244 sources = [
245 "codecs/vp8/default_temporal_layers.cc", 245 "codecs/vp8/default_temporal_layers.cc",
246 "codecs/vp8/default_temporal_layers.h", 246 "codecs/vp8/default_temporal_layers.h",
247 "codecs/vp8/include/vp8.h", 247 "codecs/vp8/include/vp8.h",
248 "codecs/vp8/include/vp8_common_types.h", 248 "codecs/vp8/include/vp8_common_types.h",
249 "codecs/vp8/realtime_temporal_layers.cc", 249 "codecs/vp8/realtime_temporal_layers.cc",
250 "codecs/vp8/reference_picture_selection.cc", 250 "codecs/vp8/reference_picture_selection.cc",
251 "codecs/vp8/reference_picture_selection.h", 251 "codecs/vp8/reference_picture_selection.h",
252 "codecs/vp8/screenshare_layers.cc", 252 "codecs/vp8/screenshare_layers.cc",
253 "codecs/vp8/screenshare_layers.h", 253 "codecs/vp8/screenshare_layers.h",
(...skipping 17 matching lines...) Expand all
271 ":video_coding_utility", 271 ":video_coding_utility",
272 "../..:webrtc_common", 272 "../..:webrtc_common",
273 "../../common_video", 273 "../../common_video",
274 "../../system_wrappers", 274 "../../system_wrappers",
275 ] 275 ]
276 if (rtc_build_libvpx) { 276 if (rtc_build_libvpx) {
277 deps += [ rtc_libvpx_dir ] 277 deps += [ rtc_libvpx_dir ]
278 } 278 }
279 } 279 }
280 280
281 rtc_source_set("webrtc_vp9") { 281 rtc_static_library("webrtc_vp9") {
282 sources = [ 282 sources = [
283 "codecs/vp9/include/vp9.h", 283 "codecs/vp9/include/vp9.h",
284 "codecs/vp9/screenshare_layers.cc", 284 "codecs/vp9/screenshare_layers.cc",
285 "codecs/vp9/screenshare_layers.h", 285 "codecs/vp9/screenshare_layers.h",
286 "codecs/vp9/vp9_frame_buffer_pool.cc", 286 "codecs/vp9/vp9_frame_buffer_pool.cc",
287 "codecs/vp9/vp9_frame_buffer_pool.h", 287 "codecs/vp9/vp9_frame_buffer_pool.h",
288 "codecs/vp9/vp9_impl.cc", 288 "codecs/vp9/vp9_impl.cc",
289 "codecs/vp9/vp9_impl.h", 289 "codecs/vp9/vp9_impl.h",
290 ] 290 ]
291 291
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 # Suppress warnings from Chrome's Clang plugins. 324 # Suppress warnings from Chrome's Clang plugins.
325 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 325 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
326 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 326 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
327 } 327 }
328 328
329 deps = [ 329 deps = [
330 "../../test:test_support", 330 "../../test:test_support",
331 ] 331 ]
332 } 332 }
333 } 333 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_capture/BUILD.gn ('k') | webrtc/modules/video_processing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698