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

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