91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

webrtc build.sh

發布時間:2020-08-24 15:00:20 來源:網絡 閱讀:960 作者:626224816 欄目:移動開發

#!/bin/bash

function build_xcode() {

    echo "*** building WebRTC for the ia32 iOS simulator";

    export GYP_GENERATORS="xcode";

    export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_objc=1 OS=ios target_arch=ia32 clang_xcode=1";

    export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_ios_ia32";

    export GYP_CROSSCOMPILE=1;

    gclient runhooks;

    ninja -C out_ios_ia32/Release-iphonesimulator iossim AppRTCDemo;

 

    

}

 

function build_iossim_ia32() {

    echo "*** building WebRTC for the ia32 iOS simulator";

    export GYP_GENERATORS="ninja";

    export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_objc=1 OS=ios target_arch=ia32 clang_xcode=1";

    export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_ios_ia32";

    export GYP_CROSSCOMPILE=1;

    pushd src;

    gclient runhooks;

    ninja -C out_ios_ia32/Release-iphonesimulator iossim AppRTCDemo;

 

    echo "*** creating iOS ia32 libraries";

    pushd out_ios_ia32/Release-iphonesimulator/;

    rm -f  libapprtc_signaling.a;

    popd;

    mkdir -p out_ios_ia32/libs;

    libtool -static -o out_ios_ia32/libs/libWebRTC-ia32.a out_ios_ia32/Release-iphonesimulator/lib*.a;

    strip -S -x -o out_ios_ia32/libs/libWebRTC.a -r out_ios_ia32/libs/libWebRTC-ia32.a;

    rm -f out_ios_ia32/libs/libWebRTC-ia32.a;

    echo "*** result: $PWD/out_ios_ia32/libs/libWebRTC.a";

 

    popd;

}

 

function build_iossim_x86_64() {

    echo "*** building WebRTC for the x86_64 iOS simulator";

    export GYP_GENERATORS="ninja";

    export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_objc=1 OS=ios target_arch=x64 target_subarch=arm64 clang_xcode=1";

    export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_ios_x86_64";

    export GYP_CROSSCOMPILE=1;

    pushd src;

    gclient runhooks;

    ninja -C out_ios_x86_64/Release-iphonesimulator iossim AppRTCDemo;

 

    echo "*** creating iOS x86_64 libraries";

    pushd out_ios_x86_64/Release-iphonesimulator/;

    rm -f  libapprtc_signaling.a;

    popd;

    mkdir -p out_ios_x86_64/libs;

    libtool -static -o out_ios_x86_64/libs/libWebRTC-x86_64.a out_ios_x86_64/Release-iphonesimulator/lib*.a;

    strip -S -x -o out_ios_x86_64/libs/libWebRTC.a -r out_ios_x86_64/libs/libWebRTC-x86_64.a;

    echo "*** result: $PWD/out_ios_x86_64/libs/libWebRTC.a";

 

    popd;

}

 

function build_iosdevice_armv7() {

    echo "*** building WebRTC for armv7 iOS devices";

    export GYP_GENERATORS="ninja";

    export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_objc=1 OS=ios target_arch=armv7 clang_xcode=1";

    export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_ios_armv7";

    export GYP_CROSSCOMPILE=1;

    pushd src;

    gclient runhooks;

ninja -C out_ios_armv7/Release-iphoneos AppRTCDemo;

 

    echo "*** creating iOS armv7 libraries";

    pushd out_ios_armv7/Release-iphoneos/;

    rm -f  libapprtc_signaling.a;

    popd;

    mkdir -p out_ios_armv7/libs;

    libtool -static -o out_ios_armv7/libs/libWebRTC-armv7.a out_ios_armv7/Release-iphoneos/lib*.a;

    strip -S -x -o out_ios_armv7/libs/libWebRTC.a -r out_ios_armv7/libs/libWebRTC-armv7.a;

    echo "*** result: $PWD/out_ios_armv7/libs/libWebRTC.a";

 

    popd;

}

 

function build_iosdevice_arm64() {

    echo "*** building WebRTC for arm64 iOS devices";

    export GYP_GENERATORS="ninja";

    export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_objc=1 OS=ios target_arch=arm64 target_subarch=arm64 clang_xcode=1";

    export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_ios_arm64";

    export GYP_CROSSCOMPILE=1;

    echo "src/webrtc/build/gyp_webrtc  -Dclang_xcode=1"

    pushd src;

    gclient runhooks;

    ninja -C out_ios_arm64/Release-iphoneos AppRTCDemo;

 

    echo "*** creating iOS arm64 libraries";

    pushd out_ios_arm64/Release-iphoneos/;

    rm -f  libapprtc_signaling.a;

    popd;

    mkdir -p out_ios_arm64/libs;

    libtool -static -o out_ios_arm64/libs/libWebRTC-arm64.a out_ios_arm64/Release-iphoneos/lib*.a;

    strip -S -x -o out_ios_arm64/libs/libWebRTC.a -r out_ios_arm64/libs/libWebRTC-arm64.a;

    echo "*** result: $PWD/out_ios_arm64/libs/libWebRTC.a";

 

    popd;

}

 

function combine_libs() 

{

    echo "*** combining libraries";

    lipo  -create  src/out_ios_armv7/libs/libWebRTC.a \

            src/out_ios_arm64/libs/libWebRTC.a \

            -output libWebRTC.a;

    echo "The public headers are located in $PWD/src/talk/app/webrtc/objc/public/*.h";

}

function combine_libs_sim() 

{

    echo "*** combining libraries";

    lipo  -create   src/out_ios_ia32/libs/libWebRTC.a \

            src/out_ios_x86_64/libs/libWebRTC.a \

            -output libWebRTC_sim.a;

    echo "The public headers are located in $PWD/src/talk/app/webrtc/objc/public/*.h";

}

 

function create_framework() {

    echo "*** creating WebRTC.framework";

    rm -rf WebRTC.framework;

    mkdir -p WebRTC.framework/Versions/A/Headers;

    cp ./src/talk/app/webrtc/objc/public/*.h WebRTC.framework/Versions/A/Headers;

    cp libWebRTC.a WebRTC.framework/Versions/A/WebRTC;

 

    pushd WebRTC.framework/Versions;

    ln -sfh A Current;

    popd;

    pushd WebRTC.framework;

    ln -sfh Versions/Current/Headers Headers;

    ln -sfh Versions/Current/WebRTC WebRTC;

    popd;

}

 

function clean() 

{

    echo "*** cleaning";

    pushd src;

    rm -rf out_ios_arm64;

    rm -rf out_ios_armv7;

    rm -rf out_ios_ia32;

    rm -rf out_ios_x86_64;

    popd;

    echo "*** all cleaned";

}

 

function update()

{

    gclient sync --force

    pushd src

    svn info | grep Revision > ../svn_rev.txt

    popd

}

 

function build_all() {

    build_iossim_ia32 && build_iossim_x86_64 && \

    build_iosdevice_armv7 && build_iosdevice_arm64 && \

    combine_libs && combine_libs_sim;

}

function build_os() {

    build_iosdevice_armv7 combine_libs;

}

 

function run_simulator_ia32() {

    echo "*** running webrtc appdemo on ia32 iOS simulator";

    src/out_ios_ia32/Release-iphonesimulator/iossim src/out_ios_ia32/Release-iphonesimulator/AppRTCDemo.app;

}

 

function run_simulator_x86_64() {

    echo "*** running webrtc appdemo on x86_64 iOS simulator";

    src/out_ios_x86_64/Release-iphonesimulator/iossim -d 'iPhone 6' -s '8.4'  src/out_ios_x86_64/Release-iphonesimulator/AppRTCDemo.app;

}

 

function run_on_device_armv7() {

    echo "*** launching on armv7 iOS device";

    ideviceinstaller -i src/out_ios_armv7/Release-iphoneos/AppRTCDemo.app;

    echo "*** launch complete";

}

 

function run_on_device_arm64() {

    echo "*** launching on arm64 iOS device";

    ideviceinstaller -i src/out_ios_arm64/Release-iphoneos/AppRTCDemo.app;

    echo "*** launch complete";

}

 

#運行命令行參數中第一個參數所指定的Shell函數

$@


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

铁岭县| 梁平县| 苏尼特左旗| 上林县| 邹平县| 绿春县| 金川县| 类乌齐县| 广丰县| 洪泽县| 开封市| 四川省| 遂昌县| 游戏| 丹江口市| 泰宁县| 纳雍县| 抚松县| 开阳县| 灵石县| 四会市| 城固县| 安新县| 凌源市| 黑龙江省| 烟台市| 治县。| 阿坝县| 镇坪县| 三江| 洛浦县| 噶尔县| 百色市| 翁源县| 舒城县| 繁昌县| 莫力| 湛江市| 资溪县| 满城县| 仁寿县|