Sami Kalliomaki | 1b868e3 | 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 | 90cc2a9 | 2017-01-24 14:58:22 | [diff] [blame] | 9 | import("../webrtc.gni") |
Sami Kalliomaki | 1b868e3 | 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") |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 13 | } else if (is_mac) { |
| 14 | import("//build/config/mac/rules.gni") |
| 15 | } else if (is_ios) { |
| 16 | import("//build/config/ios/rules.gni") |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | group("examples") { |
kjellander | 6702405 | 2016-10-28 12:44:03 | [diff] [blame] | 20 | # This target shall build all targets in examples. |
| 21 | testonly = true |
kjellander | 4c5e7eb | 2016-09-15 07:53:26 | [diff] [blame] | 22 | public_deps = [] |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 23 | |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 24 | if (is_android) { |
kjellander | 6702405 | 2016-10-28 12:44:03 | [diff] [blame] | 25 | public_deps += [ |
| 26 | ":AppRTCMobile", |
| 27 | ":AppRTCMobileTest", |
mandermo | 4b0d8ea | 2017-01-16 10:23:09 | [diff] [blame] | 28 | ":AppRTCMobileTestStubbedVideoIO", |
kjellander | 6702405 | 2016-10-28 12:44:03 | [diff] [blame] | 29 | ] |
| 30 | } |
| 31 | |
charujain | eceae88 | 2016-11-01 10:09:15 | [diff] [blame] | 32 | if (!build_with_chromium) { |
| 33 | public_deps += [ ":stun_prober" ] |
| 34 | } |
| 35 | |
kjellander | 6702405 | 2016-10-28 12:44:03 | [diff] [blame] | 36 | if (is_ios || (is_mac && target_cpu != "x86")) { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 37 | public_deps += [ ":AppRTCMobile" ] |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 38 | } |
kjellander | 6702405 | 2016-10-28 12:44:03 | [diff] [blame] | 39 | |
| 40 | if (is_linux || is_win) { |
kjellander | 4c5e7eb | 2016-09-15 07:53:26 | [diff] [blame] | 41 | public_deps += [ |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 42 | ":peerconnection_client", |
| 43 | ":peerconnection_server", |
| 44 | ":relayserver", |
| 45 | ":stunserver", |
| 46 | ":turnserver", |
| 47 | ] |
| 48 | } |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 49 | } |
| 50 | |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 51 | if (is_android) { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 52 | android_apk("AppRTCMobile") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 53 | testonly = true |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 54 | apk_name = "AppRTCMobile" |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 55 | android_manifest = "androidapp/AndroidManifest.xml" |
| 56 | |
| 57 | deps = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 58 | ":AppRTCMobile_javalib", |
| 59 | ":AppRTCMobile_resources", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 60 | "../rtc_base:base_java", |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 61 | "//base:base_java", |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 62 | ] |
| 63 | |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 64 | shared_libraries = [ "../sdk/android:libjingle_peerconnection_so" ] |
charujain | 9278d47 | 2017-08-25 13:21:52 | [diff] [blame] | 65 | |
| 66 | # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 |
| 67 | no_build_hooks = true |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 68 | } |
| 69 | |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 70 | android_library("AppRTCMobile_javalib") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 71 | testonly = true |
sakal | 1fc1feb | 2017-02-13 13:58:27 | [diff] [blame] | 72 | android_manifest = "androidapp/AndroidManifest.xml" |
| 73 | |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 74 | java_files = [ |
| 75 | "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java", |
henrika | f427d57 | 2016-12-14 15:36:56 | [diff] [blame] | 76 | "androidapp/src/org/appspot/apprtc/AppRTCBluetoothManager.java", |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 77 | "androidapp/src/org/appspot/apprtc/AppRTCClient.java", |
| 78 | "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java", |
| 79 | "androidapp/src/org/appspot/apprtc/CallActivity.java", |
| 80 | "androidapp/src/org/appspot/apprtc/CallFragment.java", |
| 81 | "androidapp/src/org/appspot/apprtc/CaptureQualityController.java", |
| 82 | "androidapp/src/org/appspot/apprtc/ConnectActivity.java", |
| 83 | "androidapp/src/org/appspot/apprtc/CpuMonitor.java", |
| 84 | "androidapp/src/org/appspot/apprtc/DirectRTCClient.java", |
| 85 | "androidapp/src/org/appspot/apprtc/HudFragment.java", |
| 86 | "androidapp/src/org/appspot/apprtc/PeerConnectionClient.java", |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 87 | "androidapp/src/org/appspot/apprtc/RoomParametersFetcher.java", |
| 88 | "androidapp/src/org/appspot/apprtc/SettingsActivity.java", |
| 89 | "androidapp/src/org/appspot/apprtc/SettingsFragment.java", |
| 90 | "androidapp/src/org/appspot/apprtc/TCPChannelClient.java", |
| 91 | "androidapp/src/org/appspot/apprtc/UnhandledExceptionHandler.java", |
| 92 | "androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java", |
| 93 | "androidapp/src/org/appspot/apprtc/WebSocketRTCClient.java", |
| 94 | "androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java", |
| 95 | "androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java", |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 96 | ] |
| 97 | |
| 98 | deps = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 99 | ":AppRTCMobile_resources", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 100 | "../modules/audio_device:audio_device_java", |
| 101 | "../rtc_base:base_java", |
| 102 | "../sdk/android:libjingle_peerconnection_java", |
| 103 | "../sdk/android:libjingle_peerconnection_metrics_default_java", |
| 104 | "androidapp/third_party/autobanh:autobanh_java", |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 105 | ] |
charujain | 9278d47 | 2017-08-25 13:21:52 | [diff] [blame] | 106 | |
| 107 | # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 |
| 108 | no_build_hooks = true |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 109 | } |
| 110 | |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 111 | android_resources("AppRTCMobile_resources") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 112 | testonly = true |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 113 | resource_dirs = [ "androidapp/res" ] |
| 114 | custom_package = "org.appspot.apprtc" |
| 115 | } |
| 116 | |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 117 | instrumentation_test_apk("AppRTCMobileTest") { |
| 118 | apk_name = "AppRTCMobileTest" |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 119 | android_manifest = "androidtests/AndroidManifest.xml" |
| 120 | |
sakal | b7d35ee | 2017-01-17 11:32:06 | [diff] [blame] | 121 | java_files = [ "androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java" ] |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 122 | |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 123 | apk_under_test = ":AppRTCMobile" |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 124 | |
| 125 | deps = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 126 | ":AppRTCMobile_javalib", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 127 | "../sdk/android:libjingle_peerconnection_java", |
sakal | 67ddadc | 2017-01-11 14:21:26 | [diff] [blame] | 128 | "//base:base_java_test_support", |
| 129 | "//third_party/android_support_test_runner:runner_java", |
| 130 | "//third_party/junit", |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 131 | ] |
charujain | 9278d47 | 2017-08-25 13:21:52 | [diff] [blame] | 132 | |
| 133 | # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 |
| 134 | no_build_hooks = true |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 135 | } |
mandermo | 4b0d8ea | 2017-01-16 10:23:09 | [diff] [blame] | 136 | |
| 137 | instrumentation_test_apk("AppRTCMobileTestStubbedVideoIO") { |
| 138 | apk_name = "AppRTCMobileTestStubbedVideoIO" |
| 139 | android_manifest = "androidtests/AndroidManifest.xml" |
| 140 | |
oprypin | 2e060d3 | 2017-04-24 11:15:13 | [diff] [blame] | 141 | java_files = [ "androidtests/src/org/appspot/apprtc/test/CallActivityStubbedInputOutputTest.java" ] |
mandermo | 4b0d8ea | 2017-01-16 10:23:09 | [diff] [blame] | 142 | |
| 143 | apk_under_test = ":AppRTCMobile" |
| 144 | |
| 145 | deps = [ |
| 146 | ":AppRTCMobile_javalib", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 147 | "../sdk/android:libjingle_peerconnection_java", |
mandermo | 4b0d8ea | 2017-01-16 10:23:09 | [diff] [blame] | 148 | "//third_party/android_support_test_runner:rules_java", |
| 149 | "//third_party/android_support_test_runner:runner_java", |
| 150 | "//third_party/espresso:espresso_all_java", |
| 151 | "//third_party/hamcrest:hamcrest_java", |
| 152 | "//third_party/junit", |
mandermo | 4b0d8ea | 2017-01-16 10:23:09 | [diff] [blame] | 153 | ] |
| 154 | |
| 155 | data = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 156 | "../../resources/reference_video_640x360_30fps.y4m", |
mandermo | 4b0d8ea | 2017-01-16 10:23:09 | [diff] [blame] | 157 | ] |
charujain | 9278d47 | 2017-08-25 13:21:52 | [diff] [blame] | 158 | |
| 159 | # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 |
| 160 | no_build_hooks = true |
mandermo | 4b0d8ea | 2017-01-16 10:23:09 | [diff] [blame] | 161 | } |
Sami Kalliomaki | 1b868e3 | 2016-06-29 12:55:00 | [diff] [blame] | 162 | } |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 163 | |
| 164 | if (is_ios || (is_mac && target_cpu != "x86")) { |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 165 | config("apprtc_common_config") { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 166 | include_dirs = [ "objc/AppRTCMobile/common" ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 167 | } |
| 168 | |
kjellander | 2cf29b5 | 2016-09-23 07:38:52 | [diff] [blame] | 169 | rtc_static_library("apprtc_common") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 170 | testonly = true |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 171 | sources = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 172 | "objc/AppRTCMobile/common/ARDUtilities.h", |
| 173 | "objc/AppRTCMobile/common/ARDUtilities.m", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 174 | ] |
ehmaldonado | 80e6692 | 2016-09-05 13:10:18 | [diff] [blame] | 175 | public_configs = [ ":apprtc_common_config" ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 176 | |
Kári Tristan Helgason | 72a186a | 2017-06-02 12:05:56 | [diff] [blame] | 177 | if (is_ios) { |
kthelgason | 8a0b62b | 2017-08-16 14:28:03 | [diff] [blame] | 178 | deps = [ |
| 179 | ":AppRTCMobile_ios_frameworks", |
| 180 | ] |
Kári Tristan Helgason | 72a186a | 2017-06-02 12:05:56 | [diff] [blame] | 181 | } else { |
kthelgason | 8a0b62b | 2017-08-16 14:28:03 | [diff] [blame] | 182 | deps = [ |
kthelgason | 171de35 | 2017-08-24 12:43:45 | [diff] [blame] | 183 | "../sdk:common_objc", |
kthelgason | 8a0b62b | 2017-08-16 14:28:03 | [diff] [blame] | 184 | "../system_wrappers:field_trial_default", |
| 185 | "../system_wrappers:metrics_default", |
| 186 | ] |
Kári Tristan Helgason | 72a186a | 2017-06-02 12:05:56 | [diff] [blame] | 187 | } |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | config("apprtc_signaling_config") { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 191 | include_dirs = [ "objc/AppRTCMobile" ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 192 | |
| 193 | # GN orders flags on a target before flags from configs. The default config |
| 194 | # adds these flags so to cancel them out they need to come from a config and |
| 195 | # cannot be on the target directly. |
| 196 | cflags = [ |
| 197 | "-Wno-sign-compare", |
| 198 | "-Wno-unused-variable", |
| 199 | ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 200 | } |
| 201 | |
kjellander | 2cf29b5 | 2016-09-23 07:38:52 | [diff] [blame] | 202 | rtc_static_library("apprtc_signaling") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 203 | testonly = true |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 204 | sources = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 205 | "objc/AppRTCMobile/ARDAppClient+Internal.h", |
| 206 | "objc/AppRTCMobile/ARDAppClient.h", |
| 207 | "objc/AppRTCMobile/ARDAppClient.m", |
| 208 | "objc/AppRTCMobile/ARDAppEngineClient.h", |
| 209 | "objc/AppRTCMobile/ARDAppEngineClient.m", |
| 210 | "objc/AppRTCMobile/ARDBitrateTracker.h", |
| 211 | "objc/AppRTCMobile/ARDBitrateTracker.m", |
sakal | 259e8c1 | 2017-04-05 19:17:48 | [diff] [blame] | 212 | "objc/AppRTCMobile/ARDCaptureController.h", |
| 213 | "objc/AppRTCMobile/ARDCaptureController.m", |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 214 | "objc/AppRTCMobile/ARDJoinResponse+Internal.h", |
| 215 | "objc/AppRTCMobile/ARDJoinResponse.h", |
| 216 | "objc/AppRTCMobile/ARDJoinResponse.m", |
| 217 | "objc/AppRTCMobile/ARDMessageResponse+Internal.h", |
| 218 | "objc/AppRTCMobile/ARDMessageResponse.h", |
| 219 | "objc/AppRTCMobile/ARDMessageResponse.m", |
| 220 | "objc/AppRTCMobile/ARDRoomServerClient.h", |
| 221 | "objc/AppRTCMobile/ARDSDPUtils.h", |
| 222 | "objc/AppRTCMobile/ARDSDPUtils.m", |
sakal | 49fb594 | 2017-03-28 08:22:48 | [diff] [blame] | 223 | "objc/AppRTCMobile/ARDSettingsModel+Private.h", |
| 224 | "objc/AppRTCMobile/ARDSettingsModel.h", |
| 225 | "objc/AppRTCMobile/ARDSettingsModel.m", |
| 226 | "objc/AppRTCMobile/ARDSettingsStore.h", |
| 227 | "objc/AppRTCMobile/ARDSettingsStore.m", |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 228 | "objc/AppRTCMobile/ARDSignalingChannel.h", |
| 229 | "objc/AppRTCMobile/ARDSignalingMessage.h", |
| 230 | "objc/AppRTCMobile/ARDSignalingMessage.m", |
| 231 | "objc/AppRTCMobile/ARDStatsBuilder.h", |
| 232 | "objc/AppRTCMobile/ARDStatsBuilder.m", |
kthelgason | e932552 | 2017-01-13 13:59:46 | [diff] [blame] | 233 | "objc/AppRTCMobile/ARDTURNClient+Internal.h", |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 234 | "objc/AppRTCMobile/ARDTURNClient.h", |
kthelgason | e932552 | 2017-01-13 13:59:46 | [diff] [blame] | 235 | "objc/AppRTCMobile/ARDTURNClient.m", |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 236 | "objc/AppRTCMobile/ARDWebSocketChannel.h", |
| 237 | "objc/AppRTCMobile/ARDWebSocketChannel.m", |
| 238 | "objc/AppRTCMobile/RTCIceCandidate+JSON.h", |
| 239 | "objc/AppRTCMobile/RTCIceCandidate+JSON.m", |
| 240 | "objc/AppRTCMobile/RTCIceServer+JSON.h", |
| 241 | "objc/AppRTCMobile/RTCIceServer+JSON.m", |
| 242 | "objc/AppRTCMobile/RTCMediaConstraints+JSON.h", |
| 243 | "objc/AppRTCMobile/RTCMediaConstraints+JSON.m", |
| 244 | "objc/AppRTCMobile/RTCSessionDescription+JSON.h", |
| 245 | "objc/AppRTCMobile/RTCSessionDescription+JSON.m", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 246 | ] |
ehmaldonado | 80e6692 | 2016-09-05 13:10:18 | [diff] [blame] | 247 | public_configs = [ ":apprtc_signaling_config" ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 248 | deps = [ |
| 249 | ":apprtc_common", |
| 250 | ":socketrocket", |
| 251 | ] |
Kári Tristan Helgason | 72a186a | 2017-06-02 12:05:56 | [diff] [blame] | 252 | if (is_ios) { |
| 253 | deps += [ ":AppRTCMobile_ios_frameworks" ] |
| 254 | } else { |
| 255 | public_deps = [ |
kthelgason | 171de35 | 2017-08-24 12:43:45 | [diff] [blame] | 256 | "../sdk:peerconnection_objc", |
Kári Tristan Helgason | 72a186a | 2017-06-02 12:05:56 | [diff] [blame] | 257 | ] |
| 258 | } |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 259 | libs = [ "QuartzCore.framework" ] |
| 260 | } |
| 261 | |
| 262 | if (is_ios) { |
denicija | 8de1842 | 2016-11-15 08:41:26 | [diff] [blame] | 263 | rtc_static_library("AppRTCMobile_lib") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 264 | testonly = true |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 265 | sources = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 266 | "objc/AppRTCMobile/ios/ARDAppDelegate.m", |
| 267 | "objc/AppRTCMobile/ios/ARDMainView.h", |
| 268 | "objc/AppRTCMobile/ios/ARDMainView.m", |
| 269 | "objc/AppRTCMobile/ios/ARDMainViewController.h", |
| 270 | "objc/AppRTCMobile/ios/ARDMainViewController.m", |
denicija | 7f9c312 | 2016-11-02 09:56:09 | [diff] [blame] | 271 | "objc/AppRTCMobile/ios/ARDSettingsViewController.h", |
| 272 | "objc/AppRTCMobile/ios/ARDSettingsViewController.m", |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 273 | "objc/AppRTCMobile/ios/ARDStatsView.h", |
| 274 | "objc/AppRTCMobile/ios/ARDStatsView.m", |
| 275 | "objc/AppRTCMobile/ios/ARDVideoCallView.h", |
| 276 | "objc/AppRTCMobile/ios/ARDVideoCallView.m", |
| 277 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.h", |
| 278 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.m", |
| 279 | "objc/AppRTCMobile/ios/AppRTCMobile-Prefix.pch", |
| 280 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.h", |
| 281 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m", |
denicija | 8de1842 | 2016-11-15 08:41:26 | [diff] [blame] | 282 | ] |
denicija | 8de1842 | 2016-11-15 08:41:26 | [diff] [blame] | 283 | |
| 284 | deps = [ |
Kári Tristan Helgason | 72a186a | 2017-06-02 12:05:56 | [diff] [blame] | 285 | ":AppRTCMobile_ios_frameworks", |
denicija | 8de1842 | 2016-11-15 08:41:26 | [diff] [blame] | 286 | ":apprtc_common", |
| 287 | ":apprtc_signaling", |
| 288 | ] |
| 289 | } |
| 290 | |
| 291 | ios_app_bundle("AppRTCMobile") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 292 | testonly = true |
denicija | 8de1842 | 2016-11-15 08:41:26 | [diff] [blame] | 293 | sources = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 294 | "objc/AppRTCMobile/ios/main.m", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 295 | ] |
| 296 | |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 297 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 298 | |
denicija | 8de1842 | 2016-11-15 08:41:26 | [diff] [blame] | 299 | configs += [ "..:common_config" ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 300 | public_configs = [ "..:common_inherited_config" ] |
| 301 | |
| 302 | deps = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 303 | ":AppRTCMobile_ios_bundle_data", |
kthelgason | cd2dced | 2017-01-26 09:14:04 | [diff] [blame] | 304 | ":AppRTCMobile_ios_frameworks", |
denicija | 8de1842 | 2016-11-15 08:41:26 | [diff] [blame] | 305 | ":AppRTCMobile_lib", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 306 | ] |
| 307 | |
| 308 | if (target_cpu == "x86") { |
| 309 | deps += [ "//testing/iossim:iossim" ] |
| 310 | } |
| 311 | } |
| 312 | |
kthelgason | cd2dced | 2017-01-26 09:14:04 | [diff] [blame] | 313 | bundle_data("AppRTCMobile_ios_frameworks") { |
| 314 | public_deps = [ |
kthelgason | 171de35 | 2017-08-24 12:43:45 | [diff] [blame] | 315 | "../sdk:framework_objc+link", |
kthelgason | cd2dced | 2017-01-26 09:14:04 | [diff] [blame] | 316 | ] |
| 317 | sources = [ |
| 318 | "$root_out_dir/WebRTC.framework", |
| 319 | ] |
| 320 | outputs = [ |
| 321 | "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}", |
| 322 | ] |
| 323 | } |
| 324 | |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 325 | bundle_data("AppRTCMobile_ios_bundle_data") { |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 326 | sources = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 327 | "objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf", |
| 328 | "objc/AppRTCMobile/ios/resources/iPhone5@2x.png", |
| 329 | "objc/AppRTCMobile/ios/resources/iPhone6@2x.png", |
| 330 | "objc/AppRTCMobile/ios/resources/iPhone6p@3x.png", |
| 331 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp.png", |
| 332 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp@2x.png", |
| 333 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp.png", |
| 334 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp@2x.png", |
denicija | 4ad018c | 2016-10-28 11:53:16 | [diff] [blame] | 335 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp.png", |
| 336 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp@2x.png", |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 337 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp.png", |
| 338 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp@2x.png", |
| 339 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp.png", |
| 340 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp@2x.png", |
| 341 | "objc/AppRTCMobile/ios/resources/mozart.mp3", |
andersc | abbd7d7 | 2017-08-15 11:07:12 | [diff] [blame] | 342 | "objc/Icon-120.png", |
| 343 | "objc/Icon-180.png", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 344 | "objc/Icon.png", |
| 345 | ] |
| 346 | outputs = [ |
| 347 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 348 | ] |
| 349 | } |
| 350 | } |
| 351 | |
| 352 | if (is_mac) { |
denicija | 8de1842 | 2016-11-15 08:41:26 | [diff] [blame] | 353 | rtc_static_library("AppRTCMobile_lib") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 354 | testonly = true |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 355 | sources = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 356 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.h", |
| 357 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.m", |
| 358 | "objc/AppRTCMobile/mac/APPRTCViewController.h", |
| 359 | "objc/AppRTCMobile/mac/APPRTCViewController.m", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 360 | ] |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 361 | configs += [ "..:common_objc" ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 362 | deps = [ |
| 363 | ":apprtc_common", |
| 364 | ":apprtc_signaling", |
kthelgason | 171de35 | 2017-08-24 12:43:45 | [diff] [blame] | 365 | "../sdk:ui_objc", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 366 | ] |
| 367 | } |
| 368 | |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 369 | mac_app_bundle("AppRTCMobile") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 370 | testonly = true |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 371 | output_name = "AppRTCMobile" |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 372 | |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 373 | sources = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 374 | "objc/AppRTCMobile/mac/main.m", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 375 | ] |
| 376 | |
| 377 | public_configs = [ "..:common_inherited_config" ] |
| 378 | |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 379 | info_plist = "objc/AppRTCMobile/mac/Info.plist" |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 380 | |
| 381 | libs = [ "AppKit.framework" ] |
| 382 | |
| 383 | deps = [ |
denicija | 8de1842 | 2016-11-15 08:41:26 | [diff] [blame] | 384 | ":AppRTCMobile_lib", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 385 | ] |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | config("socketrocket_include_config") { |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 390 | include_dirs = [ "objc/AppRTCMobile/third_party/SocketRocket" ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 391 | } |
| 392 | |
| 393 | config("socketrocket_warning_config") { |
| 394 | # GN orders flags on a target before flags from configs. The default config |
| 395 | # adds these flags so to cancel them out they need to come from a config and |
| 396 | # cannot be on the target directly. |
| 397 | cflags = [ |
| 398 | "-Wno-deprecated-declarations", |
| 399 | "-Wno-nonnull", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 400 | "-Wno-semicolon-before-method-body", |
kthelgason | 5c5ba7a | 2017-02-24 09:56:01 | [diff] [blame] | 401 | "-Wno-unused-variable", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 402 | ] |
| 403 | |
henrika | ae602ea | 2016-09-21 11:13:00 | [diff] [blame] | 404 | cflags_objc = [ |
| 405 | # Enabled for cflags_objc in build/config/compiler/BUILD.gn. |
| 406 | "-Wno-objc-missing-property-synthesis", |
henrika | ae602ea | 2016-09-21 11:13:00 | [diff] [blame] | 407 | ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 408 | } |
| 409 | |
kjellander | 2cf29b5 | 2016-09-23 07:38:52 | [diff] [blame] | 410 | rtc_static_library("socketrocket") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 411 | testonly = true |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 412 | sources = [ |
Magnus Jedvert | b502ce3 | 2016-09-27 08:10:41 | [diff] [blame] | 413 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h", |
| 414 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m", |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 415 | ] |
kthelgason | 9c585d4 | 2017-04-24 07:57:16 | [diff] [blame] | 416 | configs += [ ":socketrocket_warning_config" ] |
ehmaldonado | 80e6692 | 2016-09-05 13:10:18 | [diff] [blame] | 417 | public_configs = [ ":socketrocket_include_config" ] |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 418 | |
| 419 | libs = [ |
| 420 | "CFNetwork.framework", |
| 421 | "icucore", |
| 422 | ] |
| 423 | } |
adam.fedor | dc478c5 | 2016-11-07 22:53:28 | [diff] [blame] | 424 | |
| 425 | if (rtc_include_tests) { |
kthelgason | 75be462 | 2017-02-14 12:58:56 | [diff] [blame] | 426 | # TODO(kthelgason): compile xctests on mac when chromium supports it. |
| 427 | if (is_ios) { |
| 428 | rtc_source_set("apprtcmobile_test_sources") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 429 | testonly = true |
kthelgason | 75be462 | 2017-02-14 12:58:56 | [diff] [blame] | 430 | include_dirs = [ |
| 431 | "objc/AppRTCMobile", |
| 432 | "objc/AppRTCMobile/ios", |
| 433 | ] |
| 434 | testonly = true |
| 435 | sources = [ |
| 436 | "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm", |
| 437 | "objc/AppRTCMobile/tests/ARDSDPUtils_xctest.mm", |
| 438 | "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm", |
| 439 | ] |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 440 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 441 | "../rtc_base:rtc_base", |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 442 | ] |
kthelgason | 75be462 | 2017-02-14 12:58:56 | [diff] [blame] | 443 | public_deps = [ |
| 444 | ":AppRTCMobile_ios_frameworks", |
| 445 | ":AppRTCMobile_lib", |
| 446 | "//build/config/ios:xctest", |
| 447 | "//third_party/ocmock", |
| 448 | ] |
adam.fedor | dc478c5 | 2016-11-07 22:53:28 | [diff] [blame] | 449 | } |
| 450 | |
kthelgason | 75be462 | 2017-02-14 12:58:56 | [diff] [blame] | 451 | rtc_ios_xctest_test("apprtcmobile_tests") { |
| 452 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
| 453 | sources = [ |
| 454 | "objc/AppRTCMobile/ios/main.m", |
| 455 | ] |
| 456 | deps = [ |
| 457 | ":apprtcmobile_test_sources", |
| 458 | ] |
| 459 | ldflags = [ "-all_load" ] |
| 460 | } |
adam.fedor | dc478c5 | 2016-11-07 22:53:28 | [diff] [blame] | 461 | } |
| 462 | } |
tkchin | 78fe542 | 2016-08-08 04:37:45 | [diff] [blame] | 463 | } |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 464 | |
| 465 | if (is_linux || is_win) { |
ehmaldonado | 7eed79e | 2016-08-26 20:31:24 | [diff] [blame] | 466 | config("peerconnection_client_warnings_config") { |
kjellander | 7209af2 | 2016-09-18 15:12:29 | [diff] [blame] | 467 | cflags = [] |
ehmaldonado | 7eed79e | 2016-08-26 20:31:24 | [diff] [blame] | 468 | if (is_win && is_clang) { |
kjellander | 7209af2 | 2016-09-18 15:12:29 | [diff] [blame] | 469 | cflags += [ |
ehmaldonado | 7eed79e | 2016-08-26 20:31:24 | [diff] [blame] | 470 | # Disable warnings failing when compiling with Clang on Windows. |
| 471 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 472 | "-Wno-format", |
| 473 | |
| 474 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 |
| 475 | # for -Wno-reorder and -Wno-sign-compare |
| 476 | "-Wno-reorder", |
| 477 | "-Wno-sign-compare", |
| 478 | ] |
| 479 | } |
kjellander | c75068b | 2016-09-07 09:33:01 | [diff] [blame] | 480 | if (is_linux && target_cpu == "x86") { |
kjellander | 7209af2 | 2016-09-18 15:12:29 | [diff] [blame] | 481 | cflags += [ |
kjellander | c75068b | 2016-09-07 09:33:01 | [diff] [blame] | 482 | # Needed to compile on Linux 32-bit. |
| 483 | "-Wno-sentinel", |
| 484 | ] |
| 485 | } |
kjellander | 7209af2 | 2016-09-18 15:12:29 | [diff] [blame] | 486 | |
| 487 | if (is_clang) { |
| 488 | # TODO(ehmaldonado): Make peerconnection_client compile with the standard |
| 489 | # set of warnings. |
| 490 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6306 |
| 491 | cflags += [ "-Wno-inconsistent-missing-override" ] |
| 492 | } |
ehmaldonado | 7eed79e | 2016-08-26 20:31:24 | [diff] [blame] | 493 | } |
| 494 | |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 495 | rtc_executable("peerconnection_client") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 496 | testonly = true |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 497 | sources = [ |
| 498 | "peerconnection/client/conductor.cc", |
| 499 | "peerconnection/client/conductor.h", |
| 500 | "peerconnection/client/defaults.cc", |
| 501 | "peerconnection/client/defaults.h", |
| 502 | "peerconnection/client/peer_connection_client.cc", |
| 503 | "peerconnection/client/peer_connection_client.h", |
| 504 | ] |
ehmaldonado | 1d49219 | 2016-09-05 08:35:44 | [diff] [blame] | 505 | |
kjellander | a6c6623 | 2016-10-17 06:56:12 | [diff] [blame] | 506 | if (!build_with_chromium && is_clang) { |
| 507 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 508 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 509 | } |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 510 | deps = [] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 511 | if (is_win) { |
| 512 | sources += [ |
| 513 | "peerconnection/client/flagdefs.h", |
| 514 | "peerconnection/client/main.cc", |
| 515 | "peerconnection/client/main_wnd.cc", |
| 516 | "peerconnection/client/main_wnd.h", |
| 517 | ] |
| 518 | cflags = [ "/wd4245" ] |
| 519 | configs += [ "//build/config/win:windowed" ] |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 520 | deps += [ "../media:rtc_media_base" ] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 521 | } |
| 522 | if (is_linux) { |
| 523 | sources += [ |
| 524 | "peerconnection/client/linux/main.cc", |
| 525 | "peerconnection/client/linux/main_wnd.cc", |
| 526 | "peerconnection/client/linux/main_wnd.h", |
| 527 | ] |
Henrik Kjellander | 37c3830 | 2017-03-27 06:28:27 | [diff] [blame] | 528 | cflags = [ "-Wno-deprecated-declarations" ] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 529 | libs = [ |
| 530 | "X11", |
| 531 | "Xcomposite", |
| 532 | "Xext", |
| 533 | "Xrender", |
| 534 | ] |
thomasanderson | 4fefda7 | 2016-12-13 10:57:43 | [diff] [blame] | 535 | deps += [ "//build/config/linux/gtk" ] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 536 | } |
ehmaldonado | 7eed79e | 2016-08-26 20:31:24 | [diff] [blame] | 537 | configs += [ ":peerconnection_client_warnings_config" ] |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 538 | |
| 539 | deps += [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 540 | "../api:libjingle_peerconnection_test_api", |
| 541 | "../api:video_frame_api", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 542 | "../media:rtc_media", |
| 543 | "../modules/video_capture:video_capture_module", |
| 544 | "../pc:libjingle_peerconnection", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 545 | "../rtc_base:rtc_base", |
| 546 | "../rtc_base:rtc_base_approved", |
| 547 | "../rtc_base:rtc_json", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 548 | "../system_wrappers:field_trial_default", |
| 549 | "../system_wrappers:metrics_default", |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 550 | "//third_party/libyuv", |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 551 | ] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 552 | } |
kjellander | c75068b | 2016-09-07 09:33:01 | [diff] [blame] | 553 | |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 554 | rtc_executable("peerconnection_server") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 555 | testonly = true |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 556 | sources = [ |
| 557 | "peerconnection/server/data_socket.cc", |
| 558 | "peerconnection/server/data_socket.h", |
| 559 | "peerconnection/server/main.cc", |
| 560 | "peerconnection/server/peer_channel.cc", |
| 561 | "peerconnection/server/peer_channel.h", |
| 562 | "peerconnection/server/utils.cc", |
| 563 | "peerconnection/server/utils.h", |
| 564 | ] |
| 565 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 566 | "..:webrtc_common", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 567 | "../rtc_base:rtc_base_approved", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 568 | "../rtc_tools:command_line_parser", |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 569 | ] |
kjellander | a6c6623 | 2016-10-17 06:56:12 | [diff] [blame] | 570 | if (!build_with_chromium && is_clang) { |
| 571 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 572 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 573 | } |
| 574 | } |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 575 | rtc_executable("relayserver") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 576 | testonly = true |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 577 | sources = [ |
| 578 | "relayserver/relayserver_main.cc", |
| 579 | ] |
| 580 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 581 | "../p2p:rtc_p2p", |
| 582 | "../pc:rtc_pc", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 583 | "../rtc_base:rtc_base", |
| 584 | "../rtc_base:rtc_base_approved", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 585 | "../system_wrappers:field_trial_default", |
| 586 | "../system_wrappers:metrics_default", |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 587 | ] |
kjellander | a6c6623 | 2016-10-17 06:56:12 | [diff] [blame] | 588 | if (!build_with_chromium && is_clang) { |
| 589 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 590 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 591 | } |
| 592 | } |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 593 | rtc_executable("turnserver") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 594 | testonly = true |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 595 | sources = [ |
| 596 | "turnserver/turnserver_main.cc", |
| 597 | ] |
| 598 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 599 | "../p2p:rtc_p2p", |
| 600 | "../pc:rtc_pc", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 601 | "../rtc_base:rtc_base", |
| 602 | "../rtc_base:rtc_base_approved", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 603 | "../system_wrappers:field_trial_default", |
| 604 | "../system_wrappers:metrics_default", |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 605 | ] |
kjellander | a6c6623 | 2016-10-17 06:56:12 | [diff] [blame] | 606 | if (!build_with_chromium && is_clang) { |
| 607 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 608 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 609 | } |
| 610 | } |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 611 | rtc_executable("stunserver") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 612 | testonly = true |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 613 | sources = [ |
| 614 | "stunserver/stunserver_main.cc", |
| 615 | ] |
| 616 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 617 | "../p2p:rtc_p2p", |
| 618 | "../pc:rtc_pc", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 619 | "../rtc_base:rtc_base", |
| 620 | "../rtc_base:rtc_base_approved", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 621 | "../system_wrappers:field_trial_default", |
| 622 | "../system_wrappers:metrics_default", |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 623 | ] |
kjellander | a6c6623 | 2016-10-17 06:56:12 | [diff] [blame] | 624 | if (!build_with_chromium && is_clang) { |
| 625 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 626 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 7a5c2ac | 2016-08-08 16:03:23 | [diff] [blame] | 627 | } |
| 628 | } |
| 629 | } |
charujain | eceae88 | 2016-11-01 10:09:15 | [diff] [blame] | 630 | |
qiangchen | 4655c74 | 2017-08-09 00:08:03 | [diff] [blame] | 631 | if (is_win || is_android) { |
gyzhou | acce975 | 2017-05-11 23:10:03 | [diff] [blame] | 632 | rtc_shared_library("webrtc_unity_plugin") { |
| 633 | testonly = true |
| 634 | sources = [ |
| 635 | "unityplugin/simple_peer_connection.cc", |
| 636 | "unityplugin/simple_peer_connection.h", |
| 637 | "unityplugin/unity_plugin_apis.cc", |
| 638 | "unityplugin/unity_plugin_apis.h", |
gyzhou | 0538b61 | 2017-07-25 23:04:31 | [diff] [blame] | 639 | "unityplugin/video_observer.cc", |
| 640 | "unityplugin/video_observer.h", |
gyzhou | acce975 | 2017-05-11 23:10:03 | [diff] [blame] | 641 | ] |
qiangchen | 4655c74 | 2017-08-09 00:08:03 | [diff] [blame] | 642 | |
| 643 | if (is_android) { |
| 644 | sources += [ |
| 645 | "unityplugin/classreferenceholder.cc", |
| 646 | "unityplugin/classreferenceholder.h", |
| 647 | "unityplugin/jni_onload.cc", |
| 648 | ] |
| 649 | } |
| 650 | |
gyzhou | acce975 | 2017-05-11 23:10:03 | [diff] [blame] | 651 | if (!build_with_chromium && is_clang) { |
| 652 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 653 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 654 | } |
qiangchen | 4655c74 | 2017-08-09 00:08:03 | [diff] [blame] | 655 | if (is_win) { |
| 656 | cflags = [ "/wd4245" ] |
| 657 | configs += [ |
| 658 | "//build/config/win:windowed", |
| 659 | ":peerconnection_client_warnings_config", |
| 660 | ] |
| 661 | } |
gyzhou | acce975 | 2017-05-11 23:10:03 | [diff] [blame] | 662 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 663 | "../api:libjingle_peerconnection_test_api", |
| 664 | "../api:video_frame_api", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 665 | "../media:rtc_media", |
| 666 | "../media:rtc_media_base", |
| 667 | "../modules/video_capture:video_capture_module", |
| 668 | "../pc:libjingle_peerconnection", |
qiangchen | 4655c74 | 2017-08-09 00:08:03 | [diff] [blame] | 669 | "../rtc_base:rtc_base", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 670 | "../system_wrappers:field_trial_default", |
| 671 | "../system_wrappers:metrics_default", |
gyzhou | acce975 | 2017-05-11 23:10:03 | [diff] [blame] | 672 | ] |
qiangchen | 4655c74 | 2017-08-09 00:08:03 | [diff] [blame] | 673 | if (is_android) { |
| 674 | deps += [ "../sdk/android:libjingle_peerconnection_jni" ] |
| 675 | } |
| 676 | } |
| 677 | } |
| 678 | |
| 679 | if (is_android) { |
| 680 | android_library("webrtc_unity_java") { |
| 681 | java_files = [ "unityplugin/java/src/org/webrtc/UnityUtility.java" ] |
| 682 | deps = [ |
| 683 | "../rtc_base:base_java", |
| 684 | "../sdk/android:libjingle_peerconnection_java", |
| 685 | ] |
| 686 | } |
| 687 | |
| 688 | dist_jar("libwebrtc_unity") { |
| 689 | _target_dir_name = get_label_info(":$target_name", "dir") |
| 690 | output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" |
| 691 | direct_deps_only = true |
| 692 | use_interface_jars = false |
| 693 | deps = [ |
| 694 | ":webrtc_unity_java", |
| 695 | "../modules/audio_device:audio_device_java", |
| 696 | "../rtc_base:base_java", |
| 697 | "../sdk/android:libjingle_peerconnection_java", |
| 698 | "../sdk/android:libjingle_peerconnection_metrics_default_java", |
| 699 | ] |
gyzhou | acce975 | 2017-05-11 23:10:03 | [diff] [blame] | 700 | } |
| 701 | } |
| 702 | |
charujain | eceae88 | 2016-11-01 10:09:15 | [diff] [blame] | 703 | if (!build_with_chromium) { |
| 704 | # Doesn't build within Chrome on Win. |
| 705 | rtc_executable("stun_prober") { |
kjellander | fe8285d | 2017-03-06 08:29:21 | [diff] [blame] | 706 | testonly = true |
charujain | eceae88 | 2016-11-01 10:09:15 | [diff] [blame] | 707 | sources = [ |
| 708 | "stunprober/main.cc", |
| 709 | ] |
| 710 | |
| 711 | if (!build_with_chromium && is_clang) { |
| 712 | # Suppress warnings from Chrome's Clang plugins. |
| 713 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 714 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 715 | } |
| 716 | |
| 717 | deps = [ |
| 718 | "../p2p:libstunprober", |
| 719 | "../p2p:rtc_p2p", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 720 | "../rtc_base:rtc_base", |
| 721 | "../rtc_base:rtc_base_approved", |
charujain | eceae88 | 2016-11-01 10:09:15 | [diff] [blame] | 722 | "../system_wrappers:field_trial_default", |
| 723 | ] |
| 724 | } |
| 725 | } |