Giter Site home page Giter Site logo

libwebrtc's Introduction

libwebrtc

It is a build program of WebRTC native library from Chromium. The purpose of this repository is making easy to use WebRTC native library by sharing pre-compiled libraries.

Build sequence of program is based on below documents.

http://webrtc.github.io/webrtc-org/native-code/development/

This program automatically uses the latest stable version of WebRTC's source code.

How to use

Build and test for linux with amd64

go run . build
go run . test

There is an archive file in opt/linux_amd64.

Build and test for linux with i386

sudo apt install qemu-usr-static g++-i686-linux-gnu

go run . build --arch=i386
go run . test --arch=i386

There is an archive file in opt/linux_i386.

Build and test for linux with armhf

sudo apt install qemu-usr-static g++-arm-linux-gnueabihf

sudo ln -s /usr/arm-linux-gnueabihf/lib /lib/arm-linux-gnueabihf
sudo ln -s /lib/arm-linux-gnueabihf/ld-2.*.so /lib/ld-linux-armhf.so.3

go run . build --arch=armhf
go run . test --arch=armhf

There is an archive file in opt/linux_armhf.

Build and test for linux with arm64

sudo apt install qemu-usr-static g++-aarch64-linux-gnu

sudo ln -s /usr/aarch64-linux-gnu/lib/ /lib/aarch64-linux-gnu
sudo ln -s /lib/aarch64-linux-gnu/ld-2.23.so /lib/ld-linux-aarch64.so.1

go run . build --arch=arm64
go run . test --arch=arm64

There is an archive file in opt/linux_arm64.

Build and test for macos

go run . build
go run . test

There is an archive file in opt/macos_amd64.

Configuration

There are configuration files in configs/. You can customize the build option by editing files in configs/.

ChromeOsStr

A string used to match the operating system of the following sites. This option is ignored without linux.

https://omahaproxy.appspot.com/

BuildDepsOpts

Options for install-build-deps.sh.

GnOpts

Options for GN build configuration tool. You can find help on the following pages

https://www.chromium.org/developers/gn-build-configuration

If you want more configuration, you can run the following command to get a list of options after executing the build once.

cd opt/linux_amd64/src
../../depot_tools/gn args out/Default/ --list

Headers, HeadersWithSubdir

Source list of header files to be archived. The official list can be found on the following pages, but that's not enough.

https://webrtc.googlesource.com/src/+/master/native-api.md

License

License follows original sources of it. See below documents.

https://webrtc.org/support/license

libwebrtc's People

Contributors

llamerada-jp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.