blob: 038766aa9a2183319de8f900e6af7f3c91889420 [file] [log] [blame]
hjonaa32c3e2015-12-14 03:58:111# Copyright (c) 2015 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
mbonadei9aa3f0a2017-01-24 14:58:229import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 12:55:0010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 10:09:3214
15group("api") {
kjellander705ecc52016-09-15 07:53:2616 public_deps = [
ossu7bb87ee2017-01-23 12:56:2517 ":libjingle_peerconnection_api",
kjellanderc76dc952016-06-03 10:09:3218 ]
19}
20
ehmaldonado38a21322016-09-02 11:10:3421rtc_source_set("call_api") {
kjellandera69d9732016-08-31 14:33:0522 sources = [
kjellandera69d9732016-08-31 14:33:0523 "call/audio_sink.h",
kjellandera69d9732016-08-31 14:33:0524 ]
25
kjellandera69d9732016-08-31 14:33:0526 deps = [
27 # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done.
aleloi81da4882016-11-08 12:26:3028 ":audio_mixer_api",
aleloia8eb7562016-11-28 15:02:1329 ":transport_api",
kjellandera69d9732016-08-31 14:33:0530 "..:webrtc_common",
31 "../base:rtc_base_approved",
kjellander676e08f2016-12-07 16:23:2732 "../modules/audio_coding:audio_decoder_factory_interface",
kjellandera69d9732016-08-31 14:33:0533 "../modules/audio_coding:audio_encoder_interface",
34 ]
35}
36
ossu7bb87ee2017-01-23 12:56:2537rtc_static_library("libjingle_peerconnection_api") {
kjellander676e08f2016-12-07 16:23:2738 check_includes = false # TODO(kjellander): Remove (bugs.webrtc.org/6828)
kjellanderc76dc952016-06-03 10:09:3239 cflags = []
40 sources = [
kjellanderc76dc952016-06-03 10:09:3241 "datachannel.h",
42 "datachannelinterface.h",
kjellanderc76dc952016-06-03 10:09:3243 "dtmfsenderinterface.h",
44 "jsep.h",
kjellanderc76dc952016-06-03 10:09:3245 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 10:09:3246 "jsepsessiondescription.h",
kjellanderc76dc952016-06-03 10:09:3247 "mediaconstraintsinterface.cc",
48 "mediaconstraintsinterface.h",
kjellanderc76dc952016-06-03 10:09:3249 "mediacontroller.h",
kjellanderc76dc952016-06-03 10:09:3250 "mediastream.h",
ossu7bb87ee2017-01-23 12:56:2551 "mediastreaminterface.cc",
kjellanderc76dc952016-06-03 10:09:3252 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 10:09:3253 "mediastreamproxy.h",
54 "mediastreamtrack.h",
55 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 12:56:2556 "mediatypes.cc",
57 "mediatypes.h",
kjellanderc76dc952016-06-03 10:09:3258 "notifier.h",
deadbeefd1c09982017-01-18 23:16:3759 "ortcfactoryinterface.h",
kjellanderc76dc952016-06-03 10:09:3260 "peerconnectionfactoryproxy.h",
61 "peerconnectioninterface.h",
62 "peerconnectionproxy.h",
63 "proxy.h",
kjellanderc76dc952016-06-03 10:09:3264 "rtpparameters.h",
kjellanderc76dc952016-06-03 10:09:3265 "rtpreceiverinterface.h",
kjellanderc76dc952016-06-03 10:09:3266 "rtpsender.h",
67 "rtpsenderinterface.h",
kjellanderc76dc952016-06-03 10:09:3268 "statstypes.cc",
69 "statstypes.h",
70 "streamcollection.h",
hbos1f8239c2017-01-16 12:24:1071 "trackmediainfomap.cc",
72 "trackmediainfomap.h",
deadbeefd1c09982017-01-18 23:16:3773 "udptransportinterface.h",
ossu7bb87ee2017-01-23 12:56:2574 "umametrics.h",
kjellanderc76dc952016-06-03 10:09:3275 "videosourceproxy.h",
kjellanderc76dc952016-06-03 10:09:3276 "videotracksource.h",
kjellanderc76dc952016-06-03 10:09:3277 ]
78
kjellandere40a7ee2016-10-17 06:56:1279 if (!build_with_chromium && is_clang) {
kjellanderfd5b4e92016-06-13 19:08:3380 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 11:10:3481 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderc76dc952016-06-03 10:09:3282 }
83
kjellanderc76dc952016-06-03 10:09:3284 deps = [
hbos74e1a4f2016-09-16 06:33:0185 ":rtc_stats_api",
kjellanderc76dc952016-06-03 10:09:3286 ]
ossu7bb87ee2017-01-23 12:56:2587}
kjellanderc76dc952016-06-03 10:09:3288
ossu7bb87ee2017-01-23 12:56:2589# TODO(ossu): Remove once downstream projects have updated.
90rtc_source_set("libjingle_peerconnection") {
ossuda250062017-01-23 15:37:4391 public_deps = [
ossu7bb87ee2017-01-23 12:56:2592 "../pc:libjingle_peerconnection",
93 ]
kjellanderc76dc952016-06-03 10:09:3294}
kjellanderfd5b4e92016-06-13 19:08:3395
hbos74e1a4f2016-09-16 06:33:0196rtc_source_set("rtc_stats_api") {
97 cflags = []
98 sources = [
99 "stats/rtcstats.h",
100 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 12:56:25101 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-16 06:33:01102 "stats/rtcstatsreport.h",
103 ]
104
105 deps = [
106 "../base:rtc_base_approved",
107 ]
108}
109
aleloi201dfe92016-10-20 12:06:39110rtc_source_set("audio_mixer_api") {
111 sources = [
112 "audio/audio_mixer.h",
113 ]
114
115 deps = [
116 "../base:rtc_base_approved",
117 ]
118}
119
aleloia8eb7562016-11-28 15:02:13120rtc_source_set("transport_api") {
121 sources = [
122 "call/transport.h",
123 ]
124}
nisseb2250e52016-12-02 12:01:14125
126rtc_source_set("video_frame_api") {
127 sources = [
nisseaf916892017-01-10 15:44:26128 "video/i420_buffer.cc",
129 "video/i420_buffer.h",
130 "video/video_frame.cc",
131 "video/video_frame.h",
132 "video/video_frame_buffer.h",
nisseb2250e52016-12-02 12:01:14133 "video/video_rotation.h",
134 ]
135
136 deps = [
137 "../base:rtc_base_approved",
nisseaf916892017-01-10 15:44:26138 "../system_wrappers",
nisseb2250e52016-12-02 12:01:14139 ]
140
141 # TODO(nisse): This logic is duplicated in multiple places.
142 # Define in a single place.
143 if (rtc_build_libyuv) {
144 deps += [ "$rtc_libyuv_dir" ]
145 public_deps = [
146 "$rtc_libyuv_dir",
147 ]
148 } else {
149 # Need to add a directory normally exported by libyuv.
150 include_dirs = [ "$rtc_libyuv_dir/include" ]
151 }
152}
153
kjellanderfd5b4e92016-06-13 19:08:33154if (rtc_include_tests) {
aleloi17338d42016-11-22 14:02:06155 rtc_source_set("mock_audio_mixer") {
156 testonly = true
157 sources = [
158 "test/mock_audio_mixer.h",
159 ]
160
161 public_deps = [
162 ":audio_mixer_api",
163 ]
164
165 deps = [
166 "//testing/gmock",
kjellander676e08f2016-12-07 16:23:27167 "//webrtc/test:test_support",
aleloi17338d42016-11-22 14:02:06168 ]
169 }
ehmaldonadoda8dcfb2017-01-04 15:11:23170
ossu7bb87ee2017-01-23 12:56:25171 rtc_source_set("libjingle_peerconnection_test_api") {
172 testonly = true
173 sources = [
174 "test/fakeconstraints.h",
175 ]
176
177 public_deps = [
178 ":libjingle_peerconnection_api",
179 ]
180
181 deps = [
182 "../base:rtc_base_approved",
183 "//webrtc/test:test_support",
184 ]
185 }
186
ehmaldonadoda8dcfb2017-01-04 15:11:23187 rtc_source_set("fakemetricsobserver") {
188 testonly = true
189 sources = [
190 "fakemetricsobserver.cc",
191 "fakemetricsobserver.h",
192 ]
193 deps = [
ossu7bb87ee2017-01-23 12:56:25194 ":libjingle_peerconnection_api",
ehmaldonadoda8dcfb2017-01-04 15:11:23195 "../base:rtc_base_approved",
196 ]
197 if (!build_with_chromium && is_clang) {
198 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
199 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
200 }
201 }
kjellanderfd5b4e92016-06-13 19:08:33202}