blob: 340a20338e51012d5aac2f1f4f6fcc7c45fe8cef [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",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000097 "utility/quality_scaler.cc",
98 "utility/quality_scaler.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000099 ]
100
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000101 configs += [ "../..:common_config" ]
102 public_configs = [ "../..:common_inherited_config" ]
103
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000104 if (is_clang) {
105 # Suppress warnings from Chrome's Clang plugins.
106 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
107 configs -= [ "//build/config/clang:find_bad_constructs" ]
108 }
109
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000110 deps = [ "../../system_wrappers" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000111}
112
113source_set("webrtc_i420") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000114 sources = [
115 "codecs/i420/main/source/i420.cc",
116 "codecs/i420/main/interface/i420.h",
117 ]
118
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000119 configs += [ "../..:common_config" ]
120 public_configs = [ "../..:common_inherited_config" ]
121
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000122 if (is_clang) {
123 # Suppress warnings from Chrome's Clang plugins.
124 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
125 configs -= [ "//build/config/clang:find_bad_constructs" ]
126 }
127
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000128 deps = [ "../../system_wrappers" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000129}
130
131source_set("webrtc_vp8") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000132 sources = [
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000133 "codecs/vp8/default_temporal_layers.cc",
134 "codecs/vp8/default_temporal_layers.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000135 "codecs/vp8/include/vp8.h",
136 "codecs/vp8/include/vp8_common_types.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000137 "codecs/vp8/realtime_temporal_layers.cc",
138 "codecs/vp8/reference_picture_selection.cc",
139 "codecs/vp8/reference_picture_selection.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000140 "codecs/vp8/screenshare_layers.cc",
141 "codecs/vp8/screenshare_layers.h",
142 "codecs/vp8/simulcast_encoder_adapter.cc",
143 "codecs/vp8/simulcast_encoder_adapter.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000144 "codecs/vp8/temporal_layers.h",
145 "codecs/vp8/vp8_factory.cc",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000146 "codecs/vp8/vp8_factory.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000147 "codecs/vp8/vp8_impl.cc",
148 "codecs/vp8/vp8_impl.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000149 ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000150
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000151 configs += [ "../..:common_config" ]
152 public_configs = [ "../..:common_inherited_config" ]
153
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000154 if (is_clang) {
155 # Suppress warnings from Chrome's Clang plugins.
156 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
157 configs -= [ "//build/config/clang:find_bad_constructs" ]
158 }
159
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000160 if (is_win) {
161 cflags = [
162 # TODO(jschuh): Bug 1348: fix this warning.
163 "/wd4267", # size_t to int truncation.
164 ]
165 }
166
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000167 deps = [
168 ":video_coding_utility",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000169 "../..:webrtc_common",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000170 "../../common_video",
171 "../../system_wrappers",
172 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000173 if (rtc_build_libvpx) {
174 deps += [
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000175 rtc_libvpx_dir,
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000176 ]
177 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000178}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000179
180source_set("webrtc_vp9") {
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000181 if (rtc_build_vp9) {
182 sources = [
183 "codecs/vp9/include/vp9.h",
184 "codecs/vp9/vp9_impl.cc",
185 "codecs/vp9/vp9_impl.h",
186 ]
187 } else {
188 sources = [ "codecs/vp9/vp9_dummy_impl.cc" ]
189 }
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000190
191 configs += [ "../..:common_config" ]
192 public_configs = [ "../..:common_inherited_config" ]
193
194 if (is_clang) {
195 # Suppress warnings from Chrome's Clang plugins.
196 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
197 configs -= [ "//build/config/clang:find_bad_constructs" ]
198 }
199
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000200 deps = [
201 ":video_coding_utility",
202 "../../common_video",
203 "../../system_wrappers",
204 ]
205 if (rtc_build_libvpx) {
206 deps += [
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000207 rtc_libvpx_dir,
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000208 ]
209 }
210}