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

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

Issue 2300413002: GN Templates: Move common_config to the template. (Closed)
Patch Set: This might be it. 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 "timestamp_map.cc", 67 "timestamp_map.cc",
68 "timestamp_map.h", 68 "timestamp_map.h",
69 "timing.cc", 69 "timing.cc",
70 "timing.h", 70 "timing.h",
71 "video_coding_impl.cc", 71 "video_coding_impl.cc",
72 "video_coding_impl.h", 72 "video_coding_impl.h",
73 "video_receiver.cc", 73 "video_receiver.cc",
74 "video_sender.cc", 74 "video_sender.cc",
75 ] 75 ]
76 76
77 configs += [ "../..:common_config" ]
78 public_configs = [ "../..:common_inherited_config" ] 77 public_configs = [ "../..:common_inherited_config" ]
79 78
80 # TODO(jschuh): Bug 1348: fix this warning. 79 # TODO(jschuh): Bug 1348: fix this warning.
81 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 80 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
82 81
83 if (is_clang) { 82 if (is_clang) {
84 # Suppress warnings from Chrome's Clang plugins. 83 # Suppress warnings from Chrome's Clang plugins.
85 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 84 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
86 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 85 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
87 } 86 }
(...skipping 20 matching lines...) Expand all
108 "utility/ivf_file_writer.h", 107 "utility/ivf_file_writer.h",
109 "utility/moving_average.h", 108 "utility/moving_average.h",
110 "utility/qp_parser.cc", 109 "utility/qp_parser.cc",
111 "utility/qp_parser.h", 110 "utility/qp_parser.h",
112 "utility/quality_scaler.cc", 111 "utility/quality_scaler.cc",
113 "utility/quality_scaler.h", 112 "utility/quality_scaler.h",
114 "utility/vp8_header_parser.cc", 113 "utility/vp8_header_parser.cc",
115 "utility/vp8_header_parser.h", 114 "utility/vp8_header_parser.h",
116 ] 115 ]
117 116
118 configs += [ "../..:common_config" ]
119 public_configs = [ "../..:common_inherited_config" ] 117 public_configs = [ "../..:common_inherited_config" ]
120 118
121 if (is_clang) { 119 if (is_clang) {
122 # Suppress warnings from Chrome's Clang plugins. 120 # Suppress warnings from Chrome's Clang plugins.
123 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 121 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
124 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 122 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
125 } 123 }
126 124
127 deps = [ 125 deps = [
128 "../../common_video", 126 "../../common_video",
129 "../../system_wrappers", 127 "../../system_wrappers",
130 ] 128 ]
131 } 129 }
132 130
133 rtc_source_set("webrtc_h264") { 131 rtc_source_set("webrtc_h264") {
134 sources = [ 132 sources = [
135 "codecs/h264/h264.cc", 133 "codecs/h264/h264.cc",
136 "codecs/h264/include/h264.h", 134 "codecs/h264/include/h264.h",
137 ] 135 ]
138 136
139 configs += [ "../..:common_config" ]
140 public_configs = [ "../..:common_inherited_config" ] 137 public_configs = [ "../..:common_inherited_config" ]
141 138
142 if (is_clang) { 139 if (is_clang) {
143 # Suppress warnings from Chrome's Clang plugins. 140 # Suppress warnings from Chrome's Clang plugins.
144 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 141 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
145 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 142 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
146 } 143 }
147 144
148 defines = [] 145 defines = []
149 deps = [ 146 deps = [
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 "codecs/h264/h264_video_toolbox_encoder.mm", 180 "codecs/h264/h264_video_toolbox_encoder.mm",
184 "codecs/h264/h264_video_toolbox_nalu.cc", 181 "codecs/h264/h264_video_toolbox_nalu.cc",
185 "codecs/h264/h264_video_toolbox_nalu.h", 182 "codecs/h264/h264_video_toolbox_nalu.h",
186 ] 183 ]
187 184
188 configs += [ 185 configs += [
189 "../..:common_objc", 186 "../..:common_objc",
190 "//build/config/compiler:enable_arc", 187 "//build/config/compiler:enable_arc",
191 ] 188 ]
192 189
190 suppressed_configs += [ rtc_common_config ]
kjellander_webrtc 2016/09/05 06:50:28 Is this needed? Since it's not a part of examples/
191
193 deps = [ 192 deps = [
194 "../../sdk:rtc_sdk_common_objc", 193 "../../sdk:rtc_sdk_common_objc",
195 ] 194 ]
196 195
197 libs = [ 196 libs = [
198 "CoreFoundation.framework", 197 "CoreFoundation.framework",
199 "CoreMedia.framework", 198 "CoreMedia.framework",
200 "CoreVideo.framework", 199 "CoreVideo.framework",
201 "VideoToolbox.framework", 200 "VideoToolbox.framework",
202 ] 201 ]
(...skipping 15 matching lines...) Expand all
218 } 217 }
219 } 218 }
220 } 219 }
221 220
222 rtc_source_set("webrtc_i420") { 221 rtc_source_set("webrtc_i420") {
223 sources = [ 222 sources = [
224 "codecs/i420/i420.cc", 223 "codecs/i420/i420.cc",
225 "codecs/i420/include/i420.h", 224 "codecs/i420/include/i420.h",
226 ] 225 ]
227 226
228 configs += [ "../..:common_config" ]
229 public_configs = [ "../..:common_inherited_config" ] 227 public_configs = [ "../..:common_inherited_config" ]
230 228
231 if (is_clang) { 229 if (is_clang) {
232 # Suppress warnings from Chrome's Clang plugins. 230 # Suppress warnings from Chrome's Clang plugins.
233 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 231 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
234 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 232 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
235 } 233 }
236 234
237 deps = [ 235 deps = [
238 "../../system_wrappers", 236 "../../system_wrappers",
(...skipping 11 matching lines...) Expand all
250 "codecs/vp8/reference_picture_selection.h", 248 "codecs/vp8/reference_picture_selection.h",
251 "codecs/vp8/screenshare_layers.cc", 249 "codecs/vp8/screenshare_layers.cc",
252 "codecs/vp8/screenshare_layers.h", 250 "codecs/vp8/screenshare_layers.h",
253 "codecs/vp8/simulcast_encoder_adapter.cc", 251 "codecs/vp8/simulcast_encoder_adapter.cc",
254 "codecs/vp8/simulcast_encoder_adapter.h", 252 "codecs/vp8/simulcast_encoder_adapter.h",
255 "codecs/vp8/temporal_layers.h", 253 "codecs/vp8/temporal_layers.h",
256 "codecs/vp8/vp8_impl.cc", 254 "codecs/vp8/vp8_impl.cc",
257 "codecs/vp8/vp8_impl.h", 255 "codecs/vp8/vp8_impl.h",
258 ] 256 ]
259 257
260 configs += [ "../..:common_config" ]
261 public_configs = [ "../..:common_inherited_config" ] 258 public_configs = [ "../..:common_inherited_config" ]
262 259
263 # TODO(jschuh): Bug 1348: fix this warning. 260 # TODO(jschuh): Bug 1348: fix this warning.
264 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 261 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
265 262
266 if (is_clang) { 263 if (is_clang) {
267 # Suppress warnings from Chrome's Clang plugins. 264 # Suppress warnings from Chrome's Clang plugins.
268 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 265 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
269 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 266 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
270 } 267 }
(...skipping 13 matching lines...) Expand all
284 sources = [ 281 sources = [
285 "codecs/vp9/include/vp9.h", 282 "codecs/vp9/include/vp9.h",
286 "codecs/vp9/screenshare_layers.cc", 283 "codecs/vp9/screenshare_layers.cc",
287 "codecs/vp9/screenshare_layers.h", 284 "codecs/vp9/screenshare_layers.h",
288 "codecs/vp9/vp9_frame_buffer_pool.cc", 285 "codecs/vp9/vp9_frame_buffer_pool.cc",
289 "codecs/vp9/vp9_frame_buffer_pool.h", 286 "codecs/vp9/vp9_frame_buffer_pool.h",
290 "codecs/vp9/vp9_impl.cc", 287 "codecs/vp9/vp9_impl.cc",
291 "codecs/vp9/vp9_impl.h", 288 "codecs/vp9/vp9_impl.h",
292 ] 289 ]
293 290
294 configs += [ "../..:common_config" ]
295 public_configs = [ "../..:common_inherited_config" ] 291 public_configs = [ "../..:common_inherited_config" ]
296 292
297 if (is_clang) { 293 if (is_clang) {
298 # Suppress warnings from Chrome's Clang plugins. 294 # Suppress warnings from Chrome's Clang plugins.
299 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 295 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
300 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 296 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
301 } 297 }
302 298
303 deps = [ 299 deps = [
304 ":video_coding_utility", 300 ":video_coding_utility",
(...skipping 13 matching lines...) Expand all
318 "codecs/test/packet_manipulator.cc", 314 "codecs/test/packet_manipulator.cc",
319 "codecs/test/packet_manipulator.h", 315 "codecs/test/packet_manipulator.h",
320 "codecs/test/predictive_packet_manipulator.cc", 316 "codecs/test/predictive_packet_manipulator.cc",
321 "codecs/test/predictive_packet_manipulator.h", 317 "codecs/test/predictive_packet_manipulator.h",
322 "codecs/test/stats.cc", 318 "codecs/test/stats.cc",
323 "codecs/test/stats.h", 319 "codecs/test/stats.h",
324 "codecs/test/videoprocessor.cc", 320 "codecs/test/videoprocessor.cc",
325 "codecs/test/videoprocessor.h", 321 "codecs/test/videoprocessor.h",
326 ] 322 ]
327 323
328 configs += [ "../..:common_config" ]
329 public_configs = [ "../..:common_inherited_config" ] 324 public_configs = [ "../..:common_inherited_config" ]
330 325
331 if (is_clang) { 326 if (is_clang) {
332 # Suppress warnings from Chrome's Clang plugins. 327 # Suppress warnings from Chrome's Clang plugins.
333 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 328 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
334 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 329 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
335 } 330 }
336 331
337 deps = [ 332 deps = [
338 "../../test:test_support", 333 "../../test:test_support",
339 ] 334 ]
340 } 335 }
341 } 336 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698