-
Notifications
You must be signed in to change notification settings - Fork 163
Home
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>
.
webrtcbuilds-<rev>-<sha>-<target-os>-<target-cpu>
|
├── bin
│ └── <webrtc programs>
├── include
│ └── <webrtc include files>
└── lib
├── Debug
│ └── <webrtc library files>
└── Release
│ └── <webrtc library files>
├── ...
See how to build the peerconnection example.
Otherwise to compile a simple application, run the following command(s):
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)
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
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.