1. 程式人生 > >Build WebRTC for Android

Build WebRTC for Android

WebRTC 的 Android 編譯指令碼如下:

#! /bin/bash

#out directories
ARMV7_OUT_DIR="out_android_armv7"
ARM64_OUT_DIR="out_android_arm64"
X86_OUT_DIR="out_android_x86"
X64_OUT_DIR="out_android_x64"

ARCH_ARM64=0
ARCH_ARMV7=0
ARCH_X86=0
ARCH_X64=0

#help
me=$(basename $0)
HELP_INFO="$me [arch/--allarch]\n Existing arches: armv7 arm64 i386 x86_64"

WEBRTC_TARGET="AppRTCDemo"
#WEBRTC_TARGET="libjingle_peerconnection_so"

if [ $* ]; then
  for input in 
[email protected]
do if [[ $input = "-h" || $input = "--help" ]]; then echo $HELP_INFO; exit 0; fi if [ $input = "armv7" ]; then ARCH_ARMV7=1; elif [ $input = "arm64" ]; then ARCH_ARM64=1; elif [ $input = "i386" ]; then ARCH_X86=1; elif [ $input = "x86_64" ]; then ARCH_X64=1; elif [ $input = "--allarch" ]; then ARCH_ARMV7=1 ARCH_ARM64=1 ARCH_X86=1 ARCH_X64=1 else ARCH_ARMV7=1 fi done else ARCH_ARMV7=1 fi ROOT_DIR=`pwd` export GYP_CROSSCOMPILE=1 cd ./src source ./build/android/envsetup.sh if [ $ARCH_ARMV7 = 1 ]; then echo "build android armv7 library" export GYP_GENERATOR_FLAGS="output_dir=${ARMV7_OUT_DIR}" export GYP_DEFINES="OS=android host_os=linux" export GYP_GENERATORS="ninja" gclient runhooks #ninja -C $ARMV7_OUT_DIR/Release/ -t clean ninja -C $ARMV7_OUT_DIR/Release/ $WEBRTC_TARGET fi if [ $ARCH_ARM64 = 1 ]; then echo "build android arm64 library" export GYP_GENERATOR_FLAGS="output_dir=${ARM64_OUT_DIR}" export GYP_GENERATORS="ninja" export GYP_DEFINES="OS=android host_os=linux target_arch=arm64 target_subarch=arm64" gclient runhooks #ninja -C $ARM64_OUT_DIR/Release/ -t clean ninja -C $ARM64_OUT_DIR/Release/ $WEBRTC_TARGET fi if [ $ARCH_X86 = 1 ]; then echo "build android x86 library" export GYP_GENERATOR_FLAGS="output_dir=${X86_OUT_DIR}" export GYP_GENERATORS="ninja" export GYP_DEFINES="OS=android host_os=linux target_arch=ia32" gclient runhooks ninja -C $X84_OUT_DIR/Release/ $WEBRTC_TARGET fi if [ $ARCH_X64 = 1 ]; then echo "build android x64 library" export GYP_GENERATOR_FLAGS="output_dir=${X64_OUT_DIR}" export GYP_GENERATOR="ninja" export GYP_DEFINES="OS=android host_os=linux target_arch=x64" gclient runhooks ninja -C $X64_OUT_DIR/Release/ $WEBRTC_TARGET fi echo "WebRTC build Done" cd $ROOT_DIR

程式碼:https://github.com/volvet/BuildWebRTC

相關推薦

Build WebRTC for Android

WebRTC 的 Android 編譯指令碼如下: #! /bin/bash #out directories ARMV7_OUT_DIR="out_android_armv7" ARM64_OUT_DIR="out_android_arm64" X86_OUT_DIR

webrtc for android

1.必須使用ubuntu 64位,不要最新的15.10,有些指令碼設定了版本限制,懶得改它們,所以最好是14.04 2.穩定的VPN,就算有也可能會遇到git error result=56 code=200的錯誤,N多次。我直接在阿里雲上買了一個美國的ubuntu伺服器來

build chromium for android

Get the code 下載安裝depot_tools clone depot_tools, 並新增到PATH裡面去: $ git clone https://chromium.googlesource.com/chromium/tools/de

Build opencv libraries for android arm, x86 ubuntu

code post cto san data- 動態庫 ack blank scripts 廢話不多說。 準備工作: 1. 下載源代碼: http://opencv.org/ 編譯平臺:ubuntu14.04 opencv 2.4.6.1 本人用這樣的辦法

How to build Tensorflow as a Static Library for Android

A few months ago, I published a Medium story teaching "How to build Tensorflow on Windows with /MT (CPU & GPU)". Recently, I had to make the same Tenso

Gradle For Android系列2:自定義Build配置

在上一章節中我們學習了Gradle的用法,以及如何建立Android專案以及如何從Eclipse中將專案轉換到Android Studio中。這一章節將介紹構建檔案配置的更多細節,以及一些有用的構建任務,並深入Gradle的Android外掛。 在本章中,

How to build Clang toolchains for Android NDK from source code

we have some source changes to LLVM/Clang need add into NDK. After download and change "external/llvm" and build NDK from source. It find

Android-Webrtc AECM for android

https://github.com/BillHoo/webrtc-based-android-aecm 這是bill在github上面分享的aecm for android的Demo,帶jni原始碼

安卓build variant ----Gradle for Android( 構建變體 )

當你在開發一個app,通常你會有幾個版本。大多數情況是你需要一個開發版本,用來測試app和弄清它的質量,然後還需要一個生產版本。這些版本通常有不同的設定,例如不同的URL地址。更可能的是你可能需要一個免費版和收費版本。基於上述情況,你需要處理不同的版本:開發免費版,開發

Visual Studio Emulator for Android 折騰記

多個 develop 新版本 代理 option key 折騰 最新 mac 想用虛擬機調試Android項目,於是想到了MS免費提供的 Visual Studio Emulator for Android,這玩意價格免費量又足,N久之前試用過,速度杠杠的! 安裝包很小,

【社交分享SDK】ShareSDK for Android 2.5.9已經公布

地址 nload trac p s unity3 share 2.x con clas ShareSDK for Android 2.5.9已經公布 版本號:V2.5.9 2015-3-19 1、升級Dropbox對API接口的調用。包含授權、

加快QT工程編譯速度(還可給Qt for Android設置)

qmake targe 沒有 利用 tools too blank tab 這樣的 一、多核編譯 環境:win10, Qt 5.4.1,編譯器mingw32 項目: Qt for Android Qt Creator 在編譯android項目時不支持預編譯,默認cpu

開源項目Universal Image Loader for Android 說明文檔 (1) 簡單介紹

bst 成功 開源 ica ctu structure 使用 說明 由於  When developing applications for Android, one often facesthe problem of displa

ArcGIS Runtime SDK for Android功能概述

部署 編輯 最短路徑 設備 下載 用戶 系統 幾何 和平   使用ArcGIS Runtime SDK for Android,用戶能夠開發出功能強大的移動端GIS應用程序並將它們部署到Android系統的智能手機和平板上,主要功能可覆蓋: 地圖瀏覽:實現常見的地圖縮放、

Qt for Android 開發大坑

tail target details 之前 ide comm eve 自己 post Qt for Android 開發大坑 作者: qyvlik Qt 5.5.1 這裏說一說比較常見的 Qt 開發安卓的大坑。希望同學們不要做無謂

更新 是 可用的 針對 安卓 軟件開發包和工具 Updates are available for android software development packages and tools

安卓 模擬器 軟件 ide software ava -m android 設置 作者:韓夢飛沙 Author:han_meng_fei_sha 郵箱:[email protected]/* */ E-mail: 313134555 @qq.com

NDk編譯opencv for Android,並引用在Unity3d遊戲中的一般步驟

ret app sset cpp unity3d 環境 ptr small var 本文使用:Unity3d + opencv + Android Unity3d中可以調用opencv 編譯好的.so 動態庫,在生成Android apk時可以正常運行。 因為An

OSG for android的編譯總結

display article 原因 mat cygwin 動態鏈接 cep evel arr 最近對OSG進行了android下的編譯。簡單總結一下: 0.介紹下環境:WIN7 64位 + cygwin32位 + OSG3.2.0 1.首先介紹幾篇博文,參考了不少,但並沒

SecureCRT/FX 8.0.0 (build 1063) for Windows 破解版

下載 保持 序列 技術 準備 gin 運行 密文 第一次 SecureCRT 是一款 Windows 上專業的終端 SSH 工具,類似於 Windows 中的 Putty,SecureCRT 支持 SSH1、SSH2、Telnet 等遠程連接,同時具有很多實用和專業的輔助功

RULES OF SURVIVAL 1.115153.115248 Full Apk + Data for Android

rom world mage rac fur this favor class pic Welcome to the arena of RULES OF SURVIVAL! This is a Battle Royale mobile game that has favor