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

Side by Side Diff: webrtc/webrtc_examples.gyp

Issue 1439593002: Remove webrtc/examples/android/media_demo. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove empty line Created 5 years, 1 month 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/libjingle_examples.gyp ('k') | no next file » | 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) 2012 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2012 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 'includes': ['build/common.gypi'], 9 'includes': [
10 'targets': [], 10 '../talk/build/common.gypi',
11 ],
12 'targets': [
13 {
14 'target_name': 'relayserver',
15 'type': 'executable',
16 'dependencies': [
17 '../talk/libjingle.gyp:libjingle',
18 '../talk/libjingle.gyp:libjingle_p2p',
19 ],
20 'sources': [
21 'examples/relayserver/relayserver_main.cc',
22 ],
23 }, # target relayserver
24 {
25 'target_name': 'stunserver',
26 'type': 'executable',
27 'dependencies': [
28 '../talk/libjingle.gyp:libjingle',
29 '../talk/libjingle.gyp:libjingle_p2p',
30 ],
31 'sources': [
32 'examples/stunserver/stunserver_main.cc',
33 ],
34 }, # target stunserver
35 {
36 'target_name': 'turnserver',
37 'type': 'executable',
38 'dependencies': [
39 '../talk/libjingle.gyp:libjingle',
40 '../talk/libjingle.gyp:libjingle_p2p',
41 ],
42 'sources': [
43 'examples/turnserver/turnserver_main.cc',
44 ],
45 }, # target turnserver
46 {
47 'target_name': 'peerconnection_server',
48 'type': 'executable',
49 'sources': [
50 'examples/peerconnection/server/data_socket.cc',
51 'examples/peerconnection/server/data_socket.h',
52 'examples/peerconnection/server/main.cc',
53 'examples/peerconnection/server/peer_channel.cc',
54 'examples/peerconnection/server/peer_channel.h',
55 'examples/peerconnection/server/utils.cc',
56 'examples/peerconnection/server/utils.h',
57 ],
58 'dependencies': [
59 '<(webrtc_root)/common.gyp:webrtc_common',
60 '../talk/libjingle.gyp:libjingle',
61 ],
62 # TODO(ronghuawu): crbug.com/167187 fix size_t to int truncations.
63 'msvs_disabled_warnings': [ 4309, ],
64 }, # target peerconnection_server
65 ],
11 'conditions': [ 66 'conditions': [
67 ['OS=="linux" or OS=="win"', {
68 'targets': [
69 {
70 'target_name': 'peerconnection_client',
71 'type': 'executable',
72 'sources': [
73 'examples/peerconnection/client/conductor.cc',
74 'examples/peerconnection/client/conductor.h',
75 'examples/peerconnection/client/defaults.cc',
76 'examples/peerconnection/client/defaults.h',
77 'examples/peerconnection/client/peer_connection_client.cc',
78 'examples/peerconnection/client/peer_connection_client.h',
79 ],
80 'dependencies': [
81 '../talk/libjingle.gyp:libjingle_peerconnection',
82 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa ult',
83 '<@(libjingle_tests_additional_deps)',
84 ],
85 'conditions': [
86 ['build_json==1', {
87 'dependencies': [
88 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
89 ],
90 }],
91 # TODO(ronghuawu): Move these files to a win/ directory then they
92 # can be excluded automatically.
93 ['OS=="win"', {
94 'sources': [
95 'examples/peerconnection/client/flagdefs.h',
96 'examples/peerconnection/client/main.cc',
97 'examples/peerconnection/client/main_wnd.cc',
98 'examples/peerconnection/client/main_wnd.h',
99 ],
100 'msvs_settings': {
101 'VCLinkerTool': {
102 'SubSystem': '2', # Windows
103 },
104 },
105 }], # OS=="win"
106 ['OS=="linux"', {
107 'sources': [
108 'examples/peerconnection/client/linux/main.cc',
109 'examples/peerconnection/client/linux/main_wnd.cc',
110 'examples/peerconnection/client/linux/main_wnd.h',
111 ],
112 'cflags': [
113 '<!@(pkg-config --cflags glib-2.0 gobject-2.0 gtk+-2.0)',
114 ],
115 'link_settings': {
116 'ldflags': [
117 '<!@(pkg-config --libs-only-L --libs-only-other glib-2.0'
118 ' gobject-2.0 gthread-2.0 gtk+-2.0)',
119 ],
120 'libraries': [
121 '<!@(pkg-config --libs-only-l glib-2.0 gobject-2.0'
122 ' gthread-2.0 gtk+-2.0)',
123 '-lX11',
124 '-lXcomposite',
125 '-lXext',
126 '-lXrender',
127 ],
128 },
129 }], # OS=="linux"
130 ], # conditions
131 }, # target peerconnection_client
132 ], # targets
133 }], # OS=="linux" or OS=="win"
134
135 ['OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.8")', {
136 'targets': [
137 {
138 'target_name': 'apprtc_common',
139 'type': 'static_library',
140 'dependencies': [
141 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa ult',
142 '../talk/libjingle.gyp:libjingle_peerconnection_objc',
143 ],
144 'sources': [
145 'examples/objc/AppRTCDemo/common/ARDUtilities.h',
146 'examples/objc/AppRTCDemo/common/ARDUtilities.m',
147 ],
148 'include_dirs': [
149 'examples/objc/AppRTCDemo/common',
150 ],
151 'direct_dependent_settings': {
152 'include_dirs': [
153 'examples/objc/AppRTCDemo/common',
154 ],
155 },
156 'conditions': [
157 ['OS=="mac"', {
158 'xcode_settings': {
159 'MACOSX_DEPLOYMENT_TARGET' : '10.8',
160 },
161 }],
162 ],
163 'link_settings': {
164 'xcode_settings': {
165 'OTHER_LDFLAGS': [
166 '-framework QuartzCore',
167 ],
168 },
169 },
170 },
171 {
172 'target_name': 'apprtc_signaling',
173 'type': 'static_library',
174 'dependencies': [
175 'apprtc_common',
176 '../talk/libjingle.gyp:libjingle_peerconnection_objc',
177 'socketrocket',
178 ],
179 'sources': [
180 'examples/objc/AppRTCDemo/ARDAppClient.h',
181 'examples/objc/AppRTCDemo/ARDAppClient.m',
182 'examples/objc/AppRTCDemo/ARDAppClient+Internal.h',
183 'examples/objc/AppRTCDemo/ARDAppEngineClient.h',
184 'examples/objc/AppRTCDemo/ARDAppEngineClient.m',
185 'examples/objc/AppRTCDemo/ARDBitrateTracker.h',
186 'examples/objc/AppRTCDemo/ARDBitrateTracker.m',
187 'examples/objc/AppRTCDemo/ARDCEODTURNClient.h',
188 'examples/objc/AppRTCDemo/ARDCEODTURNClient.m',
189 'examples/objc/AppRTCDemo/ARDJoinResponse.h',
190 'examples/objc/AppRTCDemo/ARDJoinResponse.m',
191 'examples/objc/AppRTCDemo/ARDJoinResponse+Internal.h',
192 'examples/objc/AppRTCDemo/ARDMessageResponse.h',
193 'examples/objc/AppRTCDemo/ARDMessageResponse.m',
194 'examples/objc/AppRTCDemo/ARDMessageResponse+Internal.h',
195 'examples/objc/AppRTCDemo/ARDRoomServerClient.h',
196 'examples/objc/AppRTCDemo/ARDSDPUtils.h',
197 'examples/objc/AppRTCDemo/ARDSDPUtils.m',
198 'examples/objc/AppRTCDemo/ARDSignalingChannel.h',
199 'examples/objc/AppRTCDemo/ARDSignalingMessage.h',
200 'examples/objc/AppRTCDemo/ARDSignalingMessage.m',
201 'examples/objc/AppRTCDemo/ARDStatsBuilder.h',
202 'examples/objc/AppRTCDemo/ARDStatsBuilder.m',
203 'examples/objc/AppRTCDemo/ARDTURNClient.h',
204 'examples/objc/AppRTCDemo/ARDWebSocketChannel.h',
205 'examples/objc/AppRTCDemo/ARDWebSocketChannel.m',
206 'examples/objc/AppRTCDemo/RTCICECandidate+JSON.h',
207 'examples/objc/AppRTCDemo/RTCICECandidate+JSON.m',
208 'examples/objc/AppRTCDemo/RTCICEServer+JSON.h',
209 'examples/objc/AppRTCDemo/RTCICEServer+JSON.m',
210 'examples/objc/AppRTCDemo/RTCMediaConstraints+JSON.h',
211 'examples/objc/AppRTCDemo/RTCMediaConstraints+JSON.m',
212 'examples/objc/AppRTCDemo/RTCSessionDescription+JSON.h',
213 'examples/objc/AppRTCDemo/RTCSessionDescription+JSON.m',
214 ],
215 'include_dirs': [
216 'examples/objc/AppRTCDemo',
217 ],
218 'direct_dependent_settings': {
219 'include_dirs': [
220 'examples/objc/AppRTCDemo',
221 ],
222 },
223 'export_dependent_settings': [
224 '../talk/libjingle.gyp:libjingle_peerconnection_objc',
225 ],
226 'conditions': [
227 ['OS=="mac"', {
228 'xcode_settings': {
229 'MACOSX_DEPLOYMENT_TARGET' : '10.8',
230 },
231 }],
232 ],
233 },
234 {
235 'target_name': 'AppRTCDemo',
236 'type': 'executable',
237 'product_name': 'AppRTCDemo',
238 'mac_bundle': 1,
239 'dependencies': [
240 'apprtc_common',
241 'apprtc_signaling',
242 ],
243 'conditions': [
244 ['OS=="ios"', {
245 'mac_bundle_resources': [
246 'examples/objc/AppRTCDemo/ios/resources/iPhone5@2x.png',
247 'examples/objc/AppRTCDemo/ios/resources/iPhone6@2x.png',
248 'examples/objc/AppRTCDemo/ios/resources/iPhone6p@3x.png',
249 'examples/objc/AppRTCDemo/ios/resources/Roboto-Regular.ttf',
250 'examples/objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp.p ng',
251 'examples/objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp@2 x.png',
252 'examples/objc/AppRTCDemo/ios/resources/ic_clear_black_24dp.png' ,
253 'examples/objc/AppRTCDemo/ios/resources/ic_clear_black_24dp@2x.p ng',
254 'examples/objc/AppRTCDemo/ios/resources/ic_switch_video_black_24 dp.png',
255 'examples/objc/AppRTCDemo/ios/resources/ic_switch_video_black_24 dp@2x.png',
256 'examples/objc/Icon.png',
257 ],
258 'sources': [
259 'examples/objc/AppRTCDemo/ios/ARDAppDelegate.h',
260 'examples/objc/AppRTCDemo/ios/ARDAppDelegate.m',
261 'examples/objc/AppRTCDemo/ios/ARDMainView.h',
262 'examples/objc/AppRTCDemo/ios/ARDMainView.m',
263 'examples/objc/AppRTCDemo/ios/ARDMainViewController.h',
264 'examples/objc/AppRTCDemo/ios/ARDMainViewController.m',
265 'examples/objc/AppRTCDemo/ios/ARDStatsView.h',
266 'examples/objc/AppRTCDemo/ios/ARDStatsView.m',
267 'examples/objc/AppRTCDemo/ios/ARDVideoCallView.h',
268 'examples/objc/AppRTCDemo/ios/ARDVideoCallView.m',
269 'examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.h',
270 'examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m',
271 'examples/objc/AppRTCDemo/ios/AppRTCDemo-Prefix.pch',
272 'examples/objc/AppRTCDemo/ios/UIImage+ARDUtilities.h',
273 'examples/objc/AppRTCDemo/ios/UIImage+ARDUtilities.m',
274 'examples/objc/AppRTCDemo/ios/main.m',
275 ],
276 'xcode_settings': {
277 'INFOPLIST_FILE': 'examples/objc/AppRTCDemo/ios/Info.plist',
278 },
279 }],
280 ['OS=="mac"', {
281 'sources': [
282 'examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.h',
283 'examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m',
284 'examples/objc/AppRTCDemo/mac/APPRTCViewController.h',
285 'examples/objc/AppRTCDemo/mac/APPRTCViewController.m',
286 'examples/objc/AppRTCDemo/mac/main.m',
287 ],
288 'xcode_settings': {
289 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO',
290 'INFOPLIST_FILE': 'examples/objc/AppRTCDemo/mac/Info.plist',
291 'MACOSX_DEPLOYMENT_TARGET' : '10.8',
292 'OTHER_LDFLAGS': [
293 '-framework AVFoundation',
294 ],
295 },
296 }],
297 ['target_arch=="ia32"', {
298 'dependencies' : [
299 '<(DEPTH)/testing/iossim/iossim.gyp:iossim#host',
300 ],
301 }],
302 ],
303 }, # target AppRTCDemo
304 {
305 # TODO(tkchin): move this into the real third party location and
306 # have it mirrored on chrome infra.
307 'target_name': 'socketrocket',
308 'type': 'static_library',
309 'sources': [
310 'examples/objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h',
311 'examples/objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m',
312 ],
313 'conditions': [
314 ['OS=="mac"', {
315 'xcode_settings': {
316 # SocketRocket autosynthesizes some properties. Disable the
317 # warning so we can compile successfully.
318 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO',
319 'MACOSX_DEPLOYMENT_TARGET' : '10.8',
320 # SRWebSocket.m uses code with partial availability.
321 # https://code.google.com/p/webrtc/issues/detail?id=4695
322 'WARNING_CFLAGS!': ['-Wpartial-availability'],
323 },
324 }],
325 ],
326 'direct_dependent_settings': {
327 'include_dirs': [
328 'examples/objc/AppRTCDemo/third_party/SocketRocket',
329 ],
330 },
331 'xcode_settings': {
332 'CLANG_ENABLE_OBJC_ARC': 'YES',
333 'WARNING_CFLAGS': [
334 '-Wno-deprecated-declarations',
335 ],
336 },
337 'link_settings': {
338 'xcode_settings': {
339 'OTHER_LDFLAGS': [
340 '-framework CFNetwork',
341 '-licucore',
342 ],
343 },
344 }
345 }, # target socketrocket
346 ], # targets
347 }], # OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.8")
348
12 ['OS=="android"', { 349 ['OS=="android"', {
13 'targets': [ 350 'targets': [
14 { 351 {
15 'target_name': 'libwebrtcdemo-jni', 352 'target_name': 'AppRTCDemo',
16 'type': 'loadable_module', 353 'type': 'none',
17 'dependencies': [ 354 'dependencies': [
18 '<(webrtc_root)/common.gyp:webrtc_common', 355 '../talk/libjingle.gyp:libjingle_peerconnection_java',
19 '<(webrtc_root)/modules/modules.gyp:video_render_module_internal_imp l',
20 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_ default',
21 '<(webrtc_root)/test/test.gyp:channel_transport',
22 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
23 ],
24 'sources': [
25 'examples/android/media_demo/jni/jni_helpers.cc',
26 'examples/android/media_demo/jni/on_load.cc',
27 'examples/android/media_demo/jni/voice_engine_jni.cc',
28 ], 356 ],
29 'variables': { 357 'variables': {
30 # This library uses native JNI exports; tell GYP so that the 358 'apk_name': 'AppRTCDemo',
31 # required symbols will be kept. 359 'java_in_dir': 'examples/androidapp',
32 'use_native_jni_exports': 1, 360 'has_java_resources': 1,
33 }, 361 'resource_dir': 'examples/androidapp/res',
34 'link_settings': { 362 'R_package': 'org.appspot.apprtc',
35 'libraries': [ 363 'R_package_relpath': 'org/appspot/apprtc',
36 '-llog', 364 'input_jars_paths': [
37 '-lGLESv2', 365 'examples/androidapp/third_party/autobanh/autobanh.jar',
38 '-lOpenSLES', 366 ],
39 ], 367 'library_dexed_jars_paths': [
40 } 368 'examples/androidapp/third_party/autobanh/autobanh.jar',
369 ],
370 'native_lib_target': 'libjingle_peerconnection_so',
371 'add_to_dependents_classpaths':1,
372 },
373 'includes': [ '../build/java_apk.gypi' ],
374 }, # target AppRTCDemo
375
376 {
377 # AppRTCDemo creates a .jar as a side effect. Any java targets
378 # that need that .jar in their classpath should depend on this target,
379 # AppRTCDemo_apk. Dependents of AppRTCDemo_apk receive its
380 # jar path in the variable 'apk_output_jar_path'.
381 # This target should only be used by targets which instrument
382 # AppRTCDemo_apk.
383 'target_name': 'AppRTCDemo_apk',
384 'type': 'none',
385 'dependencies': [
386 'AppRTCDemo',
387 ],
388 'includes': [ '../build/apk_fake_jar.gypi' ],
389 }, # target AppRTCDemo_apk
390
391 {
392 'target_name': 'AppRTCDemoTest',
393 'type': 'none',
394 'dependencies': [
395 'AppRTCDemo_apk',
396 ],
397 'variables': {
398 'apk_name': 'AppRTCDemoTest',
399 'java_in_dir': 'examples/androidtests',
400 'is_test_apk': 1,
401 },
402 'includes': [ '../build/java_apk.gypi' ],
41 }, 403 },
42 { 404 ], # targets
43 'target_name': 'WebRTCDemo', 405 }], # OS=="android"
44 'type': 'none',
45 'dependencies': [
46 'libwebrtcdemo-jni',
47 '<(modules_java_gyp_path):*',
48 ],
49 'actions': [
50 {
51 # TODO(yujie.mao): Convert building of the demo to a proper GYP
52 # target so this action is not needed once chromium's
53 # apk-building machinery can be used. (crbug.com/225101)
54 'action_name': 'build_webrtcdemo_apk',
55 'variables': {
56 'android_webrtc_demo_root': '<(webrtc_root)/examples/android/med ia_demo',
57 'ant_log': '../../../<(INTERMEDIATE_DIR)/ant.log', # ../../.. to compensate for the cd below.
58 },
59 'inputs' : [
60 '<(PRODUCT_DIR)/lib.java/audio_device_module_java.jar',
61 '<(PRODUCT_DIR)/libwebrtcdemo-jni.so',
62 '<!@(find <(android_webrtc_demo_root)/src -name "*.java")',
63 '<!@(find <(android_webrtc_demo_root)/res -type f)',
64 '<(android_webrtc_demo_root)/AndroidManifest.xml',
65 '<(android_webrtc_demo_root)/build.xml',
66 '<(android_webrtc_demo_root)/project.properties',
67 ],
68 'outputs': ['<(PRODUCT_DIR)/WebRTCDemo-debug.apk'],
69 'action': [
70 'bash', '-ec',
71 'rm -fr <(_outputs) <(android_webrtc_demo_root)/{bin,libs,gen,ob j} && '
72 'mkdir -p <(INTERMEDIATE_DIR) && ' # Must happen _before_ the cd below
73 'mkdir -p <(android_webrtc_demo_root)/libs/<(android_app_abi) && '
74 'cp <(PRODUCT_DIR)/lib.java/audio_device_module_java.jar <(andro id_webrtc_demo_root)/libs/ &&'
75 '<(android_strip) -o <(android_webrtc_demo_root)/libs/<(android_ app_abi)/libwebrtcdemo-jni.so <(PRODUCT_DIR)/libwebrtcdemo-jni.so && '
76 'cd <(android_webrtc_demo_root) && '
77 '{ ANDROID_SDK_ROOT=<(android_sdk_root) '
78 'ant debug > <(ant_log) 2>&1 || '
79 ' { cat <(ant_log) ; exit 1; } } && '
80 'cd - > /dev/null && '
81 'cp <(android_webrtc_demo_root)/bin/WebRTCDemo-debug.apk <(_outp uts)'
82 ],
83 },
84 ],
85 },
86 ],
87 }],
88 ], 406 ],
89 } 407 }
OLDNEW
« no previous file with comments | « webrtc/libjingle_examples.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698