hjon | aa32c3e | 2015-12-14 03:58:11 | [diff] [blame] | 1 | # 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 | |
mbonadei | 9aa3f0a | 2017-01-24 14:58:22 | [diff] [blame^] | 9 | import("../webrtc.gni") |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 10 | if (is_android) { |
| 11 | import("//build/config/android/config.gni") |
| 12 | import("//build/config/android/rules.gni") |
| 13 | } |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 14 | |
| 15 | group("api") { |
kjellander | 705ecc5 | 2016-09-15 07:53:26 | [diff] [blame] | 16 | public_deps = [ |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 17 | ":libjingle_peerconnection_api", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 18 | ] |
| 19 | } |
| 20 | |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 21 | rtc_source_set("call_api") { |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 22 | sources = [ |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 23 | "call/audio_sink.h", |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 24 | ] |
| 25 | |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 26 | deps = [ |
| 27 | # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done. |
aleloi | 81da488 | 2016-11-08 12:26:30 | [diff] [blame] | 28 | ":audio_mixer_api", |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 29 | ":transport_api", |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 30 | "..:webrtc_common", |
| 31 | "../base:rtc_base_approved", |
kjellander | 676e08f | 2016-12-07 16:23:27 | [diff] [blame] | 32 | "../modules/audio_coding:audio_decoder_factory_interface", |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 33 | "../modules/audio_coding:audio_encoder_interface", |
| 34 | ] |
| 35 | } |
| 36 | |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 37 | rtc_static_library("libjingle_peerconnection_api") { |
kjellander | 676e08f | 2016-12-07 16:23:27 | [diff] [blame] | 38 | check_includes = false # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 39 | cflags = [] |
| 40 | sources = [ |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 41 | "datachannel.h", |
| 42 | "datachannelinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 43 | "dtmfsenderinterface.h", |
| 44 | "jsep.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 45 | "jsepicecandidate.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 46 | "jsepsessiondescription.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 47 | "mediaconstraintsinterface.cc", |
| 48 | "mediaconstraintsinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 49 | "mediacontroller.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 50 | "mediastream.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 51 | "mediastreaminterface.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 52 | "mediastreaminterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 53 | "mediastreamproxy.h", |
| 54 | "mediastreamtrack.h", |
| 55 | "mediastreamtrackproxy.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 56 | "mediatypes.cc", |
| 57 | "mediatypes.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 58 | "notifier.h", |
deadbeef | d1c0998 | 2017-01-18 23:16:37 | [diff] [blame] | 59 | "ortcfactoryinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 60 | "peerconnectionfactoryproxy.h", |
| 61 | "peerconnectioninterface.h", |
| 62 | "peerconnectionproxy.h", |
| 63 | "proxy.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 64 | "rtpparameters.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 65 | "rtpreceiverinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 66 | "rtpsender.h", |
| 67 | "rtpsenderinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 68 | "statstypes.cc", |
| 69 | "statstypes.h", |
| 70 | "streamcollection.h", |
hbos | 1f8239c | 2017-01-16 12:24:10 | [diff] [blame] | 71 | "trackmediainfomap.cc", |
| 72 | "trackmediainfomap.h", |
deadbeef | d1c0998 | 2017-01-18 23:16:37 | [diff] [blame] | 73 | "udptransportinterface.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 74 | "umametrics.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 75 | "videosourceproxy.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 76 | "videotracksource.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 77 | ] |
| 78 | |
kjellander | e40a7ee | 2016-10-17 06:56:12 | [diff] [blame] | 79 | if (!build_with_chromium && is_clang) { |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 80 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 81 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 82 | } |
| 83 | |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 84 | deps = [ |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 85 | ":rtc_stats_api", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 86 | ] |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 87 | } |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 88 | |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 89 | # TODO(ossu): Remove once downstream projects have updated. |
| 90 | rtc_source_set("libjingle_peerconnection") { |
ossu | da25006 | 2017-01-23 15:37:43 | [diff] [blame] | 91 | public_deps = [ |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 92 | "../pc:libjingle_peerconnection", |
| 93 | ] |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 94 | } |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 95 | |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 96 | rtc_source_set("rtc_stats_api") { |
| 97 | cflags = [] |
| 98 | sources = [ |
| 99 | "stats/rtcstats.h", |
| 100 | "stats/rtcstats_objects.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 101 | "stats/rtcstatscollectorcallback.h", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 102 | "stats/rtcstatsreport.h", |
| 103 | ] |
| 104 | |
| 105 | deps = [ |
| 106 | "../base:rtc_base_approved", |
| 107 | ] |
| 108 | } |
| 109 | |
aleloi | 201dfe9 | 2016-10-20 12:06:39 | [diff] [blame] | 110 | rtc_source_set("audio_mixer_api") { |
| 111 | sources = [ |
| 112 | "audio/audio_mixer.h", |
| 113 | ] |
| 114 | |
| 115 | deps = [ |
| 116 | "../base:rtc_base_approved", |
| 117 | ] |
| 118 | } |
| 119 | |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 120 | rtc_source_set("transport_api") { |
| 121 | sources = [ |
| 122 | "call/transport.h", |
| 123 | ] |
| 124 | } |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 125 | |
| 126 | rtc_source_set("video_frame_api") { |
| 127 | sources = [ |
nisse | af91689 | 2017-01-10 15:44:26 | [diff] [blame] | 128 | "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", |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 133 | "video/video_rotation.h", |
| 134 | ] |
| 135 | |
| 136 | deps = [ |
| 137 | "../base:rtc_base_approved", |
nisse | af91689 | 2017-01-10 15:44:26 | [diff] [blame] | 138 | "../system_wrappers", |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 139 | ] |
| 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 | |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 154 | if (rtc_include_tests) { |
aleloi | 17338d4 | 2016-11-22 14:02:06 | [diff] [blame] | 155 | 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", |
kjellander | 676e08f | 2016-12-07 16:23:27 | [diff] [blame] | 167 | "//webrtc/test:test_support", |
aleloi | 17338d4 | 2016-11-22 14:02:06 | [diff] [blame] | 168 | ] |
| 169 | } |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 170 | |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 171 | 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 | |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 187 | rtc_source_set("fakemetricsobserver") { |
| 188 | testonly = true |
| 189 | sources = [ |
| 190 | "fakemetricsobserver.cc", |
| 191 | "fakemetricsobserver.h", |
| 192 | ] |
| 193 | deps = [ |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 194 | ":libjingle_peerconnection_api", |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 195 | "../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 | } |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 202 | } |