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 |
(...skipping 26 matching lines...) Expand all Loading... |
37 export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_sim" | 37 export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_sim" |
38 export GYP_CROSSCOMPILE=1 | 38 export GYP_CROSSCOMPILE=1 |
39 } | 39 } |
40 | 40 |
41 function wrmac() { | 41 function wrmac() { |
42 wrbase | 42 wrbase |
43 export GYP_DEFINES="$GYP_DEFINES OS=mac target_subarch=arm64 target_arch=x64" | 43 export GYP_DEFINES="$GYP_DEFINES OS=mac target_subarch=arm64 target_arch=x64" |
44 export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_mac" | 44 export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_mac" |
45 } | 45 } |
46 | 46 |
47 - Finally, run "webrtc/build/gyp_webrtc" to generate ninja files. | 47 - Finally, run "webrtc/build/gyp_webrtc.py" to generate ninja files. |
48 | 48 |
49 Example of building & using the unittest & app: | 49 Example of building & using the unittest & app: |
50 | 50 |
51 - To build & run the unittest (must target mac): | 51 - To build & run the unittest (must target mac): |
52 wrmac && ./webrtc/build/gyp_webrtc && \ | 52 wrmac && ./webrtc/build/gyp_webrtc.py && \ |
53 ninja -C out_mac/Debug libjingle_peerconnection_objc_test && \ | 53 ninja -C out_mac/Debug libjingle_peerconnection_objc_test && \ |
54 ./out_mac/Debug/libjingle_peerconnection_objc_test.app/Contents/MacOS/libj
ingle_peerconnection_objc_test | 54 ./out_mac/Debug/libjingle_peerconnection_objc_test.app/Contents/MacOS/libj
ingle_peerconnection_objc_test |
55 | 55 |
56 - To build & launch the sample app on OSX: | 56 - To build & launch the sample app on OSX: |
57 wrmac && ./webrtc/build/gyp_webrtc && ninja -C out_mac/Debug AppRTCDemo && \ | 57 wrmac && ./webrtc/build/gyp_webrtc.py && ninja -C out_mac/Debug AppRTCDemo &&
\ |
58 ./out_mac/Debug/AppRTCDemo.app/Contents/MacOS/AppRTCDemo | 58 ./out_mac/Debug/AppRTCDemo.app/Contents/MacOS/AppRTCDemo |
59 | 59 |
60 - To build & launch the sample app on the iOS simulator: | 60 - To build & launch the sample app on the iOS simulator: |
61 wrsim && ./webrtc/build/gyp_webrtc && ninja -C out_sim/Debug iossim AppRTCDemo
&& \ | 61 wrsim && ./webrtc/build/gyp_webrtc.py && ninja -C out_sim/Debug iossim AppRTCD
emo && \ |
62 ./out_sim/Debug/iossim out_sim/Debug/AppRTCDemo.app | 62 ./out_sim/Debug/iossim out_sim/Debug/AppRTCDemo.app |
63 | 63 |
64 - 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): |
65 wrios32 && ./webrtc/build/gyp_webrtc && ninja -C out_ios/Debug-iphoneos AppRTC
Demo | 65 wrios32 && ./webrtc/build/gyp_webrtc.py && ninja -C out_ios/Debug-iphoneos App
RTCDemo |
66 | 66 |
67 - 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): |
68 wrios64 && ./webrtc/build/gyp_webrtc && ninja -C out_ios/Debug-iphoneos AppRTC
Demo | 68 wrios64 && ./webrtc/build/gyp_webrtc.py && ninja -C out_ios/Debug-iphoneos App
RTCDemo |
OLD | NEW |