blob: 353eca28d112b0f888183276c743e8cdd61014bc [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",
25 "main/source/er_tables_xor.h",
26 "main/source/fec_tables_xor.h",
27 "main/source/frame_buffer.cc",
28 "main/source/frame_buffer.h",
29 "main/source/generic_decoder.cc",
30 "main/source/generic_decoder.h",
31 "main/source/generic_encoder.cc",
32 "main/source/generic_encoder.h",
33 "main/source/inter_frame_delay.cc",
34 "main/source/inter_frame_delay.h",
35 "main/source/internal_defines.h",
36 "main/source/jitter_buffer.cc",
37 "main/source/jitter_buffer.h",
38 "main/source/jitter_buffer_common.h",
39 "main/source/jitter_estimator.cc",
40 "main/source/jitter_estimator.h",
41 "main/source/media_opt_util.cc",
42 "main/source/media_opt_util.h",
43 "main/source/media_optimization.cc",
44 "main/source/media_optimization.h",
45 "main/source/nack_fec_tables.h",
46 "main/source/packet.cc",
47 "main/source/packet.h",
48 "main/source/qm_select_data.h",
49 "main/source/qm_select.cc",
50 "main/source/qm_select.h",
51 "main/source/receiver.cc",
52 "main/source/receiver.h",
53 "main/source/rtt_filter.cc",
54 "main/source/rtt_filter.h",
55 "main/source/session_info.cc",
56 "main/source/session_info.h",
57 "main/source/timestamp_map.cc",
58 "main/source/timestamp_map.h",
59 "main/source/timing.cc",
60 "main/source/timing.h",
61 "main/source/video_coding_impl.cc",
62 "main/source/video_coding_impl.h",
63 "main/source/video_receiver.cc",
64 "main/source/video_sender.cc",
65 ]
66
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000067 configs += [ "../..:common_config" ]
68 public_configs = [ "../..:common_inherited_config" ]
69
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +000070 if (is_win) {
71 cflags = [
72 # TODO(jschuh): Bug 1348: fix this warning.
73 "/wd4267", # size_t to int truncation.
74 ]
75 }
76
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000077 if (is_clang) {
78 # Suppress warnings from Chrome's Clang plugins.
79 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
80 configs -= [ "//build/config/clang:find_bad_constructs" ]
81 }
82
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000083 deps = [
84 ":video_coding_utility",
85 ":webrtc_i420",
86 ":webrtc_vp8",
marpan@webrtc.org5b883172014-11-01 06:10:48 +000087 ":webrtc_vp9",
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
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000167 # TODO(kjellander): Remove once libvpx has changed it's libvpx_config to be
168 # in direct_dependent_configs.
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000169 configs += [ "$rtc_libvpx_dir:libvpx_config" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000170
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000171 deps = [
172 ":video_coding_utility",
173 "../../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",
187 "codecs/vp9/vp9_impl.cc",
188 "codecs/vp9/vp9_impl.h",
189 ]
190 } else {
191 sources = [ "codecs/vp9/vp9_dummy_impl.cc" ]
192 }
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000193
194 configs += [ "../..:common_config" ]
195 public_configs = [ "../..:common_inherited_config" ]
196
197 if (is_clang) {
198 # Suppress warnings from Chrome's Clang plugins.
199 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
200 configs -= [ "//build/config/clang:find_bad_constructs" ]
201 }
202
203 # TODO(kjellander): Remove once libvpx has changed it's libvpx_config to be
204 # in direct_dependent_configs.
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000205 configs += [ "$rtc_libvpx_dir:libvpx_config" ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000206
207 deps = [
208 ":video_coding_utility",
209 "../../common_video",
210 "../../system_wrappers",
211 ]
212 if (rtc_build_libvpx) {
213 deps += [
kjellander@webrtc.orgce22f132015-02-16 12:47:20 +0000214 rtc_libvpx_dir,
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000215 ]
216 }
217}