本文共 2432 字,大约阅读时间需要 8 分钟。
Install Visual Studio 2015 Update 2 or later - Community Edition should work if its license is appropriate for you. Use the Custom Install option and select:
Install the Chromium depot tolls
Download and decompress it.
Add depot_tools to the end of your PATH:
With Administrator access:
Control Panel > System and Security > System > Advanced system settings
Modify the PATH system variable to include depot_tools
Without Administrator access:
Control Panel > User Accounts > User Accounts > Change my environment variables
Add a PATH user variable: %PATH%;C:\path\to\depot_tools
gclient
from the cmd shell. The first time it is run, it will install its own copy various tools.mkdir webrtc-checkoutcd webrtc-checkoutfetch --nohooks webrtc
cd srcgit branch -rgit checkout branch-heads/58
gclient sync
Note: The download will take a while, but it no longer downloads the Chromium repository after branch-head/56. Do not interrupt this step or you may need to start all over again (a new gclient sync may be enough, but you might also need wipe your webrtc_checkout\src folder and start over).
To update an existing checkout, you can run
git rebase-updategclient sync
The first command updates the primary Chromium source repository and rebases any of your local branches on top of tip-of-tree (aka the Git branch origin/master). If you don't want to use this script, you can also just use git pull or other common Git commands to update the repo.
The second command syncs the subrepositories to the appropriate versions and re-runs the hooks as needed.
src/
).To build 64-bit libs, you need to run the following commands first:
gn gen out/Debug_x64
Then compile with:
Debug:
ninja -C out/Debug_x64
To create a 64 bit Release build you must edit the GN args and set is_debug = true, the default is x64 :
gn arg out/Release_x64is_debug = falsetarget_cpu = "x64"gn gen out/Release_x64ninja -C out/Release_x64
转载地址:http://bczoi.baihongyu.com/