This repository was archived by the owner on Apr 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Build the code on Windows 10 (Visual Studio 2013 Professional)
stiv-yakovenko edited this page Jan 20, 2016
·
6 revisions
This document works fine with webrtc commit: 9eb1365939683cc5462a5359344148efb7d84f97
-
Download depot_tools for windows
-
Extract depot_tools.zip to C:\Build\
-
Add depot_tools folder to your environmental variables PATH *1
set C:\Build\depot_tools;PATH=%PATH%
- I also set as global variables
DEPOT_TOOLS_WIN_TOOLCHAIN=0
GYP_GENERATORS=msvs-ninja,ninja
GYP_MSVS_VERSION=2013e
# for Visual Studio Pro set GYP_MSVS_VERSION=2013
- Open a windows cmd shell with Administrator and create webrtc-checkout folder
mkdir webrtc-checkout
cd webrtc-checkout
- Set necessary environmental variables, if you didn't set them in global *2
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_GENERATORS=msvs-ninja,ninja
set GYP_MSVS_VERSION=2013e
set GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio 12.0
set WindowsSdkDir=C:\Program Files (x86)\Windows Kits\8.1
- Configure gclient to download webrtc code
cd webrtc-checkout
# My path is C:\Build\webrtc-checkout\
fetch webrtc
- Download webrtc and dependencies (this may take a while). Running this command twice ensures you have all dependencies (ipop-project thinks, and I believe)
gclient sync --force
gclient sync --force
- Generate Visual Studio solution files
gclient runhooks --force
- WIN32
python webrtc/build/gyp_webrtc -Dtarget_arch=ia32 -DOS=win
ninja -C out/Debug
ninja -C out/Release
*1) depot_tools should put at the first *2) GYP_MSVS_OVERRIDE_PATH & WindowsSdkDir may help in some situation
Build the code
gclient