Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: webrtc/examples/BUILD.gn

Issue 2343403002: Rename AppRTCDemo on Android and iOS to AppRTCMobile (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/examples/androidapp/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 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 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 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 if (is_android) { 10 if (is_android) {
11 import("//build/config/android/config.gni") 11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni") 12 import("//build/config/android/rules.gni")
13 } else if (is_mac) { 13 } else if (is_mac) {
14 import("//build/config/mac/rules.gni") 14 import("//build/config/mac/rules.gni")
15 } else if (is_ios) { 15 } else if (is_ios) {
16 import("//build/config/ios/rules.gni") 16 import("//build/config/ios/rules.gni")
17 } 17 }
18 if (is_linux) { 18 if (is_linux) {
19 import("//build/config/linux/pkg_config.gni") 19 import("//build/config/linux/pkg_config.gni")
20 } 20 }
21 21
22 group("examples") { 22 group("examples") {
23 public_deps = [] 23 public_deps = []
24 24
25 if (is_android) { 25 if (is_android) {
26 public_deps += [ ":AppRTCDemo" ] 26 public_deps += [ ":AppRTCMobile" ]
27 } 27 }
28 if (is_linux) { 28 if (is_linux) {
29 public_deps += [ 29 public_deps += [
30 ":peerconnection_client", 30 ":peerconnection_client",
31 ":peerconnection_server", 31 ":peerconnection_server",
32 ":relayserver", 32 ":relayserver",
33 ":stunserver", 33 ":stunserver",
34 ":turnserver", 34 ":turnserver",
35 ] 35 ]
36 } 36 }
37 } 37 }
38 38
39 if (is_android) { 39 if (is_android) {
40 android_apk("AppRTCDemo") { 40 android_apk("AppRTCMobile") {
41 apk_name = "AppRTCDemo" 41 apk_name = "AppRTCMobile"
42 android_manifest = "androidapp/AndroidManifest.xml" 42 android_manifest = "androidapp/AndroidManifest.xml"
43 43
44 deps = [ 44 deps = [
45 ":AppRTCDemo_javalib", 45 ":AppRTCMobile_javalib",
46 ":AppRTCDemo_resources", 46 ":AppRTCMobile_resources",
47 "//base:base_java", 47 "//base:base_java",
48 "//webrtc/base:base_java", 48 "//webrtc/base:base_java",
49 ] 49 ]
50 50
51 shared_libraries = [ "//webrtc/api:libjingle_peerconnection_so" ] 51 shared_libraries = [ "//webrtc/api:libjingle_peerconnection_so" ]
52 } 52 }
53 53
54 android_library("AppRTCDemo_javalib") { 54 android_library("AppRTCMobile_javalib") {
55 java_files = [ 55 java_files = [
56 "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java", 56 "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java",
57 "androidapp/src/org/appspot/apprtc/AppRTCClient.java", 57 "androidapp/src/org/appspot/apprtc/AppRTCClient.java",
58 "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java", 58 "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java",
59 "androidapp/src/org/appspot/apprtc/CallActivity.java", 59 "androidapp/src/org/appspot/apprtc/CallActivity.java",
60 "androidapp/src/org/appspot/apprtc/CallFragment.java", 60 "androidapp/src/org/appspot/apprtc/CallFragment.java",
61 "androidapp/src/org/appspot/apprtc/CaptureQualityController.java", 61 "androidapp/src/org/appspot/apprtc/CaptureQualityController.java",
62 "androidapp/src/org/appspot/apprtc/ConnectActivity.java", 62 "androidapp/src/org/appspot/apprtc/ConnectActivity.java",
63 "androidapp/src/org/appspot/apprtc/CpuMonitor.java", 63 "androidapp/src/org/appspot/apprtc/CpuMonitor.java",
64 "androidapp/src/org/appspot/apprtc/DirectRTCClient.java", 64 "androidapp/src/org/appspot/apprtc/DirectRTCClient.java",
65 "androidapp/src/org/appspot/apprtc/HudFragment.java", 65 "androidapp/src/org/appspot/apprtc/HudFragment.java",
66 "androidapp/src/org/appspot/apprtc/PeerConnectionClient.java", 66 "androidapp/src/org/appspot/apprtc/PeerConnectionClient.java",
67 "androidapp/src/org/appspot/apprtc/PercentFrameLayout.java", 67 "androidapp/src/org/appspot/apprtc/PercentFrameLayout.java",
68 "androidapp/src/org/appspot/apprtc/RoomParametersFetcher.java", 68 "androidapp/src/org/appspot/apprtc/RoomParametersFetcher.java",
69 "androidapp/src/org/appspot/apprtc/SettingsActivity.java", 69 "androidapp/src/org/appspot/apprtc/SettingsActivity.java",
70 "androidapp/src/org/appspot/apprtc/SettingsFragment.java", 70 "androidapp/src/org/appspot/apprtc/SettingsFragment.java",
71 "androidapp/src/org/appspot/apprtc/TCPChannelClient.java", 71 "androidapp/src/org/appspot/apprtc/TCPChannelClient.java",
72 "androidapp/src/org/appspot/apprtc/UnhandledExceptionHandler.java", 72 "androidapp/src/org/appspot/apprtc/UnhandledExceptionHandler.java",
73 "androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java", 73 "androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java",
74 "androidapp/src/org/appspot/apprtc/WebSocketRTCClient.java", 74 "androidapp/src/org/appspot/apprtc/WebSocketRTCClient.java",
75 "androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java", 75 "androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java",
76 "androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java", 76 "androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java",
77 ] 77 ]
78 78
79 deps = [ 79 deps = [
80 ":AppRTCDemo_resources", 80 ":AppRTCMobile_resources",
81 "//webrtc/api:libjingle_peerconnection_java", 81 "//webrtc/api:libjingle_peerconnection_java",
82 "//webrtc/base:base_java", 82 "//webrtc/base:base_java",
83 "//webrtc/examples/androidapp/third_party/autobanh:autobanh_java", 83 "//webrtc/examples/androidapp/third_party/autobanh:autobanh_java",
84 ] 84 ]
85 } 85 }
86 86
87 android_resources("AppRTCDemo_resources") { 87 android_resources("AppRTCMobile_resources") {
88 resource_dirs = [ "androidapp/res" ] 88 resource_dirs = [ "androidapp/res" ]
89 custom_package = "org.appspot.apprtc" 89 custom_package = "org.appspot.apprtc"
90 } 90 }
91 91
92 instrumentation_test_apk("AppRTCDemoTest") { 92 instrumentation_test_apk("AppRTCMobileTest") {
93 apk_name = "AppRTCDemoTest" 93 apk_name = "AppRTCMobileTest"
94 android_manifest = "androidtests/AndroidManifest.xml" 94 android_manifest = "androidtests/AndroidManifest.xml"
95 95
96 java_files = [ "androidtests/src/org/appspot/apprtc/test/PeerConnectionClien tTest.java" ] 96 java_files = [ "androidtests/src/org/appspot/apprtc/test/PeerConnectionClien tTest.java" ]
97 97
98 apk_under_test = ":AppRTCDemo" 98 apk_under_test = ":AppRTCMobile"
99 99
100 deps = [ 100 deps = [
101 ":AppRTCDemo_javalib", 101 ":AppRTCMobile_javalib",
102 "//webrtc/api:libjingle_peerconnection_java", 102 "//webrtc/api:libjingle_peerconnection_java",
103 ] 103 ]
104 } 104 }
105 } 105 }
106 106
107 if (is_ios || (is_mac && target_cpu != "x86")) { 107 if (is_ios || (is_mac && target_cpu != "x86")) {
108 config("warnings_config") { 108 config("warnings_config") {
109 # GN orders flags on a target before flags from configs. The default config 109 # GN orders flags on a target before flags from configs. The default config
110 # adds these flags so to cancel them out they need to come from a config and 110 # adds these flags so to cancel them out they need to come from a config and
111 # cannot be on the target directly. 111 # cannot be on the target directly.
112 if (is_ios) { 112 if (is_ios) {
113 # Suppress compiler warnings about deprecated that triggered 113 # Suppress compiler warnings about deprecated that triggered
114 # when moving from ios_deployment_target 7.0 to 9.0. 114 # when moving from ios_deployment_target 7.0 to 9.0.
115 # See webrtc:5549 for more details. 115 # See webrtc:5549 for more details.
116 cflags = [ "-Wno-deprecated-declarations" ] 116 cflags = [ "-Wno-deprecated-declarations" ]
117 } 117 }
118 } 118 }
119 119
120 config("apprtc_common_config") { 120 config("apprtc_common_config") {
121 include_dirs = [ "objc/AppRTCDemo/common" ] 121 include_dirs = [ "objc/AppRTCMobile/common" ]
122 } 122 }
123 123
124 rtc_source_set("apprtc_common") { 124 rtc_source_set("apprtc_common") {
125 sources = [ 125 sources = [
126 "objc/AppRTCDemo/common/ARDUtilities.h", 126 "objc/AppRTCMobile/common/ARDUtilities.h",
127 "objc/AppRTCDemo/common/ARDUtilities.m", 127 "objc/AppRTCMobile/common/ARDUtilities.m",
128 ] 128 ]
129 configs += [ 129 configs += [
130 ":warnings_config", 130 ":warnings_config",
131 "//build/config/compiler:enable_arc", 131 "//build/config/compiler:enable_arc",
132 ] 132 ]
133 public_configs = [ ":apprtc_common_config" ] 133 public_configs = [ ":apprtc_common_config" ]
134 134
135 deps = [ 135 deps = [
136 "../sdk:rtc_sdk_common_objc", 136 "../sdk:rtc_sdk_common_objc",
137 "../system_wrappers:field_trial_default", 137 "../system_wrappers:field_trial_default",
138 "../system_wrappers:metrics_default", 138 "../system_wrappers:metrics_default",
139 ] 139 ]
140 } 140 }
141 141
142 config("apprtc_signaling_config") { 142 config("apprtc_signaling_config") {
143 include_dirs = [ "objc/AppRTCDemo" ] 143 include_dirs = [ "objc/AppRTCMobile" ]
144 144
145 # GN orders flags on a target before flags from configs. The default config 145 # GN orders flags on a target before flags from configs. The default config
146 # adds these flags so to cancel them out they need to come from a config and 146 # adds these flags so to cancel them out they need to come from a config and
147 # cannot be on the target directly. 147 # cannot be on the target directly.
148 cflags = [ 148 cflags = [
149 "-Wno-sign-compare", 149 "-Wno-sign-compare",
150 "-Wno-unused-variable", 150 "-Wno-unused-variable",
151 ] 151 ]
152 if (is_mac) { 152 if (is_mac) {
153 cflags += [ "-Wno-partial-availability" ] 153 cflags += [ "-Wno-partial-availability" ]
154 } 154 }
155 } 155 }
156 156
157 rtc_source_set("apprtc_signaling") { 157 rtc_source_set("apprtc_signaling") {
158 sources = [ 158 sources = [
159 "objc/AppRTCDemo/ARDAppClient+Internal.h", 159 "objc/AppRTCMobile/ARDAppClient+Internal.h",
160 "objc/AppRTCDemo/ARDAppClient.h", 160 "objc/AppRTCMobile/ARDAppClient.h",
161 "objc/AppRTCDemo/ARDAppClient.m", 161 "objc/AppRTCMobile/ARDAppClient.m",
162 "objc/AppRTCDemo/ARDAppEngineClient.h", 162 "objc/AppRTCMobile/ARDAppEngineClient.h",
163 "objc/AppRTCDemo/ARDAppEngineClient.m", 163 "objc/AppRTCMobile/ARDAppEngineClient.m",
164 "objc/AppRTCDemo/ARDBitrateTracker.h", 164 "objc/AppRTCMobile/ARDBitrateTracker.h",
165 "objc/AppRTCDemo/ARDBitrateTracker.m", 165 "objc/AppRTCMobile/ARDBitrateTracker.m",
166 "objc/AppRTCDemo/ARDCEODTURNClient.h", 166 "objc/AppRTCMobile/ARDCEODTURNClient.h",
167 "objc/AppRTCDemo/ARDCEODTURNClient.m", 167 "objc/AppRTCMobile/ARDCEODTURNClient.m",
168 "objc/AppRTCDemo/ARDJoinResponse+Internal.h", 168 "objc/AppRTCMobile/ARDJoinResponse+Internal.h",
169 "objc/AppRTCDemo/ARDJoinResponse.h", 169 "objc/AppRTCMobile/ARDJoinResponse.h",
170 "objc/AppRTCDemo/ARDJoinResponse.m", 170 "objc/AppRTCMobile/ARDJoinResponse.m",
171 "objc/AppRTCDemo/ARDMessageResponse+Internal.h", 171 "objc/AppRTCMobile/ARDMessageResponse+Internal.h",
172 "objc/AppRTCDemo/ARDMessageResponse.h", 172 "objc/AppRTCMobile/ARDMessageResponse.h",
173 "objc/AppRTCDemo/ARDMessageResponse.m", 173 "objc/AppRTCMobile/ARDMessageResponse.m",
174 "objc/AppRTCDemo/ARDRoomServerClient.h", 174 "objc/AppRTCMobile/ARDRoomServerClient.h",
175 "objc/AppRTCDemo/ARDSDPUtils.h", 175 "objc/AppRTCMobile/ARDSDPUtils.h",
176 "objc/AppRTCDemo/ARDSDPUtils.m", 176 "objc/AppRTCMobile/ARDSDPUtils.m",
177 "objc/AppRTCDemo/ARDSignalingChannel.h", 177 "objc/AppRTCMobile/ARDSignalingChannel.h",
178 "objc/AppRTCDemo/ARDSignalingMessage.h", 178 "objc/AppRTCMobile/ARDSignalingMessage.h",
179 "objc/AppRTCDemo/ARDSignalingMessage.m", 179 "objc/AppRTCMobile/ARDSignalingMessage.m",
180 "objc/AppRTCDemo/ARDStatsBuilder.h", 180 "objc/AppRTCMobile/ARDStatsBuilder.h",
181 "objc/AppRTCDemo/ARDStatsBuilder.m", 181 "objc/AppRTCMobile/ARDStatsBuilder.m",
182 "objc/AppRTCDemo/ARDTURNClient.h", 182 "objc/AppRTCMobile/ARDTURNClient.h",
183 "objc/AppRTCDemo/ARDWebSocketChannel.h", 183 "objc/AppRTCMobile/ARDWebSocketChannel.h",
184 "objc/AppRTCDemo/ARDWebSocketChannel.m", 184 "objc/AppRTCMobile/ARDWebSocketChannel.m",
185 "objc/AppRTCDemo/RTCIceCandidate+JSON.h", 185 "objc/AppRTCMobile/RTCIceCandidate+JSON.h",
186 "objc/AppRTCDemo/RTCIceCandidate+JSON.m", 186 "objc/AppRTCMobile/RTCIceCandidate+JSON.m",
187 "objc/AppRTCDemo/RTCIceServer+JSON.h", 187 "objc/AppRTCMobile/RTCIceServer+JSON.h",
188 "objc/AppRTCDemo/RTCIceServer+JSON.m", 188 "objc/AppRTCMobile/RTCIceServer+JSON.m",
189 "objc/AppRTCDemo/RTCMediaConstraints+JSON.h", 189 "objc/AppRTCMobile/RTCMediaConstraints+JSON.h",
190 "objc/AppRTCDemo/RTCMediaConstraints+JSON.m", 190 "objc/AppRTCMobile/RTCMediaConstraints+JSON.m",
191 "objc/AppRTCDemo/RTCSessionDescription+JSON.h", 191 "objc/AppRTCMobile/RTCSessionDescription+JSON.h",
192 "objc/AppRTCDemo/RTCSessionDescription+JSON.m", 192 "objc/AppRTCMobile/RTCSessionDescription+JSON.m",
193 ] 193 ]
194 configs += [ 194 configs += [
195 "//build/config/compiler:enable_arc", 195 "//build/config/compiler:enable_arc",
196 ":warnings_config", 196 ":warnings_config",
197 ] 197 ]
198 public_configs = [ ":apprtc_signaling_config" ] 198 public_configs = [ ":apprtc_signaling_config" ]
199 deps = [ 199 deps = [
200 ":apprtc_common", 200 ":apprtc_common",
201 ":socketrocket", 201 ":socketrocket",
202 ] 202 ]
203 public_deps = [ 203 public_deps = [
204 "../sdk:rtc_sdk_peerconnection_objc", 204 "../sdk:rtc_sdk_peerconnection_objc",
205 ] 205 ]
206 libs = [ "QuartzCore.framework" ] 206 libs = [ "QuartzCore.framework" ]
207 } 207 }
208 208
209 if (is_ios) { 209 if (is_ios) {
210 ios_app_bundle("AppRTCDemo") { 210 ios_app_bundle("AppRTCMobile") {
211 sources = [ 211 sources = [
212 "objc/AppRTCDemo/ios/ARDAppDelegate.m", 212 "objc/AppRTCMobile/ios/ARDAppDelegate.m",
213 "objc/AppRTCDemo/ios/ARDMainView.h", 213 "objc/AppRTCMobile/ios/ARDMainView.h",
214 "objc/AppRTCDemo/ios/ARDMainView.m", 214 "objc/AppRTCMobile/ios/ARDMainView.m",
215 "objc/AppRTCDemo/ios/ARDMainViewController.h", 215 "objc/AppRTCMobile/ios/ARDMainViewController.h",
216 "objc/AppRTCDemo/ios/ARDMainViewController.m", 216 "objc/AppRTCMobile/ios/ARDMainViewController.m",
217 "objc/AppRTCDemo/ios/ARDStatsView.h", 217 "objc/AppRTCMobile/ios/ARDStatsView.h",
218 "objc/AppRTCDemo/ios/ARDStatsView.m", 218 "objc/AppRTCMobile/ios/ARDStatsView.m",
219 "objc/AppRTCDemo/ios/ARDVideoCallView.h", 219 "objc/AppRTCMobile/ios/ARDVideoCallView.h",
220 "objc/AppRTCDemo/ios/ARDVideoCallView.m", 220 "objc/AppRTCMobile/ios/ARDVideoCallView.m",
221 "objc/AppRTCDemo/ios/ARDVideoCallViewController.h", 221 "objc/AppRTCMobile/ios/ARDVideoCallViewController.h",
222 "objc/AppRTCDemo/ios/ARDVideoCallViewController.m", 222 "objc/AppRTCMobile/ios/ARDVideoCallViewController.m",
223 "objc/AppRTCDemo/ios/AppRTCDemo-Prefix.pch", 223 "objc/AppRTCMobile/ios/AppRTCMobile-Prefix.pch",
224 "objc/AppRTCDemo/ios/UIImage+ARDUtilities.h", 224 "objc/AppRTCMobile/ios/UIImage+ARDUtilities.h",
225 "objc/AppRTCDemo/ios/UIImage+ARDUtilities.m", 225 "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m",
226 "objc/AppRTCDemo/ios/main.m", 226 "objc/AppRTCMobile/ios/main.m",
227 ] 227 ]
228 228
229 info_plist = "objc/AppRTCDemo/ios/Info.plist" 229 info_plist = "objc/AppRTCMobile/ios/Info.plist"
230 230
231 configs += [ 231 configs += [
232 "..:common_config", 232 "..:common_config",
233 "//build/config/compiler:enable_arc", 233 "//build/config/compiler:enable_arc",
234 ":warnings_config", 234 ":warnings_config",
235 ] 235 ]
236 public_configs = [ "..:common_inherited_config" ] 236 public_configs = [ "..:common_inherited_config" ]
237 237
238 deps = [ 238 deps = [
239 ":AppRTCDemo_ios_bundle_data", 239 ":AppRTCMobile_ios_bundle_data",
240 ":apprtc_common", 240 ":apprtc_common",
241 ":apprtc_signaling", 241 ":apprtc_signaling",
242 ] 242 ]
243 243
244 if (target_cpu == "x86") { 244 if (target_cpu == "x86") {
245 deps += [ "//testing/iossim:iossim" ] 245 deps += [ "//testing/iossim:iossim" ]
246 } 246 }
247 } 247 }
248 248
249 bundle_data("AppRTCDemo_ios_bundle_data") { 249 bundle_data("AppRTCMobile_ios_bundle_data") {
250 sources = [ 250 sources = [
251 "objc/AppRTCDemo/ios/resources/Roboto-Regular.ttf", 251 "objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf",
252 "objc/AppRTCDemo/ios/resources/iPhone5@2x.png", 252 "objc/AppRTCMobile/ios/resources/iPhone5@2x.png",
253 "objc/AppRTCDemo/ios/resources/iPhone6@2x.png", 253 "objc/AppRTCMobile/ios/resources/iPhone6@2x.png",
254 "objc/AppRTCDemo/ios/resources/iPhone6p@3x.png", 254 "objc/AppRTCMobile/ios/resources/iPhone6p@3x.png",
255 "objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp.png", 255 "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp.png",
256 "objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp@2x.png", 256 "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp@2x.png",
257 "objc/AppRTCDemo/ios/resources/ic_clear_black_24dp.png", 257 "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp.png",
258 "objc/AppRTCDemo/ios/resources/ic_clear_black_24dp@2x.png", 258 "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp@2x.png",
259 "objc/AppRTCDemo/ios/resources/ic_surround_sound_black_24dp.png", 259 "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp.png",
260 "objc/AppRTCDemo/ios/resources/ic_surround_sound_black_24dp@2x.png", 260 "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp@2x.png",
261 "objc/AppRTCDemo/ios/resources/ic_switch_video_black_24dp.png", 261 "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp.png",
262 "objc/AppRTCDemo/ios/resources/ic_switch_video_black_24dp@2x.png", 262 "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp@2x.png",
263 "objc/AppRTCDemo/ios/resources/mozart.mp3", 263 "objc/AppRTCMobile/ios/resources/mozart.mp3",
264 "objc/Icon.png", 264 "objc/Icon.png",
265 ] 265 ]
266 outputs = [ 266 outputs = [
267 "{{bundle_resources_dir}}/{{source_file_part}}", 267 "{{bundle_resources_dir}}/{{source_file_part}}",
268 ] 268 ]
269 } 269 }
270 } 270 }
271 271
272 if (is_mac) { 272 if (is_mac) {
273 rtc_source_set("AppRTCDemo_app") { 273 rtc_source_set("AppRTCMobile_app") {
274 sources = [ 274 sources = [
275 "objc/AppRTCDemo/mac/APPRTCAppDelegate.h", 275 "objc/AppRTCMobile/mac/APPRTCAppDelegate.h",
276 "objc/AppRTCDemo/mac/APPRTCAppDelegate.m", 276 "objc/AppRTCMobile/mac/APPRTCAppDelegate.m",
277 "objc/AppRTCDemo/mac/APPRTCViewController.h", 277 "objc/AppRTCMobile/mac/APPRTCViewController.h",
278 "objc/AppRTCDemo/mac/APPRTCViewController.m", 278 "objc/AppRTCMobile/mac/APPRTCViewController.m",
279 ] 279 ]
280 configs += [ 280 configs += [
281 "..:common_objc", 281 "..:common_objc",
282 "//build/config/compiler:enable_arc", 282 "//build/config/compiler:enable_arc",
283 ] 283 ]
284 deps = [ 284 deps = [
285 ":apprtc_common", 285 ":apprtc_common",
286 ":apprtc_signaling", 286 ":apprtc_signaling",
287 ] 287 ]
288 } 288 }
289 289
290 mac_app_bundle("AppRTCDemo") { 290 mac_app_bundle("AppRTCMobile") {
291 output_name = "AppRTCDemo" 291 output_name = "AppRTCMobile"
292 292
293 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.8" ] 293 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.8" ]
294 294
295 sources = [ 295 sources = [
296 "objc/AppRTCDemo/mac/main.m", 296 "objc/AppRTCMobile/mac/main.m",
297 ] 297 ]
298 298
299 public_configs = [ "..:common_inherited_config" ] 299 public_configs = [ "..:common_inherited_config" ]
300 300
301 info_plist = "objc/AppRTCDemo/mac/Info.plist" 301 info_plist = "objc/AppRTCMobile/mac/Info.plist"
302 302
303 libs = [ "AppKit.framework" ] 303 libs = [ "AppKit.framework" ]
304 304
305 deps = [ 305 deps = [
306 ":AppRTCDemo_app", 306 ":AppRTCMobile_app",
307 ] 307 ]
308 } 308 }
309 } 309 }
310 310
311 config("socketrocket_include_config") { 311 config("socketrocket_include_config") {
312 include_dirs = [ "objc/AppRTCDemo/third_party/SocketRocket" ] 312 include_dirs = [ "objc/AppRTCMobile/third_party/SocketRocket" ]
313 } 313 }
314 314
315 config("socketrocket_warning_config") { 315 config("socketrocket_warning_config") {
316 # GN orders flags on a target before flags from configs. The default config 316 # GN orders flags on a target before flags from configs. The default config
317 # adds these flags so to cancel them out they need to come from a config and 317 # adds these flags so to cancel them out they need to come from a config and
318 # cannot be on the target directly. 318 # cannot be on the target directly.
319 cflags = [ 319 cflags = [
320 "-Wno-deprecated-declarations", 320 "-Wno-deprecated-declarations",
321 "-Wno-nonnull", 321 "-Wno-nonnull",
322 "-Wno-objc-missing-property-synthesis", 322 "-Wno-objc-missing-property-synthesis",
(...skipping 10 matching lines...) Expand all
333 "-Wno-unused-result", 333 "-Wno-unused-result",
334 ] 334 ]
335 335
336 if (is_mac) { 336 if (is_mac) {
337 cflags += [ "-Wno-partial-availability" ] 337 cflags += [ "-Wno-partial-availability" ]
338 } 338 }
339 } 339 }
340 340
341 rtc_source_set("socketrocket") { 341 rtc_source_set("socketrocket") {
342 sources = [ 342 sources = [
343 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h", 343 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h",
344 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m", 344 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m",
345 ] 345 ]
346 configs += [ 346 configs += [
347 "//build/config/compiler:enable_arc", 347 "//build/config/compiler:enable_arc",
348 ":socketrocket_warning_config", 348 ":socketrocket_warning_config",
349 ] 349 ]
350 public_configs = [ ":socketrocket_include_config" ] 350 public_configs = [ ":socketrocket_include_config" ]
351 351
352 libs = [ 352 libs = [
353 "CFNetwork.framework", 353 "CFNetwork.framework",
354 "icucore", 354 "icucore",
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 "//webrtc/system_wrappers:field_trial_default", 512 "//webrtc/system_wrappers:field_trial_default",
513 "//webrtc/system_wrappers:metrics_default", 513 "//webrtc/system_wrappers:metrics_default",
514 ] 514 ]
515 if (is_clang) { 515 if (is_clang) {
516 # Suppress warnings from the Chromium Clang plugin. 516 # Suppress warnings from the Chromium Clang plugin.
517 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 517 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
518 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 518 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
519 } 519 }
520 } 520 }
521 } 521 }
OLDNEW
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/examples/androidapp/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698