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

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

Issue 2555333004: Refactor webrtc/modules/video_{capture,coding} for GN check (Closed)
Patch Set: Fixed error in comment. Created 4 years 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') | no next file » | 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 88
89 deps = [ 89 deps = [
90 ":video_coding_utility", 90 ":video_coding_utility",
91 ":webrtc_h264", 91 ":webrtc_h264",
92 ":webrtc_i420", 92 ":webrtc_i420",
93 ":webrtc_vp8", 93 ":webrtc_vp8",
94 ":webrtc_vp9", 94 ":webrtc_vp9",
95 "../..:webrtc_common", 95 "../..:webrtc_common",
96 "../../base:rtc_analytics", 96 "../../base:rtc_analytics",
97 "../../base:rtc_base",
98 "../../base:rtc_base_approved",
99 "../../base:rtc_task_queue",
97 "../../common_video", 100 "../../common_video",
98 "../../system_wrappers", 101 "../../system_wrappers",
102 "../rtp_rtcp:rtp_rtcp",
103 "../utility:utility",
99 ] 104 ]
100 } 105 }
101 106
102 rtc_static_library("video_coding_utility") { 107 rtc_static_library("video_coding_utility") {
108 # TODO(ehmaldonado): Remove (bugs.webrtc.org/6828)
109 # Errors on cyclic dependency with :video_coding if enabled.
110 check_includes = false
111
103 sources = [ 112 sources = [
104 "utility/default_video_bitrate_allocator.cc", 113 "utility/default_video_bitrate_allocator.cc",
105 "utility/default_video_bitrate_allocator.h", 114 "utility/default_video_bitrate_allocator.h",
106 "utility/frame_dropper.cc", 115 "utility/frame_dropper.cc",
107 "utility/frame_dropper.h", 116 "utility/frame_dropper.h",
108 "utility/ivf_file_writer.cc", 117 "utility/ivf_file_writer.cc",
109 "utility/ivf_file_writer.h", 118 "utility/ivf_file_writer.h",
110 "utility/moving_average.cc", 119 "utility/moving_average.cc",
111 "utility/moving_average.h", 120 "utility/moving_average.h",
112 "utility/qp_parser.cc", 121 "utility/qp_parser.cc",
113 "utility/qp_parser.h", 122 "utility/qp_parser.h",
114 "utility/quality_scaler.cc", 123 "utility/quality_scaler.cc",
115 "utility/quality_scaler.h", 124 "utility/quality_scaler.h",
116 "utility/simulcast_rate_allocator.cc", 125 "utility/simulcast_rate_allocator.cc",
117 "utility/simulcast_rate_allocator.h", 126 "utility/simulcast_rate_allocator.h",
118 "utility/vp8_header_parser.cc", 127 "utility/vp8_header_parser.cc",
119 "utility/vp8_header_parser.h", 128 "utility/vp8_header_parser.h",
120 ] 129 ]
121 130
122 if (!build_with_chromium && is_clang) { 131 if (!build_with_chromium && is_clang) {
123 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 132 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
124 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 133 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
125 } 134 }
126 135
127 deps = [ 136 deps = [
137 "../..:webrtc_common",
128 "../../base:rtc_analytics", 138 "../../base:rtc_analytics",
139 "../../base:rtc_base_approved",
129 "../../common_video", 140 "../../common_video",
130 "../../system_wrappers", 141 "../../system_wrappers",
131 ] 142 ]
132 } 143 }
133 144
134 rtc_static_library("webrtc_h264") { 145 rtc_static_library("webrtc_h264") {
146 # TODO(ehmaldonado): Remove (bugs.webrtc.org/6828)
147 # Errors on cyclic dependency if enabled:
148 # //webrtc/call:call ->
149 # //webrtc/video:video ->
150 # //webrtc/modules/video_coding:video_coding ->
151 # //webrtc/modules/video_coding:webrtc_h264 ->
152 # //webrtc/media:rtc_media ->
153 # //webrtc/call:call
154 check_includes = false
155
135 sources = [ 156 sources = [
136 "codecs/h264/h264.cc", 157 "codecs/h264/h264.cc",
137 "codecs/h264/include/h264.h", 158 "codecs/h264/include/h264.h",
138 ] 159 ]
139 160
140 if (!build_with_chromium && is_clang) { 161 if (!build_with_chromium && is_clang) {
141 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 162 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
142 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 163 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
143 } 164 }
144 165
145 defines = [] 166 defines = []
146 deps = [ 167 deps = [
168 ":video_coding_utility",
169 "../../base:rtc_base_approved",
147 "../../system_wrappers", 170 "../../system_wrappers",
148 ] 171 ]
149 172
150 if (rtc_use_h264) { 173 if (rtc_use_h264) {
151 defines += [ "WEBRTC_USE_H264" ] 174 defines += [ "WEBRTC_USE_H264" ]
152 if (rtc_initialize_ffmpeg) { 175 if (rtc_initialize_ffmpeg) {
153 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ] 176 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ]
154 } 177 }
155 sources += [ 178 sources += [
156 "codecs/h264/h264_decoder_impl.cc", 179 "codecs/h264/h264_decoder_impl.cc",
(...skipping 15 matching lines...) Expand all
172 "codecs/i420/i420.cc", 195 "codecs/i420/i420.cc",
173 "codecs/i420/include/i420.h", 196 "codecs/i420/include/i420.h",
174 ] 197 ]
175 198
176 if (!build_with_chromium && is_clang) { 199 if (!build_with_chromium && is_clang) {
177 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 200 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
178 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 201 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
179 } 202 }
180 203
181 deps = [ 204 deps = [
205 "../..:webrtc_common",
206 "../../base:rtc_base_approved",
207 "../../common_video:common_video",
182 "../../system_wrappers", 208 "../../system_wrappers",
183 ] 209 ]
184 } 210 }
185 211
186 rtc_static_library("webrtc_vp8") { 212 rtc_static_library("webrtc_vp8") {
187 sources = [ 213 sources = [
188 "codecs/vp8/default_temporal_layers.cc", 214 "codecs/vp8/default_temporal_layers.cc",
189 "codecs/vp8/default_temporal_layers.h", 215 "codecs/vp8/default_temporal_layers.h",
190 "codecs/vp8/include/vp8.h", 216 "codecs/vp8/include/vp8.h",
191 "codecs/vp8/include/vp8_common_types.h", 217 "codecs/vp8/include/vp8_common_types.h",
(...skipping 13 matching lines...) Expand all
205 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 231 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
206 232
207 if (!build_with_chromium && is_clang) { 233 if (!build_with_chromium && is_clang) {
208 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 234 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
209 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
210 } 236 }
211 237
212 deps = [ 238 deps = [
213 ":video_coding_utility", 239 ":video_coding_utility",
214 "../..:webrtc_common", 240 "../..:webrtc_common",
241 "../../base:rtc_base_approved",
215 "../../common_video", 242 "../../common_video",
216 "../../system_wrappers", 243 "../../system_wrappers",
217 ] 244 ]
218 if (rtc_build_libvpx) { 245 if (rtc_build_libvpx) {
219 deps += [ rtc_libvpx_dir ] 246 deps += [ rtc_libvpx_dir ]
220 } 247 }
221 } 248 }
222 249
223 rtc_static_library("webrtc_vp9") { 250 rtc_static_library("webrtc_vp9") {
224 if (rtc_libvpx_build_vp9) { 251 if (rtc_libvpx_build_vp9) {
(...skipping 12 matching lines...) Expand all
237 ] 264 ]
238 } 265 }
239 266
240 if (!build_with_chromium && is_clang) { 267 if (!build_with_chromium && is_clang) {
241 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 268 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
242 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 269 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
243 } 270 }
244 271
245 deps = [ 272 deps = [
246 ":video_coding_utility", 273 ":video_coding_utility",
274 "../../base:rtc_base_approved",
247 "../../common_video", 275 "../../common_video",
248 "../../system_wrappers", 276 "../../system_wrappers",
249 ] 277 ]
250 if (rtc_build_libvpx) { 278 if (rtc_build_libvpx) {
251 deps += [ rtc_libvpx_dir ] 279 deps += [ rtc_libvpx_dir ]
252 } 280 }
253 } 281 }
254 282
255 if (rtc_include_tests) { 283 if (rtc_include_tests) {
256 rtc_source_set("video_codecs_test_framework") { 284 rtc_source_set("video_codecs_test_framework") {
257 testonly = true 285 testonly = true
258 sources = [ 286 sources = [
259 "codecs/test/mock/mock_packet_manipulator.h", 287 "codecs/test/mock/mock_packet_manipulator.h",
260 "codecs/test/packet_manipulator.cc", 288 "codecs/test/packet_manipulator.cc",
261 "codecs/test/packet_manipulator.h", 289 "codecs/test/packet_manipulator.h",
262 "codecs/test/predictive_packet_manipulator.cc", 290 "codecs/test/predictive_packet_manipulator.cc",
263 "codecs/test/predictive_packet_manipulator.h", 291 "codecs/test/predictive_packet_manipulator.h",
264 "codecs/test/stats.cc", 292 "codecs/test/stats.cc",
265 "codecs/test/stats.h", 293 "codecs/test/stats.h",
266 "codecs/test/videoprocessor.cc", 294 "codecs/test/videoprocessor.cc",
267 "codecs/test/videoprocessor.h", 295 "codecs/test/videoprocessor.h",
268 ] 296 ]
269 297
270 if (!build_with_chromium && is_clang) { 298 if (!build_with_chromium && is_clang) {
271 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 299 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
272 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 300 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
273 } 301 }
274 302
275 deps = [ 303 deps = [
304 ":video_coding",
305 ":video_coding_utility",
306 "../..:webrtc_common",
307 "../../base:rtc_base_approved",
308 "../../common_video:common_video",
309 "../../system_wrappers:system_wrappers",
276 "../../test:test_support", 310 "../../test:test_support",
277 ] 311 ]
278 } 312 }
279 } 313 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_capture/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698