Skip to content
Vicken Simonian edited this page Sep 29, 2016 · 43 revisions

Versioning

For the purposes of webrtcbuilds, versions are tagged by each commit's 'Cr-Commit-Position' revision number. The 'Cr-Commit-Position' revision number is found in the commit's log description. The release package name contains both the revision number and SHA of a particular tagged version as well as the target OS and CPU i.e. webrtcbuilds-<rev>-<sha>-<target-os>-<target-cpu>.

Package Contents

webrtcbuilds-<rev>-<sha>-<target-os>-<target-cpu>
|
├── bin
│   └── <webrtc programs>
├── include
│   └── <webrtc include files>
└── lib
    ├── Debug
    │   └── <webrtc library files>
    └── Release
    │   └── <webrtc library files>
    ├── ... 

Usage

See how to build the peerconnection example.

Otherwise to compile a simple application, run the following command(s):

Linux

export PKG_CONFIG_PATH=$WEBRTCBUILDS_FOLDER/lib/Release/pkgconfig
g++ -o test test.cpp \
  $(pkg-config --cflags --libs --define-variable=prefix=$WEBRTCBUILDS_FOLDER libwebrtc_full)

Windows

cl.exe test.cpp /DWIN32 /DUNICODE /DWEBRTC_WIN /I$WEBRTCBUILDS_FOLDER\include /link $WEBRTCBUILDS_FOLDER\lib\Release\webrtc_full.lib advapi32.lib dmoguids.lib msdmo.lib secur32.lib winmm.lib ws2_32.lib wmcodecdspuuid.lib

OS X

clang++ -o test test.cpp \
  -DWEBRTC_POSIX -DWEBRTC_MAC \
  -std=c++11 -stdlib=libstdc++ \
  -framework CoreFoundation -framework Foundation -framework Carbon \
  -I$WEBRTCBUILDS_FOLDER/include \
  $WEBRTCBUILDS_FOLDER/lib/Release/libwebrtc_full.a

where $WEBRTCBUILDS_FOLDER is the extracted folder from the installation step.

Clone this wiki locally