blob: e05ab855e8c4699a145b9470d687302a0c59a042 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
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
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("../../build/webrtc.gni")
10
11source_set("video_coding") {
12 sources = [
13 "main/interface/video_coding.h",
14 "main/interface/video_coding_defines.h",
15 "main/source/codec_database.cc",
16 "main/source/codec_database.h",
17 "main/source/codec_timer.cc",
18 "main/source/codec_timer.h",
19 "main/source/content_metrics_processing.cc",
20 "main/source/content_metrics_processing.h",
21 "main/source/decoding_state.cc",
22 "main/source/decoding_state.h",
23 "main/source/encoded_frame.cc",
24 "main/source/encoded_frame.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000025 "main/source/fec_tables_xor.h",
26 "main/source/frame_buffer.cc",
27 "main/source/frame_buffer.h",
28 "main/source/generic_decoder.cc",
29 "main/source/generic_decoder.h",
30 "main/source/generic_encoder.cc",
31 "main/source/generic_encoder.h",
32 "main/source/inter_frame_delay.cc",
33 "main/source/inter_frame_delay.h",
34 "main/source/internal_defines.h",
35 "main/source/jitter_buffer.cc",
36 "main/source/jitter_buffer.h",
37 "main/source/jitter_buffer_common.h",
38 "main/source/jitter_estimator.cc",
39 "main/source/jitter_estimator.h",
40 "main/source/media_opt_util.cc",
41 "main/source/media_opt_util.h",
42 "main/source/media_optimization.cc",
43 "main/source/media_optimization.h",
44 "main/source/nack_fec_tables.h",
45 "main/source/packet.cc",
46 "main/source/packet.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000047 "main/source/qm_select.cc",
48 "main/source/qm_select.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020049 "main/source/qm_select_data.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000050 "main/source/receiver.cc",
51 "main/source/receiver.h",
52 "main/source/rtt_filter.cc",
53 "main/source/rtt_filter.h",
54 "main/source/session_info.cc",
55 "main/source/session_info.h",
56 "main/source/timestamp_map.cc",
57 "main/source/timestamp_map.h",
58 "main/source/timing.cc",
59 "main/source/timing.h",
60 "main/source/video_coding_impl.cc",
61 "main/source/video_coding_impl.h",
62 "main/source/video_receiver.cc",
63 "main/source/video_sender.cc",
64 ]
65
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000066 configs += [ "../..:common_config" ]
67 public_configs = [ "../..:common_inherited_config" ]
68
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +000069 if (is_win) {
70 cflags = [
71 # TODO(jschuh): Bug 1348: fix this warning.
72 "/wd4267", # size_t to int truncation.
73 ]
74 }
75
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000076 if (is_clang) {
77 # Suppress warnings from Chrome's Clang plugins.
78 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
79 configs -= [ "//build/config/clang:find_bad_constructs" ]
80 }
81
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000082 deps = [
83 ":video_coding_utility",
Zeke Chin71f6f442015-06-29 14:34:58 -070084 ":webrtc_h264",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000085 ":webrtc_i420",
86 ":webrtc_vp8",
marpan@webrtc.org5b883172014-11-01 06:10:48 +000087 ":webrtc_vp9",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000088 "../..:webrtc_common",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000089 "../../common_video",
90 "../../system_wrappers",
91 ]
92}
93
94source_set("video_coding_utility") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000095 sources = [
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000096 "utility/frame_dropper.cc",
sprang@webrtc.org46d4d292014-12-23 15:19:35 +000097 "utility/include/frame_dropper.h",
jackychen61b4d512015-04-21 15:30:11 -070098 "utility/include/moving_average.h",
99 "utility/include/quality_scaler.h",
jackychen98d8cf52015-05-21 11:12:02 -0700100 "utility/include/vp8_header_parser.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000101 "utility/quality_scaler.cc",
jackychen98d8cf52015-05-21 11:12:02 -0700102 "utility/vp8_header_parser.cc",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000103 ]
104
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000105 configs += [ "../..:common_config" ]
106 public_configs = [ "../..:common_inherited_config" ]
107
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000108 if (is_clang) {
109 # Suppress warnings from Chrome's Clang plugins.
110 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
111 configs -= [ "//build/config/clang:find_bad_constructs" ]
112 }
113
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200114 deps = [
115 "../../system_wrappers",
116 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000117}
118
Zeke Chin71f6f442015-06-29 14:34:58 -0700119source_set("webrtc_h264") {
120 sources = [
121 "codecs/h264/h264.cc",
122 "codecs/h264/include/h264.h",
123 ]
124
125 configs += [ "../..:common_config" ]
126 public_configs = [ "../..:common_inherited_config" ]
127
128 if (is_clang) {
129 # Suppress warnings from Chrome's Clang plugins.
130 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
131 configs -= [ "//build/config/clang:find_bad_constructs" ]
132 }
133
134 deps = [
135 "../../system_wrappers",
136 ]
137}
138
139# TODO(tkchin): Source set for webrtc_h264_video_toolbox. Currently not
140# possible to add, see https://crbug.com/297668.
141
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000142source_set("webrtc_i420") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000143 sources = [
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000144 "codecs/i420/main/interface/i420.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200145 "codecs/i420/main/source/i420.cc",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000146 ]
147
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000148 configs += [ "../..:common_config" ]
149 public_configs = [ "../..:common_inherited_config" ]
150
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000151 if (is_clang) {
152 # Suppress warnings from Chrome's Clang plugins.
153 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
154 configs -= [ "//build/config/clang:find_bad_constructs" ]
155 }
156
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200157 deps = [
158 "../../system_wrappers",
159 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000160}
161
162source_set("webrtc_vp8") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000163 sources = [
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000164 "codecs/vp8/default_temporal_layers.cc",
165 "codecs/vp8/default_temporal_layers.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000166 "codecs/vp8/include/vp8.h",
167 "codecs/vp8/include/vp8_common_types.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000168 "codecs/vp8/realtime_temporal_layers.cc",
169 "codecs/vp8/reference_picture_selection.cc",
170 "codecs/vp8/reference_picture_selection.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000171 "codecs/vp8/screenshare_layers.cc",
172 "codecs/vp8/screenshare_layers.h",
173 "codecs/vp8/simulcast_encoder_adapter.cc",
174 "codecs/vp8/simulcast_encoder_adapter.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000175 "codecs/vp8/temporal_layers.h",
176 "codecs/vp8/vp8_factory.cc",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000177 "codecs/vp8/vp8_factory.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000178 "codecs/vp8/vp8_impl.cc",
179 "codecs/vp8/vp8_impl.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000180 ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000181
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000182 configs += [ "../..:common_config" ]
183 public_configs = [ "../..:common_inherited_config" ]
184
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000185 if (is_clang) {
186 # Suppress warnings from Chrome's Clang plugins.
187 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
188 configs -= [ "//build/config/clang:find_bad_constructs" ]
189 }
190
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000191 if (is_win) {
192 cflags = [
193 # TODO(jschuh): Bug 1348: fix this warning.
194 "/wd4267", # size_t to int truncation.
195 ]
196 }
197
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000198 deps = [
199 ":video_coding_utility",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000200 "../..:webrtc_common",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000201 "../../common_video",
202 "../../system_wrappers",
203 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000204 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200205 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000206 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000207}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000208
209source_set("webrtc_vp9") {
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000210 if (rtc_build_vp9) {
211 sources = [
212 "codecs/vp9/include/vp9.h",
Henrik Boström9695d852015-05-06 10:42:15 +0200213 "codecs/vp9/vp9_frame_buffer_pool.cc",
214 "codecs/vp9/vp9_frame_buffer_pool.h",
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000215 "codecs/vp9/vp9_impl.cc",
216 "codecs/vp9/vp9_impl.h",
217 ]
218 } else {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200219 sources = [
220 "codecs/vp9/vp9_dummy_impl.cc",
221 ]
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000222 }
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000223
224 configs += [ "../..:common_config" ]
225 public_configs = [ "../..:common_inherited_config" ]
226
227 if (is_clang) {
228 # Suppress warnings from Chrome's Clang plugins.
229 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
230 configs -= [ "//build/config/clang:find_bad_constructs" ]
231 }
232
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000233 deps = [
234 ":video_coding_utility",
235 "../../common_video",
236 "../../system_wrappers",
237 ]
238 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200239 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000240 }
241}