Last active
November 28, 2022 06:52
-
-
Save erichsu/31845ab80d64e5360467 to your computer and use it in GitHub Desktop.
WebRTC for Mobile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| cd /root | |
| export PATH=/root/depot_tools:$PATH \ | |
| export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 \ | |
| export GYP_DEFINES="OS=android" | |
| apt-get update && apt-get install -y openjdk-7-jdk git curl software-properties-common && \ | |
| add-apt-repository multiverse | |
| git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git && \ | |
| mkdir chromium && cd chromium | |
| fetch --nohooks webrtc_android && \ | |
| src/chromium/src/build/install-build-deps-android.sh && \ | |
| gclinet runhooks | |
| ninja -C out/Debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| cd ~/Developer/webrtc-ios | |
| export PATH=`pwd`/depot_tools:$PATH \ | |
| # export GYP_DEFINES="OS=ios target_arch=arm" | |
| # export GYP_GENERATOR_FLAGS="output_dir=out_ios" | |
| # export GYP_DEFINES="OS=ios target_arch=arm64" | |
| # export GYP_GENERATOR_FLAGS="output_dir=out_ios64" | |
| # export GYP_DEFINES="OS=ios target_arch=ia32" | |
| # export GYP_GENERATOR_FLAGS="output_dir=out_sim" | |
| # export GYP_DEFINES="OS=mac target_arch=x64" | |
| # export GYP_GENERATOR_FLAGS="output_dir=out_mac" | |
| export GYP_DEFINES="OS=ios target_arch=x64" | |
| # export GYP_GENERATOR_FLAGS="output_dir=out_sim" | |
| export GYP_GENERATOR_FLAGS="xcode_project_version=3.2 xcode_ninja_target_pattern=All_iOS xcode_ninja_executable_target_pattern=AppRTCDemo|libjingle_peerconnection_unittest|libjingle_peerconnection_objc_test output_dir=out_ios" | |
| # export GYP_GENERATOR_FLAGS="xcode_project_version=3.2 xcode_ninja_target_pattern=All_iOS xcode_ninja_executable_target_pattern=AppRTCDemo|libjingle_peerconnection_unittest|libjingle_peerconnection_objc_test output_dir=out_sim" | |
| export GYP_GENERATORS="ninja,xcode-ninja" | |
| git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git && \ | |
| fetch --nohooks webrtc_ios && \ | |
| gclient sync && \ | |
| ninja -C out_sim/Debug-iphonesimulator AppRTCDemo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment