blob: bf04adfe7e63624e614ec5a4bff77e77fe9f23ee [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",
47 "main/source/qm_select_data.h",
48 "main/source/qm_select.cc",
49 "main/source/qm_select.h",
50 "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",
84 ":webrtc_i420",
85 ":webrtc_vp8",
marpan@webrtc.org5b883172014-11-01 06:10:48 +000086 ":webrtc_vp9",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000087 "../..:webrtc_common",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000088 "../../common_video",
89 "../../system_wrappers",
90 ]
91}
92
93source_set("video_coding_utility") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000094 sources = [
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000095 "utility/frame_dropper.cc",
sprang@webrtc.org46d4d292014-12-23 15:19:35 +000096 "utility/include/frame_dropper.h",
jackychen61b4d512015-04-21 15:30:11 -070097 "utility/include/moving_average.h",
98 "utility/include/quality_scaler.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000099 "utility/quality_scaler.cc",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000100 ]
101
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000102 configs += [ "../..:common_config" ]
103 public_configs = [ "../..:common_inherited_config" ]
104
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000105 if (is_clang) {
106 # Suppress warnings from Chrome's Clang plugins.
107 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
108 configs -= [ "//build/config/clang:find_bad_constructs" ]
109 }
110
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000111 deps = [ "../../system_wrappers" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000112}
113
114source_set("webrtc_i420") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000115 sources = [
116 "codecs/i420/main/source/i420.cc",
117 "codecs/i420/main/interface/i420.h",
118 ]
119
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000120 configs += [ "../..:common_config" ]
121 public_configs = [ "../..:common_inherited_config" ]
122
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000123 if (is_clang) {
124 # Suppress warnings from Chrome's Clang plugins.
125 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
126 configs -= [ "//build/config/clang:find_bad_constructs" ]
127 }
128
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000129 deps = [ "../../system_wrappers" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000130}
131
132source_set("webrtc_vp8") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000133 sources = [
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000134 "codecs/vp8/default_temporal_layers.cc",
135 "codecs/vp8/default_temporal_layers.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000136 "codecs/vp8/include/vp8.h",
137 "codecs/vp8/include/vp8_common_types.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000138 "codecs/vp8/realtime_temporal_layers.cc",
139 "codecs/vp8/reference_picture_selection.cc",
140 "codecs/vp8/reference_picture_selection.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000141 "codecs/vp8/screenshare_layers.cc",
142 "codecs/vp8/screenshare_layers.h",
143 "codecs/vp8/simulcast_encoder_adapter.cc",
144 "codecs/vp8/simulcast_encoder_adapter.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000145 "codecs/vp8/temporal_layers.h",
146 "codecs/vp8/vp8_factory.cc",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000147 "codecs/vp8/vp8_factory.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000148 "codecs/vp8/vp8_impl.cc",
149 "codecs/vp8/vp8_impl.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000150 ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000151
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000152 configs += [ "../..:common_config" ]
153 public_configs = [ "../..:common_inherited_config" ]
154
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000155 if (is_clang) {
156 # Suppress warnings from Chrome's Clang plugins.
157 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
158 configs -= [ "//build/config/clang:find_bad_constructs" ]
159 }
160
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000161 if (is_win) {
162 cflags = [
163 # TODO(jschuh): Bug 1348: fix this warning.
164 "/wd4267", # size_t to int truncation.
165 ]
166 }
167
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000168 deps = [
169 ":video_coding_utility",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000170 "../..:webrtc_common",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000171 "../../common_video",
172 "../../system_wrappers",
173 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000174 if (rtc_build_libvpx) {
175 deps += [
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000176 rtc_libvpx_dir,
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000177 ]
178 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000179}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000180
181source_set("webrtc_vp9") {
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000182 if (rtc_build_vp9) {
183 sources = [
184 "codecs/vp9/include/vp9.h",
185 "codecs/vp9/vp9_impl.cc",
186 "codecs/vp9/vp9_impl.h",
187 ]
188 } else {
189 sources = [ "codecs/vp9/vp9_dummy_impl.cc" ]
190 }
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000191
192 configs += [ "../..:common_config" ]
193 public_configs = [ "../..:common_inherited_config" ]
194
195 if (is_clang) {
196 # Suppress warnings from Chrome's Clang plugins.
197 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
198 configs -= [ "//build/config/clang:find_bad_constructs" ]
199 }
200
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000201 deps = [
202 ":video_coding_utility",
203 "../../common_video",
204 "../../system_wrappers",
205 ]
206 if (rtc_build_libvpx) {
207 deps += [
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000208 rtc_libvpx_dir,
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000209 ]
210 }
211}