blob: 402502de58a5dad66ae52feb2400d9b857b9f037 [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",
jackychen98d8cf52015-05-21 11:12:02 -070099 "utility/include/vp8_header_parser.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000100 "utility/quality_scaler.cc",
jackychen98d8cf52015-05-21 11:12:02 -0700101 "utility/vp8_header_parser.cc",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000102 ]
103
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000104 configs += [ "../..:common_config" ]
105 public_configs = [ "../..:common_inherited_config" ]
106
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000107 if (is_clang) {
108 # Suppress warnings from Chrome's Clang plugins.
109 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
110 configs -= [ "//build/config/clang:find_bad_constructs" ]
111 }
112
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000113 deps = [ "../../system_wrappers" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000114}
115
116source_set("webrtc_i420") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000117 sources = [
118 "codecs/i420/main/source/i420.cc",
119 "codecs/i420/main/interface/i420.h",
120 ]
121
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000122 configs += [ "../..:common_config" ]
123 public_configs = [ "../..:common_inherited_config" ]
124
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000125 if (is_clang) {
126 # Suppress warnings from Chrome's Clang plugins.
127 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
128 configs -= [ "//build/config/clang:find_bad_constructs" ]
129 }
130
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000131 deps = [ "../../system_wrappers" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000132}
133
134source_set("webrtc_vp8") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000135 sources = [
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000136 "codecs/vp8/default_temporal_layers.cc",
137 "codecs/vp8/default_temporal_layers.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000138 "codecs/vp8/include/vp8.h",
139 "codecs/vp8/include/vp8_common_types.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000140 "codecs/vp8/realtime_temporal_layers.cc",
141 "codecs/vp8/reference_picture_selection.cc",
142 "codecs/vp8/reference_picture_selection.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000143 "codecs/vp8/screenshare_layers.cc",
144 "codecs/vp8/screenshare_layers.h",
145 "codecs/vp8/simulcast_encoder_adapter.cc",
146 "codecs/vp8/simulcast_encoder_adapter.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000147 "codecs/vp8/temporal_layers.h",
148 "codecs/vp8/vp8_factory.cc",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000149 "codecs/vp8/vp8_factory.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000150 "codecs/vp8/vp8_impl.cc",
151 "codecs/vp8/vp8_impl.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000152 ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000153
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000154 configs += [ "../..:common_config" ]
155 public_configs = [ "../..:common_inherited_config" ]
156
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000157 if (is_clang) {
158 # Suppress warnings from Chrome's Clang plugins.
159 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
160 configs -= [ "//build/config/clang:find_bad_constructs" ]
161 }
162
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000163 if (is_win) {
164 cflags = [
165 # TODO(jschuh): Bug 1348: fix this warning.
166 "/wd4267", # size_t to int truncation.
167 ]
168 }
169
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000170 deps = [
171 ":video_coding_utility",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000172 "../..:webrtc_common",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000173 "../../common_video",
174 "../../system_wrappers",
175 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000176 if (rtc_build_libvpx) {
177 deps += [
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000178 rtc_libvpx_dir,
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000179 ]
180 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000181}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000182
183source_set("webrtc_vp9") {
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000184 if (rtc_build_vp9) {
185 sources = [
186 "codecs/vp9/include/vp9.h",
Henrik Boström9695d852015-05-06 10:42:15 +0200187 "codecs/vp9/vp9_frame_buffer_pool.cc",
188 "codecs/vp9/vp9_frame_buffer_pool.h",
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000189 "codecs/vp9/vp9_impl.cc",
190 "codecs/vp9/vp9_impl.h",
191 ]
192 } else {
193 sources = [ "codecs/vp9/vp9_dummy_impl.cc" ]
194 }
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000195
196 configs += [ "../..:common_config" ]
197 public_configs = [ "../..:common_inherited_config" ]
198
199 if (is_clang) {
200 # Suppress warnings from Chrome's Clang plugins.
201 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
202 configs -= [ "//build/config/clang:find_bad_constructs" ]
203 }
204
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000205 deps = [
206 ":video_coding_utility",
207 "../../common_video",
208 "../../system_wrappers",
209 ]
210 if (rtc_build_libvpx) {
211 deps += [
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000212 rtc_libvpx_dir,
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000213 ]
214 }
215}