Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 1 | # Copyright (c) 2016 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") |
Qiang Chen | 43fb912 | 2017-12-20 18:47:36 | [diff] [blame] | 10 | |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 11 | if (is_android) { |
| 12 | import("//build/config/android/config.gni") |
| 13 | import("//build/config/android/rules.gni") |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 14 | } else if (is_mac) { |
| 15 | import("//build/config/mac/rules.gni") |
| 16 | } else if (is_ios) { |
| 17 | import("//build/config/ios/rules.gni") |
Tom Anderson | 06e4fc5 | 2022-04-06 22:22:33 | [diff] [blame] | 18 | } else if (is_linux || is_chromeos) { |
| 19 | import("//build/config/linux/pkg_config.gni") |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | group("examples") { |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 23 | # This target shall build all targets in examples. |
| 24 | testonly = true |
Mirko Bonadei | 1a339c3 | 2017-12-14 12:06:10 | [diff] [blame] | 25 | deps = [] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 26 | |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 27 | if (is_android) { |
Mirko Bonadei | 1a339c3 | 2017-12-14 12:06:10 | [diff] [blame] | 28 | deps += [ |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 29 | ":AppRTCMobile", |
Sami Kalliomäki | d54f5f5 | 2018-08-03 11:23:05 | [diff] [blame] | 30 | ":AppRTCMobile_test_apk", |
Christoffer Jansson | bbde8b6 | 2023-04-18 10:26:08 | [diff] [blame] | 31 | |
| 32 | #TODO(https://bugs.webrtc.org/15095) - Fix or remove this target. |
| 33 | #":libwebrtc_unity", |
Jason Long | 00b8462 | 2020-07-20 21:52:12 | [diff] [blame] | 34 | "androidvoip", |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 35 | ] |
Sami Kalliomäki | 3e77afd | 2018-03-08 15:43:16 | [diff] [blame] | 36 | |
| 37 | # TODO(sakal): We include some code from the tests. Remove this dependency |
| 38 | # and remove this if-clause. |
| 39 | if (rtc_include_tests) { |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 40 | deps += [ "androidnativeapi" ] |
Sami Kalliomäki | 3e77afd | 2018-03-08 15:43:16 | [diff] [blame] | 41 | } |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 42 | } |
| 43 | |
charujain | aca3a24 | 2016-11-01 10:09:15 | [diff] [blame] | 44 | if (!build_with_chromium) { |
Mirko Bonadei | 1a339c3 | 2017-12-14 12:06:10 | [diff] [blame] | 45 | deps += [ ":stun_prober" ] |
charujain | aca3a24 | 2016-11-01 10:09:15 | [diff] [blame] | 46 | } |
| 47 | |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 48 | if (is_ios || (is_mac && target_cpu != "x86")) { |
Mirko Bonadei | 1a339c3 | 2017-12-14 12:06:10 | [diff] [blame] | 49 | deps += [ ":AppRTCMobile" ] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 50 | } |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 51 | |
Hidehiko Abe | f264e70 | 2020-09-10 09:10:11 | [diff] [blame] | 52 | if (is_linux || is_chromeos || is_win) { |
Mirko Bonadei | 1a339c3 | 2017-12-14 12:06:10 | [diff] [blame] | 53 | deps += [ |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 54 | ":peerconnection_server", |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 55 | ":stunserver", |
| 56 | ":turnserver", |
| 57 | ] |
Robin Raymond | ce1b140 | 2018-11-23 01:10:11 | [diff] [blame] | 58 | if (current_os != "winuwp") { |
| 59 | deps += [ ":peerconnection_client" ] |
| 60 | } |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 61 | } |
George Zhou | 2770c3d | 2018-03-07 17:58:54 | [diff] [blame] | 62 | |
| 63 | if (is_android || is_win) { |
| 64 | deps += [ ":webrtc_unity_plugin" ] |
| 65 | } |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 66 | } |
| 67 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 68 | rtc_library("read_auth_file") { |
Niels Möller | 9862c2e | 2018-10-30 11:20:03 | [diff] [blame] | 69 | testonly = true |
| 70 | sources = [ |
| 71 | "turnserver/read_auth_file.cc", |
| 72 | "turnserver/read_auth_file.h", |
| 73 | ] |
Ali Tofigh | fd6a4d6 | 2022-03-31 08:36:48 | [diff] [blame] | 74 | deps = [ |
| 75 | "../api:array_view", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 76 | "../rtc_base:stringutils", |
Ali Tofigh | fd6a4d6 | 2022-03-31 08:36:48 | [diff] [blame] | 77 | ] |
| 78 | absl_deps = [ "//third_party/abseil-cpp/absl/strings:strings" ] |
Niels Möller | 9862c2e | 2018-10-30 11:20:03 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | if (rtc_include_tests) { |
| 82 | rtc_test("examples_unittests") { |
| 83 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 84 | sources = [ "turnserver/read_auth_file_unittest.cc" ] |
Niels Möller | 9862c2e | 2018-10-30 11:20:03 | [diff] [blame] | 85 | deps = [ |
| 86 | ":read_auth_file", |
| 87 | "../test:test_main", |
| 88 | "//test:test_support", |
| 89 | "//testing/gtest", |
| 90 | ] |
| 91 | } |
| 92 | } |
| 93 | |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 94 | if (is_android) { |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 | [diff] [blame] | 95 | rtc_android_apk("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 96 | testonly = true |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 97 | apk_name = "AppRTCMobile" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 98 | android_manifest = "androidapp/AndroidManifest.xml" |
Jeremy Leconte | b19cfee | 2020-06-25 20:57:49 | [diff] [blame] | 99 | min_sdk_version = 21 |
Yaowen Guo | 9406c22 | 2022-05-25 23:39:36 | [diff] [blame] | 100 | target_sdk_version = 31 |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 101 | |
| 102 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 103 | ":AppRTCMobile_javalib", |
| 104 | ":AppRTCMobile_resources", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 105 | "../rtc_base:base_java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 106 | ] |
| 107 | |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 108 | shared_libraries = [ "../sdk/android:libjingle_peerconnection_so" ] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 109 | } |
| 110 | |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 | [diff] [blame] | 111 | rtc_android_library("AppRTCMobile_javalib") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 112 | testonly = true |
Courtney Edwards | 35c87b6 | 2020-05-19 11:44:42 | [diff] [blame] | 113 | android_manifest = "androidapp/AndroidManifest.xml" |
sakal | 07a050f | 2017-02-13 13:58:27 | [diff] [blame] | 114 | |
Natalie Chouinard | 65bbcab | 2019-12-23 22:02:25 | [diff] [blame] | 115 | sources = [ |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 116 | "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java", |
henrika | c3c2f31 | 2016-12-14 15:36:56 | [diff] [blame] | 117 | "androidapp/src/org/appspot/apprtc/AppRTCBluetoothManager.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 118 | "androidapp/src/org/appspot/apprtc/AppRTCClient.java", |
| 119 | "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java", |
| 120 | "androidapp/src/org/appspot/apprtc/CallActivity.java", |
| 121 | "androidapp/src/org/appspot/apprtc/CallFragment.java", |
| 122 | "androidapp/src/org/appspot/apprtc/CaptureQualityController.java", |
| 123 | "androidapp/src/org/appspot/apprtc/ConnectActivity.java", |
| 124 | "androidapp/src/org/appspot/apprtc/CpuMonitor.java", |
| 125 | "androidapp/src/org/appspot/apprtc/DirectRTCClient.java", |
| 126 | "androidapp/src/org/appspot/apprtc/HudFragment.java", |
| 127 | "androidapp/src/org/appspot/apprtc/PeerConnectionClient.java", |
Natalie Chouinard | 65bbcab | 2019-12-23 22:02:25 | [diff] [blame] | 128 | "androidapp/src/org/appspot/apprtc/RecordedAudioToFileController.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 129 | "androidapp/src/org/appspot/apprtc/RoomParametersFetcher.java", |
Qingsi Wang | a4e72b7 | 2018-02-12 18:34:18 | [diff] [blame] | 130 | "androidapp/src/org/appspot/apprtc/RtcEventLog.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 131 | "androidapp/src/org/appspot/apprtc/SettingsActivity.java", |
| 132 | "androidapp/src/org/appspot/apprtc/SettingsFragment.java", |
| 133 | "androidapp/src/org/appspot/apprtc/TCPChannelClient.java", |
| 134 | "androidapp/src/org/appspot/apprtc/UnhandledExceptionHandler.java", |
| 135 | "androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java", |
| 136 | "androidapp/src/org/appspot/apprtc/WebSocketRTCClient.java", |
| 137 | "androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java", |
| 138 | "androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 139 | ] |
| 140 | |
Mohamed Heikal | 3f94fc5 | 2020-09-01 19:51:12 | [diff] [blame] | 141 | resources_package = "org.appspot.apprtc" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 142 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 143 | ":AppRTCMobile_resources", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 144 | "../rtc_base:base_java", |
Sami Kalliomäki | 7d8f594 | 2018-04-23 13:07:34 | [diff] [blame] | 145 | "../sdk/android:audio_api_java", |
Sami Kalliomäki | 725c106 | 2018-03-28 08:49:18 | [diff] [blame] | 146 | "../sdk/android:base_java", |
Sami Kalliomäki | 1641ca3 | 2018-04-04 13:59:31 | [diff] [blame] | 147 | "../sdk/android:camera_java", |
Anders Carlsson | 1e06d88 | 2018-07-10 07:33:30 | [diff] [blame] | 148 | "../sdk/android:default_video_codec_factory_java", |
Sami Kalliomäki | 1641ca3 | 2018-04-04 13:59:31 | [diff] [blame] | 149 | "../sdk/android:filevideo_java", |
Sami Kalliomäki | 725c106 | 2018-03-28 08:49:18 | [diff] [blame] | 150 | "../sdk/android:hwcodecs_java", |
Sami Kalliomäki | 7d8f594 | 2018-04-23 13:07:34 | [diff] [blame] | 151 | "../sdk/android:java_audio_device_module_java", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 152 | "../sdk/android:libjingle_peerconnection_java", |
| 153 | "../sdk/android:libjingle_peerconnection_metrics_default_java", |
Sami Kalliomäki | 1641ca3 | 2018-04-04 13:59:31 | [diff] [blame] | 154 | "../sdk/android:peerconnection_java", |
| 155 | "../sdk/android:screencapturer_java", |
| 156 | "../sdk/android:surfaceviewrenderer_java", |
Sami Kalliomäki | 725c106 | 2018-03-28 08:49:18 | [diff] [blame] | 157 | "../sdk/android:swcodecs_java", |
Sami Kalliomäki | 1641ca3 | 2018-04-04 13:59:31 | [diff] [blame] | 158 | "../sdk/android:video_api_java", |
Sami Kalliomäki | 903bd41 | 2018-07-24 08:53:28 | [diff] [blame] | 159 | "../sdk/android:video_java", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 160 | "androidapp/third_party/autobanh:autobanh_java", |
Byoungchan Lee | 02334e0 | 2021-08-14 02:41:59 | [diff] [blame] | 161 | "//third_party/androidx:androidx_annotation_annotation_java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 162 | ] |
| 163 | } |
| 164 | |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 165 | android_resources("AppRTCMobile_resources") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 166 | testonly = true |
Andrew Grieve | d4262df | 2020-03-25 16:59:50 | [diff] [blame] | 167 | sources = [ |
| 168 | "androidapp/res/drawable-hdpi/disconnect.png", |
| 169 | "androidapp/res/drawable-hdpi/ic_action_full_screen.png", |
| 170 | "androidapp/res/drawable-hdpi/ic_action_return_from_full_screen.png", |
| 171 | "androidapp/res/drawable-hdpi/ic_launcher.png", |
| 172 | "androidapp/res/drawable-hdpi/ic_loopback_call.png", |
| 173 | "androidapp/res/drawable-ldpi/disconnect.png", |
| 174 | "androidapp/res/drawable-ldpi/ic_action_full_screen.png", |
| 175 | "androidapp/res/drawable-ldpi/ic_action_return_from_full_screen.png", |
| 176 | "androidapp/res/drawable-ldpi/ic_launcher.png", |
| 177 | "androidapp/res/drawable-ldpi/ic_loopback_call.png", |
| 178 | "androidapp/res/drawable-mdpi/disconnect.png", |
| 179 | "androidapp/res/drawable-mdpi/ic_action_full_screen.png", |
| 180 | "androidapp/res/drawable-mdpi/ic_action_return_from_full_screen.png", |
| 181 | "androidapp/res/drawable-mdpi/ic_launcher.png", |
| 182 | "androidapp/res/drawable-mdpi/ic_loopback_call.png", |
| 183 | "androidapp/res/drawable-xhdpi/disconnect.png", |
| 184 | "androidapp/res/drawable-xhdpi/ic_action_full_screen.png", |
| 185 | "androidapp/res/drawable-xhdpi/ic_action_return_from_full_screen.png", |
| 186 | "androidapp/res/drawable-xhdpi/ic_launcher.png", |
| 187 | "androidapp/res/drawable-xhdpi/ic_loopback_call.png", |
| 188 | "androidapp/res/layout/activity_call.xml", |
| 189 | "androidapp/res/layout/activity_connect.xml", |
| 190 | "androidapp/res/layout/fragment_call.xml", |
| 191 | "androidapp/res/layout/fragment_hud.xml", |
| 192 | "androidapp/res/menu/connect_menu.xml", |
Andrew Grieve | d4262df | 2020-03-25 16:59:50 | [diff] [blame] | 193 | "androidapp/res/values-v17/styles.xml", |
| 194 | "androidapp/res/values-v21/styles.xml", |
Artem Titov | a4dfe24 | 2020-06-03 14:42:57 | [diff] [blame] | 195 | "androidapp/res/values/arrays.xml", |
| 196 | "androidapp/res/values/strings.xml", |
Andrew Grieve | d4262df | 2020-03-25 16:59:50 | [diff] [blame] | 197 | "androidapp/res/xml/preferences.xml", |
| 198 | ] |
Andrew Grieve | d4262df | 2020-03-25 16:59:50 | [diff] [blame] | 199 | |
| 200 | # Needed for Bazel converter. |
Mohamed Heikal | 3f94fc5 | 2020-09-01 19:51:12 | [diff] [blame] | 201 | custom_package = "org.appspot.apprtc" |
Andrew Grieve | d4262df | 2020-03-25 16:59:50 | [diff] [blame] | 202 | resource_dirs = [ "androidapp/res" ] |
| 203 | assert(resource_dirs != []) # Mark as used. |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 204 | } |
| 205 | |
Sami Kalliomäki | d54f5f5 | 2018-08-03 11:23:05 | [diff] [blame] | 206 | rtc_instrumentation_test_apk("AppRTCMobile_test_apk") { |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 207 | apk_name = "AppRTCMobileTest" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 208 | android_manifest = "androidtests/AndroidManifest.xml" |
Jeremy Leconte | b19cfee | 2020-06-25 20:57:49 | [diff] [blame] | 209 | min_sdk_version = 21 |
Yaowen Guo | 9406c22 | 2022-05-25 23:39:36 | [diff] [blame] | 210 | target_sdk_version = 31 |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 211 | |
Natalie Chouinard | 65bbcab | 2019-12-23 22:02:25 | [diff] [blame] | 212 | sources = [ |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 213 | "androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java", |
| 214 | ] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 215 | |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 216 | apk_under_test = ":AppRTCMobile" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 217 | |
| 218 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 219 | ":AppRTCMobile_javalib", |
Mirko Bonadei | 5e98742 | 2020-07-10 08:36:04 | [diff] [blame] | 220 | "../sdk/android:base_java", |
Artem Titov | a4dfe24 | 2020-06-03 14:42:57 | [diff] [blame] | 221 | "../sdk/android:camera_java", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 222 | "../sdk/android:libjingle_peerconnection_java", |
Artem Titov | a4dfe24 | 2020-06-03 14:42:57 | [diff] [blame] | 223 | "../sdk/android:peerconnection_java", |
| 224 | "../sdk/android:video_api_java", |
Sami Kalliomäki | 903bd41 | 2018-07-24 08:53:28 | [diff] [blame] | 225 | "../sdk/android:video_java", |
landrey | a3ff334 | 2023-04-04 12:39:37 | [diff] [blame] | 226 | "//third_party/androidx:androidx_test_monitor_java", |
Mirko Bonadei | 56c2406 | 2021-07-30 08:21:30 | [diff] [blame] | 227 | "//third_party/androidx:androidx_test_runner_java", |
sakal | cb79d51 | 2017-01-11 14:21:26 | [diff] [blame] | 228 | "//third_party/junit", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 229 | ] |
| 230 | } |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 231 | } |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 232 | |
| 233 | if (is_ios || (is_mac && target_cpu != "x86")) { |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 234 | config("apprtc_common_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 235 | include_dirs = [ "objc/AppRTCMobile/common" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 236 | } |
| 237 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 238 | rtc_library("apprtc_common") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 239 | testonly = true |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 240 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 241 | "objc/AppRTCMobile/common/ARDUtilities.h", |
| 242 | "objc/AppRTCMobile/common/ARDUtilities.m", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 243 | ] |
ehmaldonado | e9cc686 | 2016-09-05 13:10:18 | [diff] [blame] | 244 | public_configs = [ ":apprtc_common_config" ] |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 245 | deps = [ "../sdk:base_objc" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 246 | } |
| 247 | |
| 248 | config("apprtc_signaling_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 249 | include_dirs = [ "objc/AppRTCMobile" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 250 | } |
| 251 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 252 | rtc_library("apprtc_signaling") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 253 | testonly = true |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 254 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 255 | "objc/AppRTCMobile/ARDAppClient+Internal.h", |
| 256 | "objc/AppRTCMobile/ARDAppClient.h", |
| 257 | "objc/AppRTCMobile/ARDAppClient.m", |
| 258 | "objc/AppRTCMobile/ARDAppEngineClient.h", |
| 259 | "objc/AppRTCMobile/ARDAppEngineClient.m", |
sakal | c522e75 | 2017-04-05 19:17:48 | [diff] [blame] | 260 | "objc/AppRTCMobile/ARDCaptureController.h", |
| 261 | "objc/AppRTCMobile/ARDCaptureController.m", |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 262 | "objc/AppRTCMobile/ARDExternalSampleCapturer.h", |
| 263 | "objc/AppRTCMobile/ARDExternalSampleCapturer.m", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 264 | "objc/AppRTCMobile/ARDJoinResponse+Internal.h", |
| 265 | "objc/AppRTCMobile/ARDJoinResponse.h", |
| 266 | "objc/AppRTCMobile/ARDJoinResponse.m", |
| 267 | "objc/AppRTCMobile/ARDMessageResponse+Internal.h", |
| 268 | "objc/AppRTCMobile/ARDMessageResponse.h", |
| 269 | "objc/AppRTCMobile/ARDMessageResponse.m", |
| 270 | "objc/AppRTCMobile/ARDRoomServerClient.h", |
sakal | c4adacf | 2017-03-28 08:22:48 | [diff] [blame] | 271 | "objc/AppRTCMobile/ARDSettingsModel+Private.h", |
| 272 | "objc/AppRTCMobile/ARDSettingsModel.h", |
| 273 | "objc/AppRTCMobile/ARDSettingsModel.m", |
| 274 | "objc/AppRTCMobile/ARDSettingsStore.h", |
| 275 | "objc/AppRTCMobile/ARDSettingsStore.m", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 276 | "objc/AppRTCMobile/ARDSignalingChannel.h", |
| 277 | "objc/AppRTCMobile/ARDSignalingMessage.h", |
| 278 | "objc/AppRTCMobile/ARDSignalingMessage.m", |
| 279 | "objc/AppRTCMobile/ARDStatsBuilder.h", |
| 280 | "objc/AppRTCMobile/ARDStatsBuilder.m", |
kthelgason | cc882af | 2017-01-13 13:59:46 | [diff] [blame] | 281 | "objc/AppRTCMobile/ARDTURNClient+Internal.h", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 282 | "objc/AppRTCMobile/ARDTURNClient.h", |
kthelgason | cc882af | 2017-01-13 13:59:46 | [diff] [blame] | 283 | "objc/AppRTCMobile/ARDTURNClient.m", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 284 | "objc/AppRTCMobile/ARDWebSocketChannel.h", |
| 285 | "objc/AppRTCMobile/ARDWebSocketChannel.m", |
| 286 | "objc/AppRTCMobile/RTCIceCandidate+JSON.h", |
| 287 | "objc/AppRTCMobile/RTCIceCandidate+JSON.m", |
| 288 | "objc/AppRTCMobile/RTCIceServer+JSON.h", |
| 289 | "objc/AppRTCMobile/RTCIceServer+JSON.m", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 290 | "objc/AppRTCMobile/RTCSessionDescription+JSON.h", |
| 291 | "objc/AppRTCMobile/RTCSessionDescription+JSON.m", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 292 | ] |
ehmaldonado | e9cc686 | 2016-09-05 13:10:18 | [diff] [blame] | 293 | public_configs = [ ":apprtc_signaling_config" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 294 | deps = [ |
| 295 | ":apprtc_common", |
| 296 | ":socketrocket", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 297 | "../sdk:base_objc", |
| 298 | "../sdk:default_codec_factory_objc", |
| 299 | "../sdk:file_logger_objc", |
| 300 | "../sdk:helpers_objc", |
| 301 | "../sdk:mediaconstraints_objc", |
| 302 | "../sdk:peerconnectionfactory_base_objc", |
| 303 | "../sdk:videocapture_objc", |
| 304 | "../sdk:videoframebuffer_objc", |
| 305 | "../sdk:videosource_objc", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 306 | ] |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 307 | frameworks = [ |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 308 | "CoreMedia.framework", |
| 309 | "QuartzCore.framework", |
| 310 | ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 311 | } |
| 312 | |
| 313 | if (is_ios) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 314 | rtc_library("AppRTCMobile_lib") { |
Mirko Bonadei | cbaaaed | 2018-02-19 14:14:04 | [diff] [blame] | 315 | # iOS must use WebRTC.framework which is dynamically linked. |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 316 | testonly = true |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 317 | sources = [ |
Patrik Höglund | 49acb1e | 2018-01-02 13:41:54 | [diff] [blame] | 318 | "objc/AppRTCMobile/ios/ARDAppDelegate.h", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 319 | "objc/AppRTCMobile/ios/ARDAppDelegate.m", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 320 | "objc/AppRTCMobile/ios/ARDFileCaptureController.h", |
| 321 | "objc/AppRTCMobile/ios/ARDFileCaptureController.m", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 322 | "objc/AppRTCMobile/ios/ARDMainView.h", |
| 323 | "objc/AppRTCMobile/ios/ARDMainView.m", |
| 324 | "objc/AppRTCMobile/ios/ARDMainViewController.h", |
| 325 | "objc/AppRTCMobile/ios/ARDMainViewController.m", |
denicija | d17d536 | 2016-11-02 09:56:09 | [diff] [blame] | 326 | "objc/AppRTCMobile/ios/ARDSettingsViewController.h", |
| 327 | "objc/AppRTCMobile/ios/ARDSettingsViewController.m", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 328 | "objc/AppRTCMobile/ios/ARDStatsView.h", |
| 329 | "objc/AppRTCMobile/ios/ARDStatsView.m", |
| 330 | "objc/AppRTCMobile/ios/ARDVideoCallView.h", |
| 331 | "objc/AppRTCMobile/ios/ARDVideoCallView.m", |
| 332 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.h", |
| 333 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.m", |
Anders Carlsson | 6bf43d2 | 2017-10-16 11:51:43 | [diff] [blame] | 334 | "objc/AppRTCMobile/ios/RTCVideoCodecInfo+HumanReadable.h", |
| 335 | "objc/AppRTCMobile/ios/RTCVideoCodecInfo+HumanReadable.m", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 336 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.h", |
| 337 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m", |
denicija | 77bfd7c | 2016-11-15 08:41:26 | [diff] [blame] | 338 | ] |
denicija | 77bfd7c | 2016-11-15 08:41:26 | [diff] [blame] | 339 | |
Anders Carlsson | 96fccfe | 2019-02-21 15:11:40 | [diff] [blame] | 340 | configs += [ "..:common_objc" ] |
| 341 | |
denicija | 77bfd7c | 2016-11-15 08:41:26 | [diff] [blame] | 342 | deps = [ |
| 343 | ":apprtc_common", |
| 344 | ":apprtc_signaling", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 345 | "../sdk:audio_session_objc", |
| 346 | "../sdk:base_objc", |
| 347 | "../sdk:helpers_objc", |
| 348 | "../sdk:mediaconstraints_objc", |
Jake Bromberg | 28e582d | 2021-06-22 18:34:29 | [diff] [blame] | 349 | "../sdk:metal_objc", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 350 | "../sdk:peerconnectionfactory_base_objc", |
| 351 | "../sdk:peerconnectionfactory_base_objc", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 352 | "../sdk:videocapture_objc", |
| 353 | "../sdk:videocodec_objc", |
denicija | 77bfd7c | 2016-11-15 08:41:26 | [diff] [blame] | 354 | ] |
Kári Tristan Helgason | ba50cb3 | 2023-06-28 12:32:04 | [diff] [blame] | 355 | if (rtc_ios_use_opengl_rendering) { |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 356 | deps += [ "../sdk:opengl_ui_objc" ] |
| 357 | } |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 358 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 359 | frameworks = [ "AVFoundation.framework" ] |
denicija | 77bfd7c | 2016-11-15 08:41:26 | [diff] [blame] | 360 | } |
| 361 | |
| 362 | ios_app_bundle("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 363 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 364 | sources = [ "objc/AppRTCMobile/ios/main.m" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 365 | |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 366 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 367 | |
denicija | 77bfd7c | 2016-11-15 08:41:26 | [diff] [blame] | 368 | configs += [ "..:common_config" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 369 | public_configs = [ "..:common_inherited_config" ] |
| 370 | |
| 371 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 372 | ":AppRTCMobile_ios_bundle_data", |
denicija | 77bfd7c | 2016-11-15 08:41:26 | [diff] [blame] | 373 | ":AppRTCMobile_lib", |
Mirko Bonadei | 1a339c3 | 2017-12-14 12:06:10 | [diff] [blame] | 374 | "../sdk:framework_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 375 | "../sdk:ios_framework_bundle", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 376 | ] |
| 377 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 378 | if (rtc_apprtcmobile_broadcast_extension) { |
| 379 | deps += [ |
| 380 | ":AppRTCMobileBroadcastSetupUI_extension_bundle", |
| 381 | ":AppRTCMobileBroadcastUpload_extension_bundle", |
| 382 | ] |
| 383 | } |
| 384 | |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 385 | if (target_cpu == "x86") { |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 386 | deps += [ "//testing/iossim" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 387 | } |
| 388 | } |
| 389 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 390 | if (rtc_apprtcmobile_broadcast_extension) { |
| 391 | bundle_data("AppRTCMobileBroadcastUpload_extension_bundle") { |
| 392 | testonly = true |
Artem Titov | a4dfe24 | 2020-06-03 14:42:57 | [diff] [blame] | 393 | public_deps = [ # no-presubmit-check TODO(webrtc:8603) |
| 394 | ":AppRTCMobileBroadcastUpload", # prevent code format |
| 395 | ] |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 396 | sources = [ "$root_out_dir/AppRTCMobileBroadcastUpload.appex" ] |
| 397 | outputs = [ "{{bundle_contents_dir}}/Plugins/{{source_file_part}}" ] |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 398 | } |
| 399 | |
| 400 | bundle_data("AppRTCMobileBroadcastSetupUI_extension_bundle") { |
| 401 | testonly = true |
Artem Titov | a4dfe24 | 2020-06-03 14:42:57 | [diff] [blame] | 402 | public_deps = [ # no-presubmit-check TODO(webrtc:8603) |
| 403 | ":AppRTCMobileBroadcastSetupUI", # prevent code format |
| 404 | ] |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 405 | sources = [ "$root_out_dir/AppRTCMobileBroadcastSetupUI.appex" ] |
| 406 | outputs = [ "{{bundle_contents_dir}}/Plugins/{{source_file_part}}" ] |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 407 | } |
| 408 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 409 | rtc_library("AppRTCMobileBroadcastUpload_lib") { |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 410 | testonly = true |
| 411 | sources = [ |
| 412 | "objc/AppRTCMobile/ios/broadcast_extension/ARDBroadcastSampleHandler.h", |
| 413 | "objc/AppRTCMobile/ios/broadcast_extension/ARDBroadcastSampleHandler.m", |
| 414 | ] |
| 415 | |
| 416 | deps = [ |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 417 | ":apprtc_signaling", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 418 | "../sdk:framework_objc+link", |
| 419 | "../sdk:ios_framework_bundle", |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 420 | ] |
| 421 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 422 | frameworks = [ "ReplayKit.framework" ] |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 423 | } |
| 424 | |
| 425 | ios_appex_bundle("AppRTCMobileBroadcastUpload") { |
| 426 | testonly = true |
| 427 | configs += [ "..:common_config" ] |
| 428 | public_configs = [ "..:common_inherited_config" ] |
| 429 | |
| 430 | info_plist = "objc/AppRTCMobile/ios/broadcast_extension/BroadcastUploadInfo.plist" |
| 431 | |
| 432 | deps = [ |
| 433 | ":AppRTCMobileBroadcastUpload_lib", |
| 434 | "../sdk:framework_objc", |
| 435 | ] |
| 436 | } |
| 437 | |
| 438 | ios_appex_bundle("AppRTCMobileBroadcastSetupUI") { |
| 439 | sources = [ |
| 440 | "objc/AppRTCMobile/ios/broadcast_extension/ARDBroadcastSetupViewController.h", |
| 441 | "objc/AppRTCMobile/ios/broadcast_extension/ARDBroadcastSetupViewController.m", |
| 442 | ] |
| 443 | |
| 444 | info_plist = "objc/AppRTCMobile/ios/broadcast_extension/BroadcastSetupUIInfo.plist" |
| 445 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 446 | frameworks = [ "ReplayKit.framework" ] |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 447 | |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 448 | deps = [ ":AppRTCMobile_ios_bundle_data" ] |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 449 | } |
| 450 | } |
| 451 | |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 452 | bundle_data("AppRTCMobile_ios_bundle_data") { |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 453 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 454 | "objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 455 | |
| 456 | # Sample video taken from https://media.xiph.org/video/derf/ |
| 457 | "objc/AppRTCMobile/ios/resources/foreman.mp4", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 458 | "objc/AppRTCMobile/ios/resources/iPhone5@2x.png", |
| 459 | "objc/AppRTCMobile/ios/resources/iPhone6@2x.png", |
| 460 | "objc/AppRTCMobile/ios/resources/iPhone6p@3x.png", |
| 461 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp.png", |
| 462 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp@2x.png", |
| 463 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp.png", |
| 464 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp@2x.png", |
denicija | 6d6762c | 2016-10-28 11:53:16 | [diff] [blame] | 465 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp.png", |
| 466 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp@2x.png", |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 467 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp.png", |
| 468 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp@2x.png", |
| 469 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp.png", |
| 470 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp@2x.png", |
| 471 | "objc/AppRTCMobile/ios/resources/mozart.mp3", |
andersc | b5ed905 | 2017-08-15 11:07:12 | [diff] [blame] | 472 | "objc/Icon-120.png", |
| 473 | "objc/Icon-180.png", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 474 | "objc/Icon.png", |
| 475 | ] |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 476 | outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 477 | } |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 478 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 479 | rtc_library("ObjCNativeAPIDemo_lib") { |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 480 | testonly = true |
| 481 | sources = [ |
| 482 | "objcnativeapi/objc/NADAppDelegate.h", |
| 483 | "objcnativeapi/objc/NADAppDelegate.m", |
| 484 | "objcnativeapi/objc/NADViewController.h", |
| 485 | "objcnativeapi/objc/NADViewController.mm", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 486 | "objcnativeapi/objc/objc_call_client.h", |
| 487 | "objcnativeapi/objc/objc_call_client.mm", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 488 | ] |
| 489 | |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 490 | deps = [ |
| 491 | "../api:libjingle_peerconnection_api", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 492 | "../api:scoped_refptr", |
Florent Castelli | 8d4e9fb | 2022-04-04 15:18:21 | [diff] [blame] | 493 | "../api:sequence_checker", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 494 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 495 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Danil Chapovalov | 4ba04b7 | 2019-06-26 13:49:47 | [diff] [blame] | 496 | "../api/rtc_event_log:rtc_event_log_factory", |
Danil Chapovalov | aaa1143 | 2019-05-17 11:20:14 | [diff] [blame] | 497 | "../api/task_queue:default_task_queue_factory", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 498 | "../media:rtc_audio_video", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 499 | "../modules/audio_processing", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 | [diff] [blame] | 500 | "../modules/audio_processing:api", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 501 | "../pc:libjingle_peerconnection", |
Markus Handell | 06d034f | 2020-07-07 07:17:56 | [diff] [blame] | 502 | "../rtc_base/synchronization:mutex", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 503 | "../sdk:base_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 504 | "../sdk:default_codec_factory_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 505 | "../sdk:helpers_objc", |
Jake Bromberg | 28e582d | 2021-06-22 18:34:29 | [diff] [blame] | 506 | "../sdk:metal_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 507 | "../sdk:native_api", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 508 | "../sdk:videocapture_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 509 | "../sdk:videotoolbox_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 510 | ] |
| 511 | |
Kári Tristan Helgason | ba50cb3 | 2023-06-28 12:32:04 | [diff] [blame] | 512 | if (rtc_ios_use_opengl_rendering) { |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 513 | deps += [ "../sdk:opengl_ui_objc" ] |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 514 | } |
| 515 | } |
| 516 | |
| 517 | ios_app_bundle("ObjCNativeAPIDemo") { |
| 518 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 519 | sources = [ "objcnativeapi/objc/main.m" ] |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 520 | |
| 521 | info_plist = "objcnativeapi/Info.plist" |
| 522 | |
| 523 | configs += [ "..:common_config" ] |
| 524 | public_configs = [ "..:common_inherited_config" ] |
| 525 | |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 526 | deps = [ ":ObjCNativeAPIDemo_lib" ] |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 527 | |
| 528 | if (target_cpu == "x86") { |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 529 | deps += [ "//testing/iossim" ] |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 530 | } |
| 531 | } |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 532 | } |
| 533 | |
| 534 | if (is_mac) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 535 | rtc_library("AppRTCMobile_lib") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 536 | testonly = true |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 537 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 538 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.h", |
| 539 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.m", |
| 540 | "objc/AppRTCMobile/mac/APPRTCViewController.h", |
| 541 | "objc/AppRTCMobile/mac/APPRTCViewController.m", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 542 | ] |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 543 | configs += [ "..:common_objc" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 544 | deps = [ |
| 545 | ":apprtc_common", |
| 546 | ":apprtc_signaling", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 547 | "../sdk:base_objc", |
| 548 | "../sdk:helpers_objc", |
| 549 | "../sdk:mediaconstraints_objc", |
| 550 | "../sdk:metal_objc", |
| 551 | "../sdk:peerconnectionfactory_base_objc", |
| 552 | "../sdk:peerconnectionfactory_base_objc", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 553 | "../sdk:videocapture_objc", |
| 554 | "../sdk:videocodec_objc", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 555 | ] |
| 556 | } |
| 557 | |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 558 | mac_app_bundle("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 559 | testonly = true |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 560 | output_name = "AppRTCMobile" |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 561 | |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 562 | sources = [ "objc/AppRTCMobile/mac/main.m" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 563 | |
| 564 | public_configs = [ "..:common_inherited_config" ] |
| 565 | |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 566 | info_plist = "objc/AppRTCMobile/mac/Info.plist" |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 567 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 568 | frameworks = [ "AppKit.framework" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 569 | |
Anders Carlsson | 24d8ec3 | 2018-12-10 13:04:12 | [diff] [blame] | 570 | ldflags = [ |
| 571 | "-rpath", |
| 572 | "@executable_path/../Frameworks", |
| 573 | ] |
| 574 | |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 575 | deps = [ |
denicija | 77bfd7c | 2016-11-15 08:41:26 | [diff] [blame] | 576 | ":AppRTCMobile_lib", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 577 | "../sdk:mac_framework_bundle", |
| 578 | "../sdk:mac_framework_objc+link", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 579 | ] |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | config("socketrocket_include_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 584 | include_dirs = [ "objc/AppRTCMobile/third_party/SocketRocket" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 585 | } |
| 586 | |
| 587 | config("socketrocket_warning_config") { |
| 588 | # GN orders flags on a target before flags from configs. The default config |
| 589 | # adds these flags so to cancel them out they need to come from a config and |
| 590 | # cannot be on the target directly. |
| 591 | cflags = [ |
| 592 | "-Wno-deprecated-declarations", |
| 593 | "-Wno-nonnull", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 594 | "-Wno-semicolon-before-method-body", |
kthelgason | e47de1a | 2017-02-24 09:56:01 | [diff] [blame] | 595 | "-Wno-unused-variable", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 596 | ] |
| 597 | |
henrika | 27d8b61 | 2016-09-21 11:13:00 | [diff] [blame] | 598 | cflags_objc = [ |
| 599 | # Enabled for cflags_objc in build/config/compiler/BUILD.gn. |
| 600 | "-Wno-objc-missing-property-synthesis", |
henrika | 27d8b61 | 2016-09-21 11:13:00 | [diff] [blame] | 601 | ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 602 | } |
| 603 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 604 | rtc_library("socketrocket") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 605 | testonly = true |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 606 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 08:10:41 | [diff] [blame] | 607 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h", |
| 608 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 609 | ] |
kthelgason | c097710 | 2017-04-24 07:57:16 | [diff] [blame] | 610 | configs += [ ":socketrocket_warning_config" ] |
ehmaldonado | e9cc686 | 2016-09-05 13:10:18 | [diff] [blame] | 611 | public_configs = [ ":socketrocket_include_config" ] |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 612 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 613 | libs = [ "icucore" ] |
| 614 | frameworks = [ |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 615 | "CFNetwork.framework", |
Oleh Prypin | b3f78de | 2019-07-18 20:25:48 | [diff] [blame] | 616 | "Security.framework", |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 617 | ] |
| 618 | } |
adam.fedor | bcc5d87 | 2016-11-07 22:53:28 | [diff] [blame] | 619 | |
| 620 | if (rtc_include_tests) { |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 621 | # TODO(kthelgason): compile xctests on mac when chromium supports it. |
| 622 | if (is_ios) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 623 | rtc_library("apprtcmobile_test_sources") { |
Mirko Bonadei | cbaaaed | 2018-02-19 14:14:04 | [diff] [blame] | 624 | # iOS must use WebRTC.framework which is dynamically linked. |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 625 | testonly = true |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 626 | include_dirs = [ |
| 627 | "objc/AppRTCMobile", |
| 628 | "objc/AppRTCMobile/ios", |
| 629 | ] |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 630 | sources = [ |
| 631 | "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 632 | "objc/AppRTCMobile/tests/ARDFileCaptureController_xctest.mm", |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 633 | "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm", |
| 634 | ] |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 635 | deps = [ |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 636 | ":AppRTCMobile_lib", |
Mirko Bonadei | cbaaaed | 2018-02-19 14:14:04 | [diff] [blame] | 637 | ":apprtc_signaling", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 638 | "../rtc_base:ssl", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 639 | "../sdk:mediaconstraints_objc", |
| 640 | "../sdk:peerconnectionfactory_base_objc", |
| 641 | "../sdk:videocapture_objc", |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 642 | "//build/config/ios:xctest", |
| 643 | "//third_party/ocmock", |
| 644 | ] |
adam.fedor | bcc5d87 | 2016-11-07 22:53:28 | [diff] [blame] | 645 | } |
| 646 | |
Mirko Bonadei | aef8a21 | 2020-09-16 13:09:53 | [diff] [blame] | 647 | rtc_test("apprtcmobile_tests") { |
| 648 | is_xctest = true |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 649 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 650 | sources = [ "objc/AppRTCMobile/tests/main.mm" ] |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 651 | deps = [ |
Mirko Bonadei | cbaaaed | 2018-02-19 14:14:04 | [diff] [blame] | 652 | ":AppRTCMobile_lib", |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 653 | ":apprtcmobile_test_sources", |
Mirko Bonadei | 1a339c3 | 2017-12-14 12:06:10 | [diff] [blame] | 654 | "../sdk:framework_objc", |
Artem Titarenko | 34fc346 | 2018-11-06 11:29:29 | [diff] [blame] | 655 | "//test:test_support", |
kthelgason | 4065a576 | 2017-02-14 12:58:56 | [diff] [blame] | 656 | ] |
| 657 | ldflags = [ "-all_load" ] |
| 658 | } |
adam.fedor | bcc5d87 | 2016-11-07 22:53:28 | [diff] [blame] | 659 | } |
| 660 | } |
tkchin | 2ddfdba | 2016-08-08 04:37:45 | [diff] [blame] | 661 | } |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 662 | |
Hidehiko Abe | f264e70 | 2020-09-10 09:10:11 | [diff] [blame] | 663 | if (is_linux || is_chromeos || is_win) { |
Tom Anderson | 06e4fc5 | 2022-04-06 22:22:33 | [diff] [blame] | 664 | if (is_linux || is_chromeos) { |
| 665 | pkg_config("gtk_config") { |
| 666 | packages = [ |
| 667 | # Gtk requires gmodule, but it does not list it as a dependency in some |
| 668 | # misconfigured systems. |
| 669 | "gmodule-2.0", |
| 670 | "gthread-2.0", |
| 671 | "gtk+-3.0", |
| 672 | ] |
| 673 | } |
| 674 | } |
| 675 | |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 676 | rtc_executable("peerconnection_client") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 677 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 678 | sources = [ |
| 679 | "peerconnection/client/conductor.cc", |
| 680 | "peerconnection/client/conductor.h", |
| 681 | "peerconnection/client/defaults.cc", |
| 682 | "peerconnection/client/defaults.h", |
| 683 | "peerconnection/client/peer_connection_client.cc", |
| 684 | "peerconnection/client/peer_connection_client.h", |
| 685 | ] |
ehmaldonado | 7a2ce0b | 2016-09-05 08:35:44 | [diff] [blame] | 686 | |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 687 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 688 | "../api:audio_options_api", |
Mirko Bonadei | 2ff3f49 | 2018-11-22 08:00:13 | [diff] [blame] | 689 | "../api:create_peerconnection_factory", |
Mirko Bonadei | 34814c7 | 2018-01-11 09:13:56 | [diff] [blame] | 690 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 691 | "../api:media_stream_interface", |
Florent Castelli | acabb36 | 2022-10-18 15:05:16 | [diff] [blame] | 692 | "../api:rtp_sender_interface", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 693 | "../api:scoped_refptr", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 694 | "../api/audio:audio_mixer_api", |
| 695 | "../api/audio_codecs:audio_codecs_api", |
Danil Chapovalov | b9201b0 | 2022-08-17 15:12:29 | [diff] [blame] | 696 | "../api/task_queue:pending_task_safety_flag", |
| 697 | "../api/units:time_delta", |
Ilya Nikolaevskiy | 38e9b06 | 2020-10-08 14:36:33 | [diff] [blame] | 698 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 699 | "../api/video:video_rtp_headers", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 700 | "../api/video_codecs:video_codecs_api", |
Harald Alvestrand | 794d599 | 2022-12-16 09:54:57 | [diff] [blame] | 701 | "../media:media_channel", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 702 | "../media:rtc_media_base", |
| 703 | "../p2p:rtc_p2p", |
Harald Alvestrand | 445e6b0 | 2020-09-29 14:21:47 | [diff] [blame] | 704 | "../pc:video_track_source", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 705 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 706 | "../rtc_base:logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 707 | "../rtc_base:macromagic", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 708 | "../rtc_base:net_helpers", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 709 | "../rtc_base:refcount", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 710 | "../rtc_base:rtc_certificate_generator", |
| 711 | "../rtc_base:ssl", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 712 | "../rtc_base:stringutils", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 713 | "../rtc_base:threading", |
Artem Titov | e41c433 | 2018-07-25 13:04:28 | [diff] [blame] | 714 | "../rtc_base/third_party/sigslot", |
Bjorn Terelius | 3e67676 | 2018-10-29 14:26:27 | [diff] [blame] | 715 | "../system_wrappers:field_trial", |
| 716 | "../test:field_trial", |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 09:34:09 | [diff] [blame] | 717 | "../test:platform_video_capturer", |
Tommi | 25eb47c | 2019-08-29 14:39:05 | [diff] [blame] | 718 | "../test:rtp_test_utils", |
Niels Möller | b76be9a | 2018-12-20 15:28:23 | [diff] [blame] | 719 | "//third_party/abseil-cpp/absl/memory", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 720 | "//third_party/abseil-cpp/absl/types:optional", |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 721 | ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 722 | if (is_win) { |
| 723 | sources += [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 724 | "peerconnection/client/flag_defs.h", |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 725 | "peerconnection/client/main.cc", |
| 726 | "peerconnection/client/main_wnd.cc", |
| 727 | "peerconnection/client/main_wnd.h", |
| 728 | ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 729 | configs += [ "//build/config/win:windowed" ] |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 730 | deps += [ |
| 731 | "../media:rtc_media_base", |
| 732 | "../rtc_base:win32", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 733 | "../rtc_base:win32_socket_init", |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 734 | ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 735 | } |
Hidehiko Abe | f264e70 | 2020-09-10 09:10:11 | [diff] [blame] | 736 | if (is_linux || is_chromeos) { |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 737 | sources += [ |
| 738 | "peerconnection/client/linux/main.cc", |
| 739 | "peerconnection/client/linux/main_wnd.cc", |
| 740 | "peerconnection/client/linux/main_wnd.h", |
| 741 | ] |
Henrik Kjellander | efbde2c | 2017-03-27 06:28:27 | [diff] [blame] | 742 | cflags = [ "-Wno-deprecated-declarations" ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 743 | libs = [ |
| 744 | "X11", |
| 745 | "Xcomposite", |
| 746 | "Xext", |
| 747 | "Xrender", |
| 748 | ] |
Tom Anderson | 06e4fc5 | 2022-04-06 22:22:33 | [diff] [blame] | 749 | configs += [ ":gtk_config" ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 750 | } |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 751 | |
| 752 | deps += [ |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 753 | "../api:libjingle_peerconnection_api", |
Karl Wiberg | 1b0eae3 | 2017-10-17 12:48:54 | [diff] [blame] | 754 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 755 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 756 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 757 | "../api/video:video_rtp_headers", |
philipel | 2bac7ef | 2023-03-31 13:14:20 | [diff] [blame] | 758 | "../api/video_codecs:video_decoder_factory_template", |
| 759 | "../api/video_codecs:video_decoder_factory_template_dav1d_adapter", |
| 760 | "../api/video_codecs:video_decoder_factory_template_libvpx_vp8_adapter", |
| 761 | "../api/video_codecs:video_decoder_factory_template_libvpx_vp9_adapter", |
| 762 | "../api/video_codecs:video_decoder_factory_template_open_h264_adapter", |
| 763 | "../api/video_codecs:video_encoder_factory_template", |
| 764 | "../api/video_codecs:video_encoder_factory_template_libaom_av1_adapter", |
| 765 | "../api/video_codecs:video_encoder_factory_template_libvpx_vp8_adapter", |
| 766 | "../api/video_codecs:video_encoder_factory_template_libvpx_vp9_adapter", |
| 767 | "../api/video_codecs:video_encoder_factory_template_open_h264_adapter", |
Mirko Bonadei | 75baa49 | 2018-01-11 16:07:30 | [diff] [blame] | 768 | "../media:rtc_audio_video", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 769 | "../modules/audio_device", |
| 770 | "../modules/audio_processing", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 | [diff] [blame] | 771 | "../modules/audio_processing:api", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 772 | "../modules/video_capture:video_capture_module", |
| 773 | "../pc:libjingle_peerconnection", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 774 | "../rtc_base:rtc_json", |
Niels Möller | b76be9a | 2018-12-20 15:28:23 | [diff] [blame] | 775 | "../test:video_test_common", |
Mirko Bonadei | 0be40bf | 2019-07-16 16:40:05 | [diff] [blame] | 776 | "//third_party/abseil-cpp/absl/flags:flag", |
| 777 | "//third_party/abseil-cpp/absl/flags:parse", |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 778 | "//third_party/libyuv", |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 779 | ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 780 | } |
kjellander | d4626e5 | 2016-09-07 09:33:01 | [diff] [blame] | 781 | |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 782 | rtc_executable("peerconnection_server") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 783 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 784 | sources = [ |
| 785 | "peerconnection/server/data_socket.cc", |
| 786 | "peerconnection/server/data_socket.h", |
| 787 | "peerconnection/server/main.cc", |
| 788 | "peerconnection/server/peer_channel.cc", |
| 789 | "peerconnection/server/peer_channel.h", |
| 790 | "peerconnection/server/utils.cc", |
| 791 | "peerconnection/server/utils.h", |
| 792 | ] |
| 793 | deps = [ |
Mirko Bonadei | 25ab322 | 2021-07-08 18:08:20 | [diff] [blame] | 794 | "../rtc_base:checks", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 795 | "../rtc_base:stringutils", |
Bjorn Terelius | 3e67676 | 2018-10-29 14:26:27 | [diff] [blame] | 796 | "../system_wrappers:field_trial", |
| 797 | "../test:field_trial", |
Mirko Bonadei | 04cffe3 | 2019-06-25 13:43:23 | [diff] [blame] | 798 | "//third_party/abseil-cpp/absl/flags:flag", |
| 799 | "//third_party/abseil-cpp/absl/flags:parse", |
Mirko Bonadei | 76c89da | 2019-07-19 10:12:14 | [diff] [blame] | 800 | "//third_party/abseil-cpp/absl/flags:usage", |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 801 | ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 802 | } |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 803 | rtc_executable("turnserver") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 804 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 805 | sources = [ "turnserver/turnserver_main.cc" ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 806 | deps = [ |
Niels Möller | 9862c2e | 2018-10-30 11:20:03 | [diff] [blame] | 807 | ":read_auth_file", |
Niels Möller | a134204 | 2018-11-08 15:47:14 | [diff] [blame] | 808 | "../p2p:p2p_server_utils", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 809 | "../p2p:rtc_p2p", |
| 810 | "../pc:rtc_pc", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 811 | "../rtc_base:async_udp_socket", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 812 | "../rtc_base:ip_address", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 813 | "../rtc_base:socket_address", |
| 814 | "../rtc_base:socket_server", |
| 815 | "../rtc_base:threading", |
Ali Tofigh | de2ac5a | 2022-06-30 09:58:26 | [diff] [blame] | 816 | "//third_party/abseil-cpp/absl/strings:strings", |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 817 | ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 818 | } |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 819 | rtc_executable("stunserver") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 820 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 821 | sources = [ "stunserver/stunserver_main.cc" ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 822 | deps = [ |
Niels Möller | a134204 | 2018-11-08 15:47:14 | [diff] [blame] | 823 | "../p2p:p2p_server_utils", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 824 | "../p2p:rtc_p2p", |
| 825 | "../pc:rtc_pc", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 826 | "../rtc_base:async_udp_socket", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 827 | "../rtc_base:socket_address", |
| 828 | "../rtc_base:socket_server", |
| 829 | "../rtc_base:threading", |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 830 | ] |
kthelgason | 0727f15 | 2016-08-08 16:03:23 | [diff] [blame] | 831 | } |
| 832 | } |
charujain | aca3a24 | 2016-11-01 10:09:15 | [diff] [blame] | 833 | |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 834 | if (is_win || is_android) { |
gyzhou | ad7cad8 | 2017-05-11 23:10:03 | [diff] [blame] | 835 | rtc_shared_library("webrtc_unity_plugin") { |
| 836 | testonly = true |
| 837 | sources = [ |
| 838 | "unityplugin/simple_peer_connection.cc", |
| 839 | "unityplugin/simple_peer_connection.h", |
| 840 | "unityplugin/unity_plugin_apis.cc", |
| 841 | "unityplugin/unity_plugin_apis.h", |
gyzhou | b38f386 | 2017-07-25 23:04:31 | [diff] [blame] | 842 | "unityplugin/video_observer.cc", |
| 843 | "unityplugin/video_observer.h", |
gyzhou | ad7cad8 | 2017-05-11 23:10:03 | [diff] [blame] | 844 | ] |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 845 | |
| 846 | if (is_android) { |
| 847 | sources += [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 848 | "unityplugin/class_reference_holder.cc", |
| 849 | "unityplugin/class_reference_holder.h", |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 850 | "unityplugin/jni_onload.cc", |
| 851 | ] |
Qiang Chen | 43fb912 | 2017-12-20 18:47:36 | [diff] [blame] | 852 | suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 853 | } |
| 854 | |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 855 | if (is_win) { |
Mirko Bonadei | f957dd9 | 2018-07-11 08:47:42 | [diff] [blame] | 856 | configs += [ "//build/config/win:windowed" ] |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 857 | } |
gyzhou | ad7cad8 | 2017-05-11 23:10:03 | [diff] [blame] | 858 | deps = [ |
Mirko Bonadei | 2ff3f49 | 2018-11-22 08:00:13 | [diff] [blame] | 859 | "../api:create_peerconnection_factory", |
Mirko Bonadei | 34814c7 | 2018-01-11 09:13:56 | [diff] [blame] | 860 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 861 | "../api:media_stream_interface", |
Qiang Chen | 51e2046 | 2017-12-05 19:11:21 | [diff] [blame] | 862 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 863 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 864 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 865 | "../api/video:video_rtp_headers", |
Mirko Bonadei | 75baa49 | 2018-01-11 16:07:30 | [diff] [blame] | 866 | "../media:rtc_audio_video", |
Anders Carlsson | a114c88 | 2018-01-04 14:10:22 | [diff] [blame] | 867 | "../media:rtc_internal_video_codecs", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 868 | "../media:rtc_media", |
| 869 | "../media:rtc_media_base", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 870 | "../modules/audio_device", |
| 871 | "../modules/audio_processing", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 | [diff] [blame] | 872 | "../modules/audio_processing:api", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 873 | "../modules/video_capture:video_capture_module", |
| 874 | "../pc:libjingle_peerconnection", |
Harald Alvestrand | 445e6b0 | 2020-09-29 14:21:47 | [diff] [blame] | 875 | "../pc:video_track_source", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 876 | "../rtc_base:ssl", |
Kári Tristan Helgason | ede7cb2 | 2019-03-06 09:34:09 | [diff] [blame] | 877 | "../test:platform_video_capturer", |
Niels Möller | 0a59535 | 2019-01-02 14:12:38 | [diff] [blame] | 878 | "../test:video_test_common", |
Karl Wiberg | 918f50c | 2018-07-05 09:40:33 | [diff] [blame] | 879 | "//third_party/abseil-cpp/absl/memory", |
gyzhou | ad7cad8 | 2017-05-11 23:10:03 | [diff] [blame] | 880 | ] |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 881 | if (is_android) { |
George Zhou | 2770c3d | 2018-03-07 17:58:54 | [diff] [blame] | 882 | deps += [ |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 883 | "../modules/utility", |
George Zhou | 2770c3d | 2018-03-07 17:58:54 | [diff] [blame] | 884 | "../sdk/android:libjingle_peerconnection_jni", |
Yaowen Guo | 82cbae4 | 2022-05-17 08:10:15 | [diff] [blame] | 885 | "../sdk/android:native_api_jni", |
George Zhou | 2770c3d | 2018-03-07 17:58:54 | [diff] [blame] | 886 | ] |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 887 | } |
| 888 | } |
| 889 | } |
| 890 | |
| 891 | if (is_android) { |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 | [diff] [blame] | 892 | rtc_android_library("webrtc_unity_java") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 893 | sources = [ "unityplugin/java/src/org/webrtc/UnityUtility.java" ] |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 894 | deps = [ |
| 895 | "../rtc_base:base_java", |
Artem Titarenko | 69540f4 | 2018-12-10 11:30:46 | [diff] [blame] | 896 | "../sdk/android:camera_java", |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 897 | "../sdk/android:libjingle_peerconnection_java", |
Artem Titarenko | 69540f4 | 2018-12-10 11:30:46 | [diff] [blame] | 898 | "../sdk/android:peerconnection_java", |
Mirko Bonadei | 5e98742 | 2020-07-10 08:36:04 | [diff] [blame] | 899 | "../sdk/android:video_api_java", |
Artem Titarenko | 69540f4 | 2018-12-10 11:30:46 | [diff] [blame] | 900 | "../sdk/android:video_java", |
Byoungchan Lee | 02334e0 | 2021-08-14 02:41:59 | [diff] [blame] | 901 | "//third_party/androidx:androidx_annotation_annotation_java", |
qiangchen | 42f96d5 | 2017-08-09 00:08:03 | [diff] [blame] | 902 | ] |
| 903 | } |
| 904 | |
Christoffer Jansson | bbde8b6 | 2023-04-18 10:26:08 | [diff] [blame] | 905 | # TODO(https://bugs.webrtc.org/15095) - Fix or remove this target. |
| 906 | #dist_jar("libwebrtc_unity") { |
| 907 | # _target_dir_name = get_label_info(":$target_name", "dir") |
| 908 | # output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" |
| 909 | # direct_deps_only = false |
| 910 | # use_interface_jars = false |
| 911 | # use_unprocessed_jars = false |
| 912 | # requires_android = true |
| 913 | # deps = [ |
| 914 | # ":webrtc_unity_java", |
| 915 | # "../rtc_base:base_java", |
| 916 | # "../sdk/android:libjingle_peerconnection_java", |
| 917 | # "../sdk/android:libjingle_peerconnection_metrics_default_java", |
| 918 | # "//third_party/androidx:androidx_annotation_annotation_java", |
| 919 | # ] |
| 920 | #} |
Mirko Bonadei | 73aa2de | 2020-01-20 14:28:57 | [diff] [blame] | 921 | |
Mirko Bonadei | 9ea1ef6 | 2022-06-30 07:39:44 | [diff] [blame] | 922 | robolectric_binary("android_examples_junit_tests") { |
Mirko Bonadei | 73aa2de | 2020-01-20 14:28:57 | [diff] [blame] | 923 | sources = [ |
| 924 | "androidjunit/src/org/appspot/apprtc/BluetoothManagerTest.java", |
| 925 | "androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java", |
| 926 | "androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java", |
| 927 | ] |
| 928 | |
| 929 | deps = [ |
| 930 | ":AppRTCMobile_javalib", |
Artem Titov | a4dfe24 | 2020-06-03 14:42:57 | [diff] [blame] | 931 | "../sdk/android:peerconnection_java", |
Artem Titov | ebc563e | 2021-02-17 10:56:28 | [diff] [blame] | 932 | "//third_party/androidx:androidx_test_core_java", |
Mirko Bonadei | 73aa2de | 2020-01-20 14:28:57 | [diff] [blame] | 933 | "//third_party/google-truth:google_truth_java", |
| 934 | ] |
| 935 | |
| 936 | additional_jar_files = [ [ |
| 937 | "../sdk/android/tests/resources/robolectric.properties", |
| 938 | "robolectric.properties", |
| 939 | ] ] |
| 940 | } |
gyzhou | ad7cad8 | 2017-05-11 23:10:03 | [diff] [blame] | 941 | } |
| 942 | |
charujain | aca3a24 | 2016-11-01 10:09:15 | [diff] [blame] | 943 | if (!build_with_chromium) { |
| 944 | # Doesn't build within Chrome on Win. |
| 945 | rtc_executable("stun_prober") { |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 946 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 947 | sources = [ "stunprober/main.cc" ] |
charujain | aca3a24 | 2016-11-01 10:09:15 | [diff] [blame] | 948 | deps = [ |
| 949 | "../p2p:libstunprober", |
| 950 | "../p2p:rtc_p2p", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 951 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 952 | "../rtc_base:logging", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 953 | "../rtc_base:network", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 954 | "../rtc_base:socket_address", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 955 | "../rtc_base:ssl", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 956 | "../rtc_base:threading", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 957 | "../rtc_base:timeutils", |
Jonas Oreland | c06fe8b | 2022-03-28 12:58:26 | [diff] [blame] | 958 | "../test:scoped_key_value_config", |
Mirko Bonadei | 0be40bf | 2019-07-16 16:40:05 | [diff] [blame] | 959 | "//third_party/abseil-cpp/absl/flags:flag", |
| 960 | "//third_party/abseil-cpp/absl/flags:parse", |
charujain | aca3a24 | 2016-11-01 10:09:15 | [diff] [blame] | 961 | ] |
| 962 | } |
| 963 | } |