OLD | NEW |
1 This directory contains the ObjectiveC implementation of the | 1 This directory contains the ObjectiveC implementation of the |
2 webrtc::PeerConnection API. This can be built for Mac or iOS. This | 2 webrtc::PeerConnection API. This can be built for Mac or iOS. This |
3 file describes building the API, unit test, and AppRTCDemo sample app. | 3 file describes building the API, unit test, and AppRTCDemo sample app. |
4 | 4 |
5 Prerequisites: | 5 Prerequisites: |
6 - Make sure gclient is checking out tools necessary to target iOS: your | 6 - Make sure gclient is checking out tools necessary to target iOS: your |
7 .gclient file should contain a line like: | 7 .gclient file should contain a line like: |
8 target_os = ['ios', 'mac'] | 8 target_os = ['ios', 'mac'] |
9 Make sure to re-run gclient sync after adding this to download the tools. | 9 Make sure to re-run gclient sync after adding this to download the tools. |
10 | 10 |
11 - Set up webrtc-related $GYP_DEFINES; example shell functions that set | 11 - Set up webrtc-related $GYP_DEFINES; example shell functions that set |
12 up for building for iOS-device, iOS-simulator, and Mac (resp) are: | 12 up for building for iOS-device, iOS-simulator, and Mac (resp) are: |
13 function wrbase() { | 13 function wrbase() { |
14 cd /path/to/webrtc/trunk | 14 cd /path/to/webrtc/src |
15 export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0" | |
16 export GYP_GENERATORS="ninja" | |
17 } | 15 } |
18 | 16 |
19 function wrios() { | 17 function wrios() { |
20 wrbase | 18 wrbase |
21 export GYP_DEFINES="$GYP_DEFINES OS=ios" | 19 export GYP_DEFINES="$GYP_DEFINES OS=ios" |
22 export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_ios" | 20 export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_ios" |
23 export GYP_CROSSCOMPILE=1 | 21 export GYP_CROSSCOMPILE=1 |
24 } | 22 } |
25 | 23 |
26 function wrios32() { | 24 function wrios32() { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 59 |
62 - To build & launch the sample app on the iOS simulator: | 60 - To build & launch the sample app on the iOS simulator: |
63 wrsim && ./webrtc/build/gyp_webrtc && ninja -C out_sim/Debug iossim AppRTCDemo
&& \ | 61 wrsim && ./webrtc/build/gyp_webrtc && ninja -C out_sim/Debug iossim AppRTCDemo
&& \ |
64 ./out_sim/Debug/iossim out_sim/Debug/AppRTCDemo.app | 62 ./out_sim/Debug/iossim out_sim/Debug/AppRTCDemo.app |
65 | 63 |
66 - To build & sign the sample app for an iOS device (32 bit): | 64 - To build & sign the sample app for an iOS device (32 bit): |
67 wrios32 && ./webrtc/build/gyp_webrtc && ninja -C out_ios/Debug-iphoneos AppRTC
Demo | 65 wrios32 && ./webrtc/build/gyp_webrtc && ninja -C out_ios/Debug-iphoneos AppRTC
Demo |
68 | 66 |
69 - To build & sign the sample app for an iOS device (64 bit): | 67 - To build & sign the sample app for an iOS device (64 bit): |
70 wrios64 && ./webrtc/build/gyp_webrtc && ninja -C out_ios/Debug-iphoneos AppRTC
Demo | 68 wrios64 && ./webrtc/build/gyp_webrtc && ninja -C out_ios/Debug-iphoneos AppRTC
Demo |
OLD | NEW |