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") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 16 | visibility = [ "*" ] |
Dan Minor | 9c68613 | 2018-01-15 15:20:00 | [diff] [blame] | 17 | deps = [] |
| 18 | |
| 19 | if (!build_with_mozilla) { |
| 20 | deps += [ ":libjingle_peerconnection_api" ] |
| 21 | } |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 22 | } |
| 23 | |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 24 | rtc_source_set("call_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 25 | visibility = [ "*" ] |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 26 | sources = [ |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 27 | "call/audio_sink.h", |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 28 | ] |
| 29 | |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 30 | deps = [ |
| 31 | # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done. |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 32 | ":transport_api", |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 33 | "..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 34 | "../rtc_base:rtc_base_approved", |
Gustaf Ullberg | 2ae140a | 2018-02-16 12:43:49 | [diff] [blame] | 35 | "audio:audio_mixer_api", |
kwiberg | 087bd34 | 2017-02-10 16:15:44 | [diff] [blame] | 36 | "audio_codecs:audio_codecs_api", |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 37 | ] |
| 38 | } |
| 39 | |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 40 | rtc_source_set("callfactory_api") { |
| 41 | visibility = [ "*" ] |
| 42 | sources = [ |
| 43 | "call/callfactoryinterface.h", |
| 44 | ] |
| 45 | } |
| 46 | |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 47 | rtc_static_library("libjingle_peerconnection_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 48 | visibility = [ "*" ] |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 49 | cflags = [] |
| 50 | sources = [ |
Steve Anton | 36b28db | 2017-10-26 18:27:17 | [diff] [blame] | 51 | "candidate.cc", |
Patrik Höglund | e2d6a06 | 2017-10-05 12:53:33 | [diff] [blame] | 52 | "candidate.h", |
Patrik Höglund | 7aee3d5 | 2017-11-15 12:15:17 | [diff] [blame] | 53 | "cryptoparams.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 54 | "datachannelinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 55 | "dtmfsenderinterface.h", |
Steve Anton | 845bb73 | 2017-12-05 20:50:26 | [diff] [blame] | 56 | "jsep.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 57 | "jsep.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 58 | "jsepicecandidate.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 59 | "jsepsessiondescription.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 60 | "mediaconstraintsinterface.cc", |
| 61 | "mediaconstraintsinterface.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 62 | "mediastreaminterface.cc", |
Patrik Höglund | 825249f | 2018-01-09 09:38:21 | [diff] [blame] | 63 | "mediastreaminterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 64 | "mediastreamproxy.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 65 | "mediastreamtrackproxy.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 66 | "mediatypes.cc", |
| 67 | "mediatypes.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 68 | "notifier.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 69 | "peerconnectionfactoryproxy.h", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 70 | "peerconnectioninterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 71 | "peerconnectionproxy.h", |
Steve Anton | f2737d2 | 2017-10-31 23:27:34 | [diff] [blame] | 72 | "proxy.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 73 | "proxy.h", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 74 | "rtcerror.cc", |
| 75 | "rtcerror.h", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 76 | "rtp_headers.cc", |
| 77 | "rtp_headers.h", |
Stefan Holmer | 1acbd68 | 2017-09-01 13:29:28 | [diff] [blame] | 78 | "rtpparameters.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 79 | "rtpparameters.h", |
Danil Chapovalov | 2a5ce2b | 2018-02-07 08:38:31 | [diff] [blame] | 80 | "rtpreceiverinterface.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 81 | "rtpreceiverinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 82 | "rtpsenderinterface.h", |
Steve Anton | 6e634bf | 2017-11-13 18:44:53 | [diff] [blame] | 83 | "rtptransceiverinterface.h", |
Henrik Boström | 3163867 | 2017-11-23 16:48:32 | [diff] [blame] | 84 | "setremotedescriptionobserverinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 85 | "statstypes.cc", |
| 86 | "statstypes.h", |
Jonas Oreland | bdcee28 | 2017-10-10 12:01:40 | [diff] [blame] | 87 | "turncustomizer.h", |
Steve Anton | f2737d2 | 2017-10-31 23:27:34 | [diff] [blame] | 88 | "umametrics.cc", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 89 | "umametrics.h", |
Patrik Höglund | 9e19403 | 2018-01-04 14:58:20 | [diff] [blame] | 90 | "videosourceinterface.cc", |
| 91 | "videosourceinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 92 | "videosourceproxy.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 93 | ] |
| 94 | |
kjellander | e40a7ee | 2016-10-17 06:56:12 | [diff] [blame] | 95 | if (!build_with_chromium && is_clang) { |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 96 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 97 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 98 | } |
| 99 | |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 100 | deps = [ |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 101 | ":array_view", |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 102 | ":audio_options_api", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 103 | ":callfactory_api", |
Ying Wang | 0dd1b0a | 2018-02-20 11:50:27 | [diff] [blame] | 104 | ":fec_controller_api", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 105 | ":libjingle_logging_api", |
Patrik Höglund | e2d6a06 | 2017-10-05 12:53:33 | [diff] [blame] | 106 | ":optional", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 107 | ":rtc_stats_api", |
Patrik Höglund | b874a35 | 2017-11-27 13:32:41 | [diff] [blame] | 108 | ":video_frame_api", |
Gustaf Ullberg | 2ae140a | 2018-02-16 12:43:49 | [diff] [blame] | 109 | "audio:audio_mixer_api", |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 110 | "audio_codecs:audio_codecs_api", |
| 111 | |
| 112 | # Basically, don't add stuff here. You might break sensitive downstream |
| 113 | # targets like pnacl. API should not depend on anything outside of this |
| 114 | # file, really. All these should arguably go away in time. |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 115 | "..:typedefs", |
kjellander | 8a11663 | 2017-04-21 12:17:08 | [diff] [blame] | 116 | "..:webrtc_common", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 117 | "../logging:rtc_event_log_api", |
Niels Möller | 6daa278 | 2018-01-23 09:37:42 | [diff] [blame] | 118 | "../media:rtc_media_config", |
Patrik Höglund | b874a35 | 2017-11-27 13:32:41 | [diff] [blame] | 119 | "../modules/audio_processing:audio_processing_statistics", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 120 | "../rtc_base:checks", |
| 121 | "../rtc_base:deprecation", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 122 | "../rtc_base:rtc_base", |
| 123 | "../rtc_base:rtc_base_approved", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 124 | "../rtc_base:stringutils", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 125 | ] |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 126 | |
kjellander | 8a11663 | 2017-04-21 12:17:08 | [diff] [blame] | 127 | if (is_nacl) { |
Patrik Höglund | 30bd03b | 2017-12-19 10:45:31 | [diff] [blame] | 128 | # This is needed by .h files included from rtc_base. |
kjellander | 8a11663 | 2017-04-21 12:17:08 | [diff] [blame] | 129 | deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
| 130 | } |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 131 | } |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 132 | |
Elad Alon | 8081073 | 2017-10-06 11:07:32 | [diff] [blame] | 133 | rtc_source_set("libjingle_logging_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 134 | visibility = [ "*" ] |
Elad Alon | 8081073 | 2017-10-06 11:07:32 | [diff] [blame] | 135 | sources = [ |
| 136 | "rtceventlogoutput.h", |
| 137 | ] |
| 138 | } |
| 139 | |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 140 | rtc_source_set("ortc_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 141 | visibility = [ "*" ] |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 142 | sources = [ |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 143 | "ortc/mediadescription.cc", |
| 144 | "ortc/mediadescription.h", |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 145 | "ortc/ortcfactoryinterface.h", |
| 146 | "ortc/ortcrtpreceiverinterface.h", |
| 147 | "ortc/ortcrtpsenderinterface.h", |
| 148 | "ortc/packettransportinterface.h", |
| 149 | "ortc/rtptransportcontrollerinterface.h", |
| 150 | "ortc/rtptransportinterface.h", |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 151 | "ortc/sessiondescription.cc", |
| 152 | "ortc/sessiondescription.h", |
zhihuang | d3501ad | 2017-03-03 22:39:06 | [diff] [blame] | 153 | "ortc/srtptransportinterface.h", |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 154 | "ortc/udptransportinterface.h", |
| 155 | ] |
| 156 | |
| 157 | # For mediastreaminterface.h, etc. |
| 158 | # TODO(deadbeef): Create a separate target for the common things ORTC and |
| 159 | # PeerConnection code shares, so that ortc_api can depend on that instead of |
| 160 | # libjingle_peerconnection_api. |
Patrik Höglund | 7aee3d5 | 2017-11-15 12:15:17 | [diff] [blame] | 161 | deps = [ |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 162 | ":libjingle_peerconnection_api", |
Patrik Höglund | 7aee3d5 | 2017-11-15 12:15:17 | [diff] [blame] | 163 | ":optional", |
| 164 | "..:webrtc_common", |
| 165 | "../rtc_base:rtc_base", |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 166 | ] |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 167 | if (!build_with_chromium && is_clang) { |
| 168 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 169 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 170 | } |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 171 | } |
| 172 | |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 173 | rtc_source_set("rtc_stats_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 174 | visibility = [ "*" ] |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 175 | cflags = [] |
| 176 | sources = [ |
| 177 | "stats/rtcstats.h", |
| 178 | "stats/rtcstats_objects.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 179 | "stats/rtcstatscollectorcallback.h", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 180 | "stats/rtcstatsreport.h", |
| 181 | ] |
| 182 | |
| 183 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 184 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 185 | "../rtc_base:rtc_base_approved", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 186 | ] |
| 187 | } |
| 188 | |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 189 | rtc_source_set("audio_options_api") { |
| 190 | visibility = [ "*" ] |
| 191 | sources = [ |
| 192 | "audio_options.h", |
| 193 | ] |
| 194 | |
| 195 | deps = [ |
| 196 | ":optional", |
| 197 | "../rtc_base:rtc_base_approved", |
| 198 | ] |
| 199 | } |
| 200 | |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 201 | rtc_source_set("transport_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 202 | visibility = [ "*" ] |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 203 | sources = [ |
Dino Radaković | 1807d57 | 2018-02-22 13:18:06 | [diff] [blame^] | 204 | "call/transport.cc", |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 205 | "call/transport.h", |
| 206 | ] |
| 207 | } |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 208 | |
Ying Wang | 3b790f3 | 2018-01-19 16:58:57 | [diff] [blame] | 209 | rtc_source_set("fec_controller_api") { |
| 210 | visibility = [ "*" ] |
| 211 | sources = [ |
| 212 | "fec_controller.h", |
| 213 | ] |
| 214 | |
| 215 | deps = [ |
Ying Wang | 0dd1b0a | 2018-02-20 11:50:27 | [diff] [blame] | 216 | "..:webrtc_common", |
| 217 | "../modules:module_fec_api", |
Ying Wang | 3b790f3 | 2018-01-19 16:58:57 | [diff] [blame] | 218 | ] |
| 219 | } |
| 220 | |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 221 | rtc_source_set("video_frame_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 222 | visibility = [ "*" ] |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 223 | sources = [ |
ilnik | 6d5b4d6 | 2017-08-30 10:32:14 | [diff] [blame] | 224 | "video/video_content_type.cc", |
| 225 | "video/video_content_type.h", |
nisse | af91689 | 2017-01-10 15:44:26 | [diff] [blame] | 226 | "video/video_frame.cc", |
| 227 | "video/video_frame.h", |
magjed | 712338e | 2017-05-11 12:11:57 | [diff] [blame] | 228 | "video/video_frame_buffer.cc", |
nisse | af91689 | 2017-01-10 15:44:26 | [diff] [blame] | 229 | "video/video_frame_buffer.h", |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 230 | "video/video_rotation.h", |
ilnik | 2edc684 | 2017-07-06 10:06:50 | [diff] [blame] | 231 | "video/video_timing.cc", |
ilnik | 04f4d12 | 2017-06-19 14:18:55 | [diff] [blame] | 232 | "video/video_timing.h", |
Niels Möller | 9d138fc | 2018-02-15 15:58:43 | [diff] [blame] | 233 | "videosinkinterface.h", |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 234 | ] |
| 235 | |
| 236 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 237 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 238 | "../rtc_base:rtc_base_approved", |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 239 | ] |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 240 | } |
| 241 | |
philipel | d5a272f | 2018-02-21 13:30:34 | [diff] [blame] | 242 | rtc_source_set("encoded_frame_api") { |
| 243 | visibility = [ "*" ] |
| 244 | sources = [ |
| 245 | "video/encoded_frame.h", |
| 246 | ] |
| 247 | |
| 248 | deps = [ |
| 249 | "../modules/video_coding:encoded_frame", |
| 250 | ] |
| 251 | } |
| 252 | |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 253 | rtc_source_set("video_frame_api_i420") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 254 | visibility = [ "*" ] |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 255 | sources = [ |
Patrik Höglund | b874a35 | 2017-11-27 13:32:41 | [diff] [blame] | 256 | "video/i420_buffer.cc", |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 257 | "video/i420_buffer.h", |
| 258 | ] |
| 259 | deps = [ |
| 260 | ":video_frame_api", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 261 | "../rtc_base:checks", |
Patrik Höglund | 76df0df | 2017-12-19 10:50:21 | [diff] [blame] | 262 | "../rtc_base:rtc_base", |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 263 | "../system_wrappers", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 264 | "//third_party/libyuv", |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 265 | ] |
| 266 | } |
| 267 | |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 268 | rtc_source_set("array_view") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 269 | visibility = [ "*" ] |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 270 | sources = [ |
| 271 | "array_view.h", |
| 272 | ] |
| 273 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 274 | "../rtc_base:checks", |
| 275 | "../rtc_base:type_traits", |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 276 | ] |
| 277 | } |
| 278 | |
kwiberg | 84f6a3f | 2017-09-05 15:43:13 | [diff] [blame] | 279 | rtc_source_set("optional") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 280 | visibility = [ "*" ] |
kwiberg | 84f6a3f | 2017-09-05 15:43:13 | [diff] [blame] | 281 | sources = [ |
| 282 | "optional.cc", |
| 283 | "optional.h", |
| 284 | ] |
| 285 | deps = [ |
| 286 | ":array_view", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 287 | "../rtc_base:checks", |
| 288 | "../rtc_base:sanitizer", |
kwiberg | 84f6a3f | 2017-09-05 15:43:13 | [diff] [blame] | 289 | ] |
| 290 | } |
| 291 | |
Niels Möller | 9155e49 | 2017-10-23 09:22:30 | [diff] [blame] | 292 | rtc_source_set("refcountedbase") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 293 | visibility = [ "*" ] |
Niels Möller | 9155e49 | 2017-10-23 09:22:30 | [diff] [blame] | 294 | sources = [ |
| 295 | "refcountedbase.h", |
| 296 | ] |
| 297 | deps = [ |
| 298 | "../rtc_base:rtc_base_approved", |
| 299 | ] |
| 300 | } |
| 301 | |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 302 | rtc_source_set("libjingle_peerconnection_test_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 303 | visibility = [ "*" ] |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 304 | testonly = true |
| 305 | sources = [ |
| 306 | "test/fakeconstraints.h", |
| 307 | ] |
| 308 | |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 309 | deps = [ |
Mirko Bonadei | 34814c7 | 2018-01-11 09:13:56 | [diff] [blame] | 310 | ":libjingle_peerconnection_api", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 311 | "../rtc_base:rtc_base_approved", |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 312 | ] |
| 313 | } |
| 314 | |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 315 | if (rtc_include_tests) { |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 316 | rtc_source_set("mock_audio_mixer") { |
| 317 | testonly = true |
| 318 | sources = [ |
| 319 | "test/mock_audio_mixer.h", |
| 320 | ] |
| 321 | |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 322 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 323 | "../test:test_support", |
Gustaf Ullberg | 2ae140a | 2018-02-16 12:43:49 | [diff] [blame] | 324 | "audio:audio_mixer_api", |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 325 | ] |
| 326 | } |
| 327 | |
Patrik Höglund | 4b9e6ba | 2017-12-19 09:32:11 | [diff] [blame] | 328 | rtc_source_set("mock_rtp") { |
| 329 | testonly = true |
| 330 | sources = [ |
| 331 | "test/mock_rtpreceiver.h", |
| 332 | "test/mock_rtpsender.h", |
| 333 | ] |
| 334 | |
| 335 | deps = [ |
| 336 | ":libjingle_peerconnection_api", |
| 337 | "../test:test_support", |
Patrik Höglund | 4b9e6ba | 2017-12-19 09:32:11 | [diff] [blame] | 338 | ] |
| 339 | } |
| 340 | |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 341 | rtc_source_set("mock_video_codec_factory") { |
| 342 | testonly = true |
| 343 | sources = [ |
| 344 | "test/mock_video_decoder_factory.h", |
| 345 | "test/mock_video_encoder_factory.h", |
| 346 | ] |
| 347 | |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 348 | deps = [ |
Mirko Bonadei | 34814c7 | 2018-01-11 09:13:56 | [diff] [blame] | 349 | "../api/video_codecs:video_codecs_api", |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 350 | "../test:test_support", |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 351 | ] |
| 352 | } |
| 353 | |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 354 | rtc_source_set("fakemetricsobserver") { |
| 355 | testonly = true |
| 356 | sources = [ |
| 357 | "fakemetricsobserver.cc", |
| 358 | "fakemetricsobserver.h", |
| 359 | ] |
| 360 | deps = [ |
Edward Lemur | 872cf38 | 2017-11-20 17:41:50 | [diff] [blame] | 361 | "../media:rtc_media_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 362 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 363 | "../rtc_base:rtc_base_approved", |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 364 | ] |
| 365 | if (!build_with_chromium && is_clang) { |
| 366 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 367 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 368 | } |
Dan Minor | 9c68613 | 2018-01-15 15:20:00 | [diff] [blame] | 369 | if (!build_with_mozilla) { |
| 370 | deps += [ ":libjingle_peerconnection_api" ] |
| 371 | } |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 372 | } |
| 373 | |
deadbeef | b5388d7 | 2017-02-24 09:17:43 | [diff] [blame] | 374 | rtc_source_set("rtc_api_unittests") { |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 375 | testonly = true |
kjellander | e0629c0 | 2017-04-25 11:04:50 | [diff] [blame] | 376 | |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 377 | sources = [ |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 378 | "array_view_unittest.cc", |
kwiberg | 84f6a3f | 2017-09-05 15:43:13 | [diff] [blame] | 379 | "optional_unittest.cc", |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 380 | "ortc/mediadescription_unittest.cc", |
| 381 | "ortc/sessiondescription_unittest.cc", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 382 | "rtcerror_unittest.cc", |
Stefan Holmer | 1acbd68 | 2017-09-01 13:29:28 | [diff] [blame] | 383 | "rtpparameters_unittest.cc", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 384 | ] |
| 385 | |
| 386 | if (!build_with_chromium && is_clang) { |
| 387 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 388 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 389 | } |
| 390 | |
| 391 | deps = [ |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 392 | ":array_view", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 393 | ":libjingle_peerconnection_api", |
Henrik Boström | 3163867 | 2017-11-23 16:48:32 | [diff] [blame] | 394 | ":libjingle_peerconnection_test_api", |
kwiberg | 84f6a3f | 2017-09-05 15:43:13 | [diff] [blame] | 395 | ":optional", |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 396 | ":ortc_api", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 397 | "../rtc_base:checks", |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 398 | "../rtc_base:rtc_base_approved", |
| 399 | "../rtc_base:rtc_base_tests_utils", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 400 | "../test:test_support", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 401 | ] |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 402 | } |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 403 | } |